%global srcname cppy %global python3_pkgversion 39 %global __python3 %{_bindir}/python3.9 %global __pytest /usr/bin/pytest-3.9 Name: python-%{srcname} Version: 1.1.0 Release: 5%{?dist} Summary: C++ headers for C extension development License: BSD URL: https://github.com/nucleic/cppy Source0: %pypi_source BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pluggy BuildRequires: python%{python3_pkgversion}-pytest %description A small C++ header library which makes it easier to write Python extension modules. The primary feature is a PyObject smart pointer which automatically handles reference counting and provides convenience methods for performing common object operations. %package -n python%{python3_pkgversion}-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} A small C++ header library which makes it easier to write Python extension modules. The primary feature is a PyObject smart pointer which automatically handles reference counting and provides convenience methods for performing common object operations. %package -n python%{python3_pkgversion}-%{srcname}-doc Summary: cppy documentation BuildRequires: python3-sphinx BuildRequires: python3-sphinx_rtd_theme %description -n python%{python3_pkgversion}-%{srcname}-doc Documentation for cppy %prep %autosetup -n %{srcname}-%{version} # Remove bundled egg-info rm -rf %{srcname}.egg-info %build %py3_build # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs/source html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install %check PYTHONPATH=%{buildroot}%{python3_sitelib} \ pytest-3.9 tests %files -n python%{python3_pkgversion}-%{srcname} %doc README.rst %license LICENSE %{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}-%{version}-py*.egg-info %files -n python%{python3_pkgversion}-%{srcname}-doc %doc html %license LICENSE %changelog * Wed Jun 15 2022 Ali Erdinc Koroglu - 1.1.0-5 - Rebuilt for c8s-py39 * Wed Jan 27 2021 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 25 2020 Miro HronĨok - 1.1.0-2 - Rebuilt for Python 3.9 * Wed Apr 01 2020 Elliott Sales de Andrade - 1.1.0-1 - Initial package.