1f30f27
Name:           python-pplpy
3583115
Version:        0.8.7
1f30f27
Release:        6%{?dist}
30a07eb
Summary:        Python PPL wrapper
30a07eb
30a07eb
License:        GPLv3+
30a07eb
URL:            https://pypi.org/project/pplpy/
1f30f27
Source0:        %pypi_source pplpy
a86a76f
# Fix the Cython include path and set the language level to 3
30a07eb
Patch0:         %{name}-cython.patch
30a07eb
30a07eb
BuildRequires:  gcc-c++
30a07eb
BuildRequires:  libmpc-devel
92ff3dc
BuildRequires:  make
a86a76f
BuildRequires:  pkgconfig(mpfr)
30a07eb
BuildRequires:  ppl-devel
30a07eb
BuildRequires:  python3-cysignals-devel
a86a76f
BuildRequires:  python3-devel
4327114
BuildRequires:  %{py3_dist cython}
4327114
BuildRequires:  %{py3_dist gmpy2}
8afc177
BuildRequires:  %{py3_dist pip}
4327114
BuildRequires:  %{py3_dist setuptools}
4327114
BuildRequires:  %{py3_dist sphinx}
8afc177
BuildRequires:  %{py3_dist tox}
8afc177
BuildRequires:  %{py3_dist tox-current-env}
8afc177
BuildRequires:  %{py3_dist wheel}
30a07eb
30a07eb
%description
30a07eb
This package provides a Python wrapper to the C++ Parma Polyhedra
30a07eb
Library (PPL).
30a07eb
1f30f27
%package     -n python3-pplpy
30a07eb
Summary:        Python 3 PPL wrapper
1f30f27
Recommends:     %{py3_dist cysignals}
1f30f27
Recommends:     %{py3_dist gmpy2}
30a07eb
1f30f27
%description -n python3-pplpy
30a07eb
This package provides a Python 3 wrapper to the C++ Parma Polyhedra
30a07eb
Library (PPL).
30a07eb
1f30f27
%package     -n python3-pplpy-devel
30a07eb
Summary:        Development files for the python 3 PPL wrapper
1f30f27
Requires:       python3-pplpy%{?_isa} = %{version}-%{release}
30a07eb
1f30f27
%description -n python3-pplpy-devel
30a07eb
Development files for the python 3 PPL wrapper.
30a07eb
30a07eb
%prep
1f30f27
%autosetup -p0 -n pplpy-%{version}
30a07eb
30a07eb
%build
a86a76f
# Do not pass -pthread to the compiler or linker
a86a76f
export CC=gcc
a86a76f
export LDSHARED="gcc -shared"
8afc177
%pyproject_wheel
30a07eb
30a07eb
# Build the documentation
1f30f27
PYTHONPATH=%{pyproject_build_lib} make -C docs html
a86a76f
rst2html --no-datestamp README.rst README.html
30a07eb
30a07eb
%install
8afc177
%pyproject_install
1f30f27
%pyproject_save_files 'ppl*'
30a07eb
30a07eb
%check
8afc177
%tox
30a07eb
1f30f27
%files -n python3-pplpy -f %{pyproject_files}
a86a76f
%doc CHANGES.txt README.html docs/build/html/*
30a07eb
%exclude %{python3_sitearch}/ppl/*.hh
30a07eb
%exclude %{python3_sitearch}/ppl/*.pxd
30a07eb
1f30f27
%files -n python3-pplpy-devel
30a07eb
%{python3_sitearch}/ppl/*.hh
30a07eb
%{python3_sitearch}/ppl/*.pxd
30a07eb
30a07eb
%changelog
1f30f27
* Mon Mar 21 2022 Jerry James <loganjerry@gmail.com> - 0.8.7-6
1f30f27
- Rebuild for python-cysignals 1.11.2
1f30f27
5edc479
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-5
5edc479
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
5edc479
a811648
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-4
a811648
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
a811648
53db4dc
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.8.7-3
53db4dc
- Rebuilt for Python 3.10
53db4dc
e826564
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-2
e826564
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
e826564
3583115
* Wed Jan 20 2021 Jerry James <loganjerry@gmail.com> - 0.8.7-1
3583115
- Version 0.8.7
3583115
4327114
* Mon Jan 18 2021 Jerry James <loganjerry@gmail.com> - 0.8.6-1
4327114
- Version 0.8.6
4327114
- Drop unneeded pari-devel BR
4327114
e3fd2af
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.4-8
e3fd2af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
e3fd2af
09c581c
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.8.4-7
09c581c
- Rebuilt for Python 3.9
09c581c
8a91840
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.4-6
8a91840
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8a91840
a86a76f
* Sat Jan 25 2020 Jerry James <loganjerry@gmail.com> - 0.8.4-5
a86a76f
- Invoke cython at language level 3
a86a76f
- Do not link with libpthread unnecessarily
a86a76f
da1b83a
* Tue Sep 10 2019 Jerry James <loganjerry@gmail.com> - 0.8.4-4
da1b83a
- Install the documentation where sagemath wants it
da1b83a
9e611d1
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.4-3
9e611d1
- Rebuilt for Python 3.8
9e611d1
92d0597
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.4-2
92d0597
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
92d0597
30a07eb
* Wed Mar 27 2019 Jerry James <loganjerry@gmail.com> - 0.8.4-1
30a07eb
- Initial RPM