## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # CVC5 wants a modified glpk (glpk-cut-log), unavailable in Fedora. Therefore, # we currently build without glpk support. # The cvc5_pythonic_api project needs cvc5 to build, and cvc5 needs # cvc5_pythonic_api to build. See cmake/FindCVC5PythonicAPI.cmake for the git # commit needed by this version of cvc5. %global pcommit be54c2388b3271f657cad41cf5e3d6bc97cd51a1 %global giturl https://github.com/cvc5/cvc5 Name: cvc5 Version: 1.2.0 Release: %autorelease Summary: Automatic theorem prover for SMT problems # BSD-3-Clause: the project as a whole, including cvc5_pythonic_api # MIT: the bundled version of minisat2 in src/prop/minisat, and the # cvc5_pythonic_api code derived from Z3 License: BSD-3-Clause AND MIT URL: https://cvc5.github.io/ VCS: git:%{giturl}.git Source0: %{giturl}/archive/%{name}-%{version}.tar.gz Source1: https://github.com/cvc5/cvc5_pythonic_api/archive/%{pcommit}/%{pcommit}.zip # Do not override Fedora flags Patch: %{name}-flags.patch # Skip tests that require huge amounts of memory # Patch courtesy of Scott Talbert Patch: %{name}-skip-himem-tests.patch # Adapt to cocoalib 0.99850 Patch: %{name}-cocoalib.patch # See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: cadical BuildRequires: cadical-devel BuildRequires: chrpath BuildRequires: cmake BuildRequires: cmake(cryptominisat5) BuildRequires: cocoalib-devel BuildRequires: drat2er-devel BuildRequires: drat-trim-devel BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: git-core BuildRequires: java-devel BuildRequires: javapackages-tools BuildRequires: kissat-devel BuildRequires: lfsc-devel BuildRequires: libfl-devel BuildRequires: libpoly-devel BuildRequires: pkgconfig(gmp) BuildRequires: pkgconfig(libedit) BuildRequires: pkgconfig(m4ri) BuildRequires: pkgconfig(sqlite3) BuildRequires: procps-ng BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel BuildRequires: %{py3_dist cython} BuildRequires: %{py3_dist packaging} BuildRequires: %{py3_dist pexpect} BuildRequires: %{py3_dist pip} BuildRequires: %{py3_dist pyparsing} BuildRequires: %{py3_dist scikit-build} BuildRequires: %{py3_dist setuptools} BuildRequires: %{py3_dist wheel} BuildRequires: symfpu-devel BuildRequires: yosyshq-abc-devel Requires: %{name}-libs%{?_isa} = %{version}-%{release} # Minisat has been altered for better integration with CVC5 # See src/prop/minisat/CVC4-README Provides: bundled(minisat2) = 2.2.0 # This can be removed when F42 reaches EOL Obsoletes: cvc4 < 1.9 %description CVC5 is a tool for determining the satisfiability of a first order formula modulo a first order theory (or a combination of such theories). It is the fifth in the Cooperating Validity Checker family of tools (CVC, CVC Lite, CVC3, CVC4) but does not directly incorporate code from any previous version prior to CVC4. CVC5 is intended to be an open and extensible SMT engine. It can be used as a stand-alone tool or as a library. It has been designed to increase the performance and reduce the memory overhead of its predecessors. %package devel Summary: Headers and other files for developing with %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: gmp-devel%{?_isa} Requires: symfpu-devel%{?_isa} # This can be removed when F42 reaches EOL Obsoletes: cvc4-devel < 1.9 %description devel Header files and library links for developing applications that use %{name}. %package libs Summary: Library containing an automatic theorem prover for SMT problems # This can be removed when F42 reaches EOL Obsoletes: cvc4-libs < 1.9 %description libs Library containing the core of the %{name} automatic theorem prover for SMT problems. %package java Summary: Java interface to %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: java-headless Requires: javapackages-tools # This can be removed when F42 reaches EOL Obsoletes: cvc4-java < 1.9 %description java Java interface to %{name}. %package -n python3-cvc5 Summary: Python 3 interface to %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} # This can be removed when F42 reaches EOL Obsoletes: cvc4-python3 < 1.9 %description -n python3-cvc5 Python 3 interface to %{name}. %prep %autosetup -n %{name}-%{name}-%{version} -p1 mkdir -p %{_vpath_builddir}/deps/src/CVC5PythonicAPI cp -p %{SOURCE1} %{_vpath_builddir}/deps/src # The Fedora editline library does not need libbsd sed -i 's/ bsd//' cmake/FindEditline.cmake # Adapt to the way kissat is packaged for Fedora sed -i 's,#include ,#include ,' src/prop/kissat.h sed -i 's,kissat/kissat\.h,kissat.h,' cmake/FindKissat.cmake # Build the Java interface so that JDK 1.8 can use it sed -i 's/\${Java_JAVAC_EXECUTABLE}/& -source 1.8 -target 1.8/' \ src/api/java/CMakeLists.txt %build export BUILDFLAGS='-DABC_USE_STDINT_H -I%{_jvmdir}/java/include -I%{_jvmdir}/java/include/linux -I%{_includedir}/abc -I%{_includedir}/cryptominisat5' export CFLAGS="%{build_cflags} $BUILDFLAGS" export CXXFLAGS="%{build_cxxflags} $BUILDFLAGS" %cmake --debug-find \ -DBUILD_BINDINGS_JAVA:BOOL=ON \ -DBUILD_BINDINGS_PYTHON:BOOL=ON \ -DBUILD_DOCS:BOOL=OFF \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DENABLE_GPL:BOOL=ON \ -DENABLE_IPO:BOOL=ON \ -DONLY_PYTHON_EXT_SRC:BOOL=ON \ -DSKIP_SET_RPATH:BOOL=ON \ -DUSE_COCOA:BOOL=ON \ -DUSE_CRYPTOMINISAT:BOOL=ON \ -DUSE_DEFAULT_LINKER:BOOL=ON \ -DUSE_EDITLINE:BOOL=ON \ -DUSE_KISSAT:BOOL=ON \ -DUSE_POLY:BOOL=ON %cmake_build # Build the python interface the Fedora way cd %{_vpath_builddir}/src/api/python %pyproject_wheel cd - %install %cmake_install # Link the JNI interface to where Fedora mandates it should go mkdir -p %{buildroot}%{_jnidir}/%{name} ln -s ../../%{_lib}/libcvc5jni.so %{buildroot}%{_jnidir}/%{name} # Install the python interface the Fedora way cd %{_vpath_builddir}/src/api/python %pyproject_install cd - # FIXME: What is causing an rpath to be added in the first place? chrpath -d %{buildroot}%{python3_sitearch}/cvc5/*.so %check # Build the tests cd %{_vpath_builddir}/test/api make cd - # Increase the test timeout for slow builders export TEST_TIMEOUT=2000 # The tests break without this cp -p %{_vpath_builddir}/src/api/python/build/lib.*/cvc5/cvc5_python_base.so \ %{_vpath_builddir}/src/api/python/cvc5 # FIXME: package ethos for Fedora to enable more tests %ctest %files %doc AUTHORS NEWS.md README.md THANKS %{_bindir}/%{name} %files libs %license COPYING %{_libdir}/libcvc5.so.1 %{_libdir}/libcvc5parser.so.1 %files devel %{_includedir}/%{name}/ %{_libdir}/libcvc5.so %{_libdir}/libcvc5parser.so %{_libdir}/cmake/%{name}/ %files java %{_javadir}/cvc5.jar %{_javadir}/cvc5-%{version}.jar %{_jnidir}/%{name}/ %{_libdir}/libcvc5jni.so %files -n python3-cvc5 %{python3_sitearch}/cvc5/ %{python3_sitearch}/cvc5-%{version}.dist-info/ %changelog ## START: Generated by rpmautospec * Thu Sep 26 2024 Jerry James - 1.2.0-1 - Version 1.2.0 - Drop unneeded patches: do-not-use-gold and rpath - Upstream changes broke %%generate_buildrequires; list BRs manually - Stop disabling hidden ELF symbols * Wed Jul 17 2024 Fedora Release Engineering - 1.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Jul 16 2024 Jerry James - 1.1.2-4 - Rebuild for cryptominisat 5.11.22 * Sat Jun 08 2024 Python Maint - 1.1.2-3 - Rebuilt for Python 3.13 * Fri Mar 29 2024 Jerry James - 1.1.2-2 - Rebuild for cocoalib 0.99850 * Thu Mar 14 2024 Jerry James - 1.1.2-1 - Version 1.1.2 * Tue Feb 20 2024 Jerry James - 1.1.1-1 - Version 1.1.1 * Fri Feb 09 2024 Jerry James - 1.1.0-5 - Rebuild for cryptominisat 5.11.21 * Wed Jan 31 2024 Jerry James - 1.1.0-4 - Rebuild for cryptominisat 5.11.15 * Wed Jan 24 2024 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jan 10 2024 Jerry James - 1.1.0-1 - Version 1.1.0 - Fix symbol visibility issue (rhbz#2256948) - Skip regression tests until alfc can be packaged * Fri Sep 15 2023 Jerry James - 1.0.8-1 - Version 1.0.8 - Remove dependency on antlr3 - Drop upstreamed patches: antlr3, toml, vec * Wed Aug 09 2023 Jerry James - 1.0.5-3 - Build with yosyshq-abc instead of abc * Sat Jul 29 2023 Jerry James - 1.0.5-1 - Initial RPM ## END: Generated by rpmautospec