30a07eb
%global srcname pplpy
30a07eb
30a07eb
Name:           python-%{srcname}
30a07eb
Version:        0.8.4
30a07eb
Release:        1%{?dist}
30a07eb
Summary:        Python PPL wrapper
30a07eb
30a07eb
License:        GPLv3+
30a07eb
URL:            https://pypi.org/project/pplpy/
30a07eb
Source0:        %pypi_source
30a07eb
# Fix the Cython include path
30a07eb
Patch0:         %{name}-cython.patch
30a07eb
30a07eb
BuildRequires:  gcc-c++
30a07eb
BuildRequires:  libmpc-devel
30a07eb
BuildRequires:  mpfr-devel
30a07eb
BuildRequires:  pari-devel
30a07eb
BuildRequires:  ppl-devel
30a07eb
BuildRequires:  python3-devel
30a07eb
BuildRequires:  python3-cysignals-devel
30a07eb
BuildRequires:  python3dist(cython)
30a07eb
BuildRequires:  python3dist(gmpy2)
30a07eb
BuildRequires:  python3dist(setuptools)
30a07eb
BuildRequires:  python3dist(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
%{?python_provide:%python_provide python3-%{srcname}}
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
30a07eb
%py3_build
30a07eb
30a07eb
# Build the documentation
30a07eb
PYTHONPATH=$(ls -1d $PWD/build/lib.*) make -C docs html
30a07eb
30a07eb
%install
30a07eb
%py3_install
30a07eb
30a07eb
%check
30a07eb
export PYTHONPATH=%{buildroot}%{python3_sitearch}
30a07eb
%{__python3} setup.py test
30a07eb
30a07eb
%files -n python3-%{srcname}
30a07eb
%doc CHANGES.txt README.rst
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
30a07eb
* Wed Mar 27 2019 Jerry James <loganjerry@gmail.com> - 0.8.4-1
30a07eb
- Initial RPM