Files
ceres-solver/scripts/ceres-solver.spec
T

152 lines
4.3 KiB
RPMSpec
Raw Normal View History

2013-02-15 19:09:48 -05:00
Name: ceres-solver
2014-05-16 09:44:18 -07:00
Version: 1.9.0
2013-02-15 19:09:48 -05:00
# Release candidate versions are messy. Give them a release of
# e.g. "0.1.0%{?dist}" for RC1 (and remember to adjust the Source0
# URL). Non-RC releases go back to incrementing integers starting at 1.
2014-05-27 06:50:57 -07:00
Release: 0.2.0%{?dist}
2013-02-15 19:09:48 -05:00
Summary: A non-linear least squares minimizer
Group: Development/Libraries
License: BSD
2014-05-16 09:44:18 -07:00
URL: http://ceres-solver.org/
2014-05-27 06:50:57 -07:00
Source0: http://%{name}.org/%{name}-%{version}.tar.gz
2013-02-15 19:09:48 -05:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2013-02-26 00:30:35 -05:00
%if (0%{?rhel} == 06)
2013-02-15 19:09:48 -05:00
BuildRequires: cmake28
%else
BuildRequires: cmake
%endif
BuildRequires: eigen3-devel
# suitesparse <= 3.4.0-7 ships without *.hpp C++ headers
# https://bugzilla.redhat.com/show_bug.cgi?id=1001869
BuildRequires: suitesparse-devel > 3.4.0-7
# If the suitesparse package was built with TBB then we need TBB too
%ifarch %{ix86} x86_64 ia64
BuildRequires: tbb-devel
%endif
2013-02-15 19:09:48 -05:00
# Use atlas for BLAS and LAPACK
BuildRequires: atlas-devel
BuildRequires: gflags-devel
BuildRequires: glog-devel
%description
Ceres Solver is a portable C++ library that allows for modeling and solving
large complicated nonlinear least squares problems. Features include:
- A friendly API: build your objective function one term at a time
2014-05-27 06:50:57 -07:00
- Automatic and numeric differentiation
2013-02-15 19:09:48 -05:00
- Robust loss functions
- Local parameterizations
- Threaded Jacobian evaluators and linear solvers
2014-05-27 06:50:57 -07:00
- Trust region solvers with non-monotonic steps (Levenberg-Marquardt and Dogleg (Powell & Subspace))
- Line search solvers (L-BFGS and Nonlinear CG)
2013-02-15 19:09:48 -05:00
- Dense QR and Cholesky factorization (using Eigen) for small problems
- Sparse Cholesky factorization (using SuiteSparse) for large sparse problems
- Specialized solvers for bundle adjustment problems in computer vision
- Iterative linear solvers for general sparse and bundle adjustment problems
2014-05-27 06:50:57 -07:00
- Runs on Linux, Windows, Mac OS X, Android, and iOS
2013-02-15 19:09:48 -05:00
Notable use of Ceres Solver is for the image alignment in Google Maps and for
vehicle pose in Google Street View.
%package devel
Summary: A non-linear least squares minimizer
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%build
mkdir build
pushd build
# Disable the compilation flags that rpmbuild macros try to apply to all
# packages because it breaks the build since release 1.5.0rc1
%define optflags ""
2013-02-26 00:30:35 -05:00
%if (0%{?rhel} == 06)
%{cmake28} ..
2013-02-15 19:09:48 -05:00
%else
%{cmake} ..
2013-02-15 19:09:48 -05:00
%endif
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
pushd build
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' -delete
# Make the subdirectory in /usr/share match the name of this package
mv $RPM_BUILD_ROOT%{_datadir}/{Ceres,%{name}}
2013-02-15 19:09:48 -05:00
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc README LICENSE
2013-02-15 19:09:48 -05:00
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_datadir}/%{name}/*.cmake
2013-02-15 19:09:48 -05:00
%changelog
2014-05-27 06:50:57 -07:00
* Mon May 27 2014 Sameer Agarwal <sameeragarwal@google.com> - 1.9.0-0.2.0
- Bump version
* Fri May 16 2014 Sameer Agarwal <sameeragarwal@google.com> - 1.9.0-0.1.0
2014-05-16 09:44:18 -07:00
- Bump version
2013-11-12 14:17:52 -08:00
* Tue Nov 12 2013 Sameer Agarwal <sameeragarwal@google.com> - 1.8.0-0.3.0
- Bump version
2013-11-06 09:42:46 -08:00
* Wed Nov 6 2013 Sameer Agarwal <sameeragarwal@google.com> - 1.8.0-0.2.0
- Bump version
2013-10-31 13:56:38 -07:00
* Thu Oct 31 2013 Sameer Agarwal <sameeragarwal@google.com> - 1.8.0-0.1.0
- Bump version
* Thu Aug 29 2013 Taylor Braun-Jones <taylor@braun-jones.org> - 1.7.0-0.3.0
- Bump version
* Mon Aug 26 2013 Sameer Agarwal <sameeragarwal@google.com> - 1.7.0-0.2.0
2013-08-26 00:02:50 -07:00
- Bump version
* Mon Jul 18 2013 Sameer Agarwal <sameeragarwal@google.com> - 1.7.0-0.1.0
2013-07-18 12:52:35 -07:00
- Bump version
* Mon Apr 29 2013 Sameer Agarwal <sameeragarwal@google.com> - 1.6.0-1
2013-05-06 07:04:26 -07:00
- Bump version
2013-04-29 17:27:26 -07:00
* Mon Apr 29 2013 Sameer Agarwal <sameeragarwal@google.com> - 1.6.0-0.2.0
- Bump version
2013-04-29 16:47:26 -07:00
* Mon Apr 29 2013 Sameer Agarwal <sameeragarwal@google.com> - 1.6.0-0.1.0
- Bump version
2013-02-15 19:09:48 -05:00
* Sun Feb 24 2013 Taylor Braun-Jones <taylor@braun-jones.org> - 1.5.0-0.1.0
- Bump version.
* Sun Oct 14 2012 Taylor Braun-Jones <taylor@braun-jones.org> - 1.4.0-0
- Initial creation