1f30f27
Name:           python-pplpy
00ae6e3
Version:        0.8.10
26eb4f4
Release:        %autorelease
30a07eb
Summary:        Python PPL wrapper
30a07eb
0a25ed9
License:        GPL-3.0-or-later
30a07eb
URL:            https://pypi.org/project/pplpy/
00ae6e3
VCS:            https://github.com/sagemath/pplpy
1f30f27
Source0:        %pypi_source pplpy
30a07eb
5f5178b
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
5f5178b
ExcludeArch:    %{ix86}
5f5178b
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
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
0a25ed9
# The content is GPL-3.0-or-later.  Other licenses are due to files copied in
0a25ed9
# by Sphinx.
0a25ed9
# _static/_sphinx_javascript_frameworks_compat.js: BSD-2-Clause
0a25ed9
# _static/basic.css: BSD-2-Clause
0a25ed9
# _static/classic.css: BSD-2-Clause
0a25ed9
# _static/default.css: BSD-2-Clause
0a25ed9
# _static/doctools.js: BSD-2-Clause
0a25ed9
# _static/documentation_options.js: BSD-2-Clause
0a25ed9
# _static/file.png: BSD-2-Clause
0a25ed9
# _static/jquery*.js: MIT
0a25ed9
# _static/language_data.js: BSD-2-Clause
0a25ed9
# _static/minus.png: BSD-2-Clause
0a25ed9
# _static/plus.png: BSD-2-Clause
0a25ed9
# _static/searchtools.js: BSD-2-Clause
0a25ed9
# _static/sidebar.js: BSD-2-Clause
0a25ed9
# _static/underscore*.js: MIT
0a25ed9
# genindex.html: BSD-2-Clause
0a25ed9
# search.html: BSD-2-Clause
0a25ed9
# searchindex.js: BSD-2-Clause
0a25ed9
License:        GPL-3.0-or-later AND BSD-2-Clause AND MIT
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
00ae6e3
%autosetup -n pplpy-%{version}
30a07eb
8b9e58e
%generate_buildrequires
00ae6e3
%pyproject_buildrequires -t -x doc
8b9e58e
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
26ae538
PYTHONPATH=$PWD/build/lib.%{python3_platform}-cpython-%{python3_version_nodots} \
26ae538
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}
0a25ed9
%doc CHANGES.txt README.html
30a07eb
%exclude %{python3_sitearch}/ppl/*.hh
30a07eb
%exclude %{python3_sitearch}/ppl/*.pxd
30a07eb
1f30f27
%files -n python3-pplpy-devel
0a25ed9
%doc docs/build/html/*
30a07eb
%{python3_sitearch}/ppl/*.hh
30a07eb
%{python3_sitearch}/ppl/*.pxd
30a07eb
30a07eb
%changelog
26eb4f4
%autochangelog