Name: brial Version: 1.2.11 Release: 1%{?dist} Summary: Framework for Boolean Rings # The entire source code is GPLv2+ except the Cudd directory that is BSD License: GPL-2.0-or-later AND BSD-3-Clause URL: https://github.com/BRiAl/BRiAl/ Source0: https://github.com/BRiAl/BRiAl/releases/download/%{version}/%{name}-%{version}.tar.bz2 # The clock function has been removed from python 3.8. See # https://github.com/BRiAl/BRiAl/commit/74d861705c77c3af7e6a2e49dd57f8d26a664072 Patch0: %{name}-clock.patch # cudd/cudd.h:#define CUDD_VERSION "2.5.0" Provides: bundled(cudd) = 2.5.0 BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: boost-devel BuildRequires: make BuildRequires: pkgconfig(gdlib) BuildRequires: pkgconfig(m4ri) BuildRequires: python3-devel BuildRequires: %{py3_dist pip} BuildRequires: %{py3_dist setuptools} BuildRequires: %{py3_dist wheel} %description The core of BRiAl is a C++ library, which provides high-level data types for Boolean polynomials and monomials, exponent vectors, as well as for the underlying polynomial rings and subsets of the powerset of the Boolean variables. As a unique approach, binary decision diagrams are used as internal storage type for polynomial structures. On top of this C++-library we provide a Python interface. This allows parsing of complex polynomial systems, as well as sophisticated and extendable strategies for Gröbner base computation. BRiAL features a powerful reference implementation for Gröbner basis computation. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: boost-devel%{?_isa} %description devel Development headers and libraries for %{name}. %package -n python3-%{name} Summary: Python 3 interface to %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description -n python3-%{name} Python 3 interface to %{name}. %prep %autosetup -p1 %build export CPPFLAGS="-DPBORI_NDEBUG" %configure --enable-shared --disable-static # Get rid of undesirable hardcoded rpaths, and workaround libtool reordering # -Wl,--as-needed after all the libraries. 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' \ -e 's|CC="\(g..\)"|CC="\1 -Wl,--as-needed"|' \ -i libtool %make_build # Make the python interfaces pushd sage-brial %pyproject_wheel popd %install %make_install rm %{buildroot}%{_libdir}/*.la # Install the python interfaces pushd sage-brial %pyproject_install %pyproject_save_files brial popd %check export LD_LIBRARY_PATH=$PWD/.libs:$PWD/groebner/src/.libs make check %files %doc README %license LICENSE %{_libdir}/lib%{name}*.so.* %files devel %{_includedir}/polybori.h %{_includedir}/polybori/ %{_libdir}/lib%{name}*.so %files -n python3-%{name} -f %{pyproject_files} %doc sage-brial/README.md %changelog * Mon Dec 19 2022 Jerry James - 1.2.11-1 - Version 1.2.11 (rhbz#2112425) - Convert License tag to SPDX - Fix FTBFS with python 3.12 (rhbz#2154856) * Wed Jul 20 2022 Fedora Release Engineering - 1.2.10-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.2.10-6 - Rebuilt for Python 3.11 * Wed Jan 19 2022 Fedora Release Engineering - 1.2.10-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1.2.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.2.10-3 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 1.2.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Oct 5 2020 Jerry James - 1.2.10-1 - Version 1.2.10 * Mon Jul 27 2020 Fedora Release Engineering - 1.2.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.2.8-2 - Rebuilt for Python 3.9 * Thu Mar 19 2020 Jerry James - 1.2.8-1 - Version 1.2.8 * Tue Jan 28 2020 Fedora Release Engineering - 1.2.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Jan 27 2020 Jerry James - 1.2.7-1 - Version 1.2.7 * Thu Jan 16 2020 Jerry James - 1.2.6-1 - Version 1.2.6 * Wed Sep 11 2019 Jerry James - 1.2.5-4 - Add -clock patch to fix runtime failure with python 3.8 * Mon Aug 19 2019 Miro Hrončok - 1.2.5-3 - Rebuilt for Python 3.8 * Wed Jul 24 2019 Fedora Release Engineering - 1.2.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jun 27 2019 Jerry James - 1.2.5-1 - New upstream version * Thu Jan 31 2019 Fedora Release Engineering - 1.2.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jan 15 2019 Miro Hrončok - 1.2.4-2 - Subpackage python2-brial has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Thu Sep 13 2018 Jerry James - 1.2.4-1 - New upstream version * Thu Jul 12 2018 Fedora Release Engineering - 1.2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.2.3-2 - Rebuilt for Python 3.7 * Sat Jun 2 2018 Jerry James - 1.2.3-1 - New upstream version (bz 1438103) - Build for both python 2 and 3 - Add a check script * Wed Feb 07 2018 Fedora Release Engineering - 0.8.5-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.8.5-9 - Python 2 binary package renamed to python2-brial See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Wed Aug 02 2017 Fedora Release Engineering - 0.8.5-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.8.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon May 15 2017 Fedora Release Engineering - 0.8.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.8.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Aug 18 2016 pcpa 0.8.5-4 - Add Provides/Obsoletes to remaining polybori packages (#1367526#c6) * Wed Aug 17 2016 pcpa 0.8.5-3 - Correct summary to talk about BRiAl and not PolyBori (#1367526#c4) * Tue Aug 16 2016 pcpa 0.8.5-2 - Correct setting of CXXFLAGS (#1367526#c2) - Add proper multiple license information (#1367526#c2) - Add Provides/Obsoletes to devel package (#1367526#c2) - Remove unused shared library dependencies (#1367526#c2) - Add version information to bundled Cudd (#1367526#c2) - Change to a more informational summary (#1367526#c2) * Wed Aug 10 2016 pcpa 0.8.5-1 - Initial brial spec file