Blame SPECS/python-cppy.spec

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