2011-12-07 18:11:42 +00:00
|
|
|
Name: cryptominisat
|
2017-11-25 21:18:06 +00:00
|
|
|
Version: 5.0.1
|
|
|
|
Release: 1%{?dist}
|
2011-12-07 18:11:42 +00:00
|
|
|
Summary: SAT solver
|
|
|
|
|
2017-11-25 21:18:06 +00:00
|
|
|
# Most of the code is MIT, but a few files are LGPLv2, which subsumes MIT
|
|
|
|
License: LGPLv2
|
|
|
|
URL: http://www.msoos.org/
|
2016-03-20 00:11:00 +00:00
|
|
|
Source0: https://github.com/msoos/%{name}/archive/%{version}.tar.gz
|
2017-11-25 21:18:06 +00:00
|
|
|
# Text is from the sources, therefore under the same copyright and license as
|
|
|
|
# the code. Man page formatting contributed by Jerry James.
|
|
|
|
Source1: cryptominisat5.1
|
2011-12-07 18:11:42 +00:00
|
|
|
|
2017-11-25 21:18:06 +00:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: chrpath
|
|
|
|
BuildRequires: cmake
|
2016-03-20 00:11:00 +00:00
|
|
|
BuildRequires: gcc-c++
|
2017-11-25 21:18:06 +00:00
|
|
|
BuildRequires: gperftools-devel
|
|
|
|
BuildRequires: m4ri-devel
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: swig
|
|
|
|
BuildRequires: tbb-devel
|
|
|
|
BuildRequires: vim-common
|
2011-12-07 18:11:42 +00:00
|
|
|
BuildRequires: zlib-devel
|
2017-11-25 21:18:06 +00:00
|
|
|
|
2011-12-07 18:11:42 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
2017-11-25 21:18:06 +00:00
|
|
|
CryptoMiniSat is a modern, multi-threaded, feature-rich, simplifying SAT
|
|
|
|
solver. Highlights:
|
|
|
|
- Instance simplification at every point of the search (inprocessing)
|
|
|
|
- Over 100 configurable parameters to tune to specific needs
|
|
|
|
- Collection of statistical data to MySQL database + javascript-based
|
|
|
|
visualization of it
|
|
|
|
- Clean C++ and python interfaces
|
2011-12-07 18:11:42 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header files for developing with %{name}
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2017-11-25 21:18:06 +00:00
|
|
|
Requires: m4ri-devel%{?_isa}
|
|
|
|
Requires: tbb-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.
|
|
|
|
|
2017-11-25 21:18:06 +00:00
|
|
|
%package -n python2-%{name}
|
|
|
|
Summary: Python 2 interface to %{name}
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python-%{name}}
|
|
|
|
|
|
|
|
%description -n python2-%{name}
|
|
|
|
Python 2 interface to %{name}.
|
|
|
|
|
2011-12-07 18:11:42 +00:00
|
|
|
%prep
|
2016-03-20 00:11:00 +00:00
|
|
|
%setup -q
|
2015-09-04 15:05:44 +00:00
|
|
|
|
2017-11-25 21:18:06 +00:00
|
|
|
# Don't override our compiler flags
|
|
|
|
sed -i 's/-O3 -mtune=native/-DNDEBUG/' CMakeLists.txt
|
|
|
|
if [ "%{_libdir}" = "%{_prefix}/lib64" ]; then
|
|
|
|
sed -i 's,${dir}/lib,&64,g' cmake/FindPkgMacros.cmake
|
|
|
|
fi
|
2015-09-04 15:05:44 +00:00
|
|
|
|
2017-11-25 21:18:06 +00:00
|
|
|
# Fix the python install
|
|
|
|
sed -ri 's|install |&--root %{buildroot} |' python/CMakeLists.txt
|
2011-12-07 18:11:42 +00:00
|
|
|
|
|
|
|
%build
|
2017-11-25 21:18:06 +00:00
|
|
|
%cmake
|
|
|
|
%make_build
|
2015-09-04 15:05:44 +00:00
|
|
|
|
2017-11-25 21:18:06 +00:00
|
|
|
%install
|
|
|
|
%make_install
|
2015-09-04 15:05:44 +00:00
|
|
|
|
2017-11-25 21:18:06 +00:00
|
|
|
# Install the man page
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
sed 's/@VERSION@/%{version}/' %{SOURCE1} > \
|
|
|
|
%{buildroot}%{_mandir}/man1/cryptominisat5.1
|
|
|
|
touch -r %{SOURCE1} %{buildroot}%{_mandir}/man1/cryptominisat5.1
|
2011-12-07 18:11:42 +00:00
|
|
|
|
2017-11-25 21:18:06 +00:00
|
|
|
# Move library files to where they should go
|
|
|
|
if [ "%{_libdir}" = "%{_prefix}/lib64" ]; then
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
mv %{buildroot}%{_prefix}/lib/lib%{name}* %{buildroot}%{_libdir}
|
|
|
|
mv %{buildroot}%{_prefix}/lib/cmake %{buildroot}%{_libdir}
|
|
|
|
sed -i 's|%{_prefix}/lib/|%{_libdir}/|' \
|
|
|
|
%{buildroot}%{_libdir}/cmake/cryptominisat5/*.cmake
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Remove buildroot paths from cmake files
|
|
|
|
sed -i 's|%{buildroot}||' %{buildroot}%{_libdir}/cmake/cryptominisat5/*.cmake
|
2015-09-04 15:05:44 +00:00
|
|
|
|
2017-11-25 21:18:06 +00:00
|
|
|
# Remove rpaths
|
|
|
|
chrpath -d %{buildroot}%{_bindir}/cryptominisat5
|
|
|
|
chrpath -d %{buildroot}%{_bindir}/cryptominisat5_simple
|
|
|
|
|
|
|
|
# Fix permissions
|
|
|
|
chmod 0755 %{buildroot}%{python2_sitearch}/pycryptosat.so
|
2011-12-07 18:11:42 +00:00
|
|
|
|
2016-03-07 02:29:37 +00:00
|
|
|
%post libs -p /sbin/ldconfig
|
2011-12-07 18:11:42 +00:00
|
|
|
|
2016-03-07 02:29:37 +00:00
|
|
|
%postun libs -p /sbin/ldconfig
|
2011-12-07 18:11:42 +00:00
|
|
|
|
|
|
|
%files
|
2017-11-25 21:18:06 +00:00
|
|
|
%doc README.markdown
|
|
|
|
%{_bindir}/cryptominisat5
|
|
|
|
%{_bindir}/cryptominisat5_simple
|
|
|
|
%{_mandir}/man1/cryptominisat5*
|
2011-12-07 18:11:42 +00:00
|
|
|
|
|
|
|
%files devel
|
2017-11-25 21:18:06 +00:00
|
|
|
%{_includedir}/cryptominisat5/
|
|
|
|
%{_libdir}/libcryptominisat5.so
|
|
|
|
%{_libdir}/cmake/
|
2011-12-07 18:11:42 +00:00
|
|
|
|
|
|
|
%files libs
|
2017-11-25 21:18:06 +00:00
|
|
|
%doc AUTHORS
|
|
|
|
%license LICENSE-SCALMC
|
|
|
|
%{_libdir}/libcryptominisat5.so.*
|
|
|
|
|
|
|
|
%files -n python2-%{name}
|
|
|
|
%doc python/README.rst
|
|
|
|
%license python/LICENSE
|
|
|
|
%{python2_sitearch}/pycryptosat*
|
2011-12-07 18:11:42 +00:00
|
|
|
|
|
|
|
%changelog
|
2017-11-25 21:18:06 +00:00
|
|
|
* Sat Nov 25 2017 Jerry James <loganjerry@gmail.com> - 5.0.1-1
|
|
|
|
- Update to major version 5
|
|
|
|
|
2017-09-24 03:30:49 +00:00
|
|
|
* Sat Sep 23 2017 Jerry James <loganjerry@gmail.com> - 2.9.11-6
|
|
|
|
- Update the mariadb BR (bz 1493618)
|
|
|
|
|
2017-08-02 19:18:16 +00:00
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.11-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 05:41:22 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.11-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-05-15 20:28:49 +00:00
|
|
|
* 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
|
|
|
|
|
2017-02-10 08:00:35 +00:00
|
|
|
* 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
|
|
|
|
|
2016-03-07 02:29:37 +00:00
|
|
|
* Sat Mar 5 2016 Jerry James <loganjerry@gmail.com> - 2.9.10-3
|
|
|
|
- post/postun scripts are for libs, not the main package
|
|
|
|
|
2016-02-03 18:15:18 +00:00
|
|
|
* 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
|
|
|
|
|
2015-06-17 03:25:49 +00:00
|
|
|
* 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
|
|
|
|
|
2014-08-16 01:40:01 +00:00
|
|
|
* 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
|
|
|
|
|
2014-06-07 06:15:40 +00:00
|
|
|
* 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
|
|
|
|
|
2013-08-03 06:12:24 +00:00
|
|
|
* 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
|
|
|
|
|
2013-02-13 19:10:39 +00:00
|
|
|
* 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
|
|
|
|
|
2012-08-06 20:45:56 +00:00
|
|
|
* Mon Aug 6 2012 Jerry James <loganjerry@gmail.com> - 2.9.5-1
|
|
|
|
- New upstream release
|
|
|
|
- Project files now carry the MIT license
|
|
|
|
|
2012-07-18 19:54:31 +00:00
|
|
|
* 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
|
|
|
|
|
2012-01-23 16:18:37 +00:00
|
|
|
* 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
|
|
|
|
|
2011-12-19 10:53:58 +00:00
|
|
|
* 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
|