cryptominisat/cryptominisat.spec

172 lines
5.4 KiB
RPMSpec
Raw Normal View History

2011-12-07 18:11:42 +00:00
Name: cryptominisat
2016-03-20 00:11:00 +00:00
Version: 2.9.11
Release: 4%{?dist}
2011-12-07 18:11:42 +00:00
Summary: SAT solver
# The Mersenne Twister implementation is BSD-licensed.
# All other files are MIT-licensed.
License: MIT
URL: http://www.msoos.org/cryptominisat2/
2016-03-20 00:11:00 +00:00
Source0: https://github.com/msoos/%{name}/archive/%{version}.tar.gz
2011-12-07 18:11:42 +00:00
2016-03-20 00:11:00 +00:00
BuildRequires: gcc-c++
2015-09-04 15:05:44 +00:00
BuildRequires: libtool
BuildRequires: mariadb-devel
BuildRequires: perl-interpreter
2011-12-07 18:11:42 +00:00
BuildRequires: zlib-devel
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%description
CryptoMiniSat is a SAT solver that aims to become a premiere SAT solver
with all the features and speed of successful SAT solvers, such as
MiniSat and PrecoSat. The long-term goals of CryptoMiniSat are to be an
efficient sequential, parallel and distributed solver. There are
solvers that are good at one or the other, e.g. ManySat (parallel) or
PSolver (distributed), but we wish to excel at all.
CryptoMiniSat 2.5 won the SAT Race 2010 among 20 solvers submitted by
researchers and industry.
%package devel
Summary: Header files for developing with %{name}
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
2015-09-04 15:05:44 +00:00
Requires: mariadb-devel%{?_isa}
Requires: zlib-devel%{?_isa}
2011-12-07 18:11:42 +00:00
%description devel
Header files for developing applications that use %{name}.
%package libs
Summary: Cryptominisat library
%description libs
The %{name} library.
%prep
2016-03-20 00:11:00 +00:00
%setup -q
2015-09-04 15:05:44 +00:00
# Fix version number and output directory in library documentation
sed -e 's/2\.6\.0/%{version}/' \
-e 's,/home/soos.*cryptominisat,'$PWD, \
-i Doxyfile
# Generate the configure script
autoreconf -fi
2011-12-07 18:11:42 +00:00
%build
2015-09-04 15:05:44 +00:00
export CPPFLAGS="-DHAVE_MYSQL -DCMSAT_HAVE_MYSQL"
export LDFLAGS="-L%{_libdir}/mysql"
export LIBS="-lmysqlclient"
2011-12-07 18:11:42 +00:00
%configure --disable-static
2015-09-04 15:05:44 +00:00
# Eliminate hardcoded rpaths
2011-12-07 18:11:42 +00:00
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
-i libtool
2015-09-04 15:05:44 +00:00
2011-12-07 18:11:42 +00:00
make %{?_smp_mflags}
%install
2015-09-04 15:05:44 +00:00
make install DESTDIR=%{buildroot}
# We don't want the libtool files
rm -f %{buildroot}%{_libdir}/*.la
2011-12-07 18:11:42 +00:00
%post libs -p /sbin/ldconfig
2011-12-07 18:11:42 +00:00
%postun libs -p /sbin/ldconfig
2011-12-07 18:11:42 +00:00
%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%files devel
%{_includedir}/cmsat/
2011-12-07 18:11:42 +00:00
%{_libdir}/lib%{name}.so
%files libs
2015-02-12 04:21:55 +00:00
%doc AUTHORS NEWS README TODO
%license LICENSE-MIT
2011-12-07 18:11:42 +00:00
%{_libdir}/lib%{name}-%{version}.so
%changelog
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.11-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.11-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-03-20 00:11:00 +00:00
* Sat Mar 19 2016 Jerry James <loganjerry@gmail.com> - 2.9.11-1
- New upstream release
* Sat Mar 5 2016 Jerry James <loganjerry@gmail.com> - 2.9.10-3
- post/postun scripts are for libs, not the main package
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-09-04 15:05:44 +00:00
* Fri Sep 4 2015 Jerry James <loganjerry@gmail.com> - 2.9.10-1
- New upstream release
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.9-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-05-02 11:10:56 +00:00
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.9.9-5
- Rebuilt for GCC 5 C++11 ABI change
2015-02-12 04:21:55 +00:00
* Wed Feb 11 2015 Jerry James <loganjerry@gmail.com> - 2.9.9-4
- Use license macro
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-03-19 14:51:08 +00:00
* Tue Mar 18 2014 Jerry James <loganjerry@gmail.com> - 2.9.9-1
- New upstream release
2013-09-23 15:24:54 +00:00
* Mon Sep 23 2013 Jerry James <loganjerry@gmail.com> - 2.9.8-1
- New upstream release
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-03-11 15:31:07 +00:00
* Mon Mar 11 2013 Jerry James <loganjerry@gmail.com> - 2.9.6-1
- New upstream release
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Mon Aug 6 2012 Jerry James <loganjerry@gmail.com> - 2.9.5-1
- New upstream release
- Project files now carry the MIT license
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-04-16 16:07:31 +00:00
* Mon Apr 16 2012 Jerry James <loganjerry@gmail.com> - 2.9.3-1
- New upstream version
2012-02-28 18:06:10 +00:00
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.2-2
- Rebuilt for c++ ABI breakage
* Mon Jan 23 2012 Jerry James <loganjerry@gmail.com> - 2.9.2-1
- New upstream version
- Man page is now upstream
- All patches have been applied upstream
- Tests have been removed from the source distribution
2012-01-09 20:50:37 +00:00
* Mon Jan 9 2012 Jerry James <loganjerry@gmail.com> - 2.9.1-3
- Rebuild for GCC 4.7
* Mon Dec 19 2011 Dan Horák <dan[at]danny.cz> - 2.9.1-2
- FPU handling is x86 specific
- set library path so the test is run
2011-12-07 18:11:42 +00:00
* Wed Dec 7 2011 Jerry James <loganjerry@gmail.com> - 2.9.1-1
- Initial RPM