|
|
30a07eb |
%global srcname pplpy
|
|
|
30a07eb |
|
|
|
30a07eb |
Name: python-%{srcname}
|
|
|
3583115 |
Version: 0.8.7
|
|
|
53db4dc |
Release: 3%{?dist}
|
|
|
30a07eb |
Summary: Python PPL wrapper
|
|
|
30a07eb |
|
|
|
30a07eb |
License: GPLv3+
|
|
|
30a07eb |
URL: https://pypi.org/project/pplpy/
|
|
|
30a07eb |
Source0: %pypi_source
|
|
|
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}
|
|
|
4327114 |
BuildRequires: %{py3_dist setuptools}
|
|
|
4327114 |
BuildRequires: %{py3_dist sphinx}
|
|
|
30a07eb |
|
|
|
30a07eb |
%description
|
|
|
30a07eb |
This package provides a Python wrapper to the C++ Parma Polyhedra
|
|
|
30a07eb |
Library (PPL).
|
|
|
30a07eb |
|
|
|
30a07eb |
%package -n python3-%{srcname}
|
|
|
30a07eb |
Summary: Python 3 PPL wrapper
|
|
|
30a07eb |
|
|
|
30a07eb |
%description -n python3-%{srcname}
|
|
|
30a07eb |
This package provides a Python 3 wrapper to the C++ Parma Polyhedra
|
|
|
30a07eb |
Library (PPL).
|
|
|
30a07eb |
|
|
|
30a07eb |
%package -n python3-%{srcname}-devel
|
|
|
30a07eb |
Summary: Development files for the python 3 PPL wrapper
|
|
|
30a07eb |
Requires: python3-%{srcname}%{?_isa} = %{version}-%{release}
|
|
|
30a07eb |
|
|
|
30a07eb |
%description -n python3-%{srcname}-devel
|
|
|
30a07eb |
Development files for the python 3 PPL wrapper.
|
|
|
30a07eb |
|
|
|
30a07eb |
%prep
|
|
|
30a07eb |
%autosetup -p0 -n %{srcname}-%{version}
|
|
|
30a07eb |
|
|
|
30a07eb |
%build
|
|
|
a86a76f |
# Do not pass -pthread to the compiler or linker
|
|
|
a86a76f |
export CC=gcc
|
|
|
a86a76f |
export LDSHARED="gcc -shared"
|
|
|
30a07eb |
%py3_build
|
|
|
30a07eb |
|
|
|
30a07eb |
# Build the documentation
|
|
|
30a07eb |
PYTHONPATH=$(ls -1d $PWD/build/lib.*) make -C docs html
|
|
|
a86a76f |
rst2html --no-datestamp README.rst README.html
|
|
|
30a07eb |
|
|
|
30a07eb |
%install
|
|
|
30a07eb |
%py3_install
|
|
|
30a07eb |
|
|
|
30a07eb |
%check
|
|
|
30a07eb |
export PYTHONPATH=%{buildroot}%{python3_sitearch}
|
|
|
4327114 |
%{python3} setup.py test
|
|
|
30a07eb |
|
|
|
30a07eb |
%files -n python3-%{srcname}
|
|
|
a86a76f |
%doc CHANGES.txt README.html docs/build/html/*
|
|
|
30a07eb |
%license LICENSE.txt
|
|
|
30a07eb |
%{python3_sitearch}/pplpy*
|
|
|
30a07eb |
%{python3_sitearch}/ppl/
|
|
|
30a07eb |
%exclude %{python3_sitearch}/ppl/*.hh
|
|
|
30a07eb |
%exclude %{python3_sitearch}/ppl/*.pxd
|
|
|
30a07eb |
|
|
|
30a07eb |
%files -n python3-%{srcname}-devel
|
|
|
30a07eb |
%{python3_sitearch}/ppl/*.hh
|
|
|
30a07eb |
%{python3_sitearch}/ppl/*.pxd
|
|
|
30a07eb |
|
|
|
30a07eb |
%changelog
|
|
|
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
|