From fc1b2ffdbff5fbbd02541dc489d904cb3d483e60 Mon Sep 17 00:00:00 2001 From: Dmitry Samoylik Date: Sun, 29 Dec 2024 18:25:08 +0300 Subject: [PATCH] import python-cppy-1.2.1-10.el10 --- .gitignore | 1 + .python-cppy.metadata | 1 + SPECS/python-cppy.spec | 147 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 149 insertions(+) create mode 100644 .gitignore create mode 100644 .python-cppy.metadata create mode 100644 SPECS/python-cppy.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3cb6300 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/cppy-1.2.1.tar.gz diff --git a/.python-cppy.metadata b/.python-cppy.metadata new file mode 100644 index 0000000..5cf3d90 --- /dev/null +++ b/.python-cppy.metadata @@ -0,0 +1 @@ +c82ee7a4f38e302bfe4de2a695d2bdfefb69951f SOURCES/cppy-1.2.1.tar.gz diff --git a/SPECS/python-cppy.spec b/SPECS/python-cppy.spec new file mode 100644 index 0000000..29216ac --- /dev/null +++ b/SPECS/python-cppy.spec @@ -0,0 +1,147 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 10; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%global srcname cppy + +Name: python-%{srcname} +Version: 1.2.1 +Release: %autorelease +Summary: C++ headers for C extension development + +License: BSD-3-Clause +URL: https://github.com/nucleic/cppy +Source0: %pypi_source + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(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 python3-%{srcname} +Summary: %{summary} + +%description -n python3-%{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-%{srcname}-doc +Summary: cppy documentation + +BuildRequires: python3dist(sphinx) +BuildRequires: python3dist(sphinx-rtd-theme) + +%description -n python-%{srcname}-doc +Documentation for cppy + + +%prep +%autosetup -n %{srcname}-%{version} + +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +# generate html docs +PYTHONPATH="%{pyproject_build_lib}" sphinx-build-3 docs/source html +# remove the sphinx-build leftovers +rm -rf html/.{doctrees,buildinfo} + +%install +%pyproject_install +%pyproject_save_files %{srcname} + +%check +%{pytest} tests + +%files -n python3-%{srcname} -f %{pyproject_files} +%doc README.rst + +%files -n python-%{srcname}-doc +%doc html +%license LICENSE + +%changelog +* Sun Dec 29 2024 Dmitriy Samoylik - 1.2.1-10 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 1.2.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 1.2.1-9 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.2.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.2.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.2.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jun 15 2023 Python Maint - 1.2.1-5 +- Rebuilt for Python 3.12 + +* Sun Apr 09 2023 Elliott Sales de Andrade - 1.2.1-4 +- Switch to SPDX license + +* Fri Jan 20 2023 Fedora Release Engineering - 1.2.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jun 22 2022 Charalampos Stratakis - 1.2.1-1 +- Update to 1.2.1 + +* Mon Jun 13 2022 Python Maint - 1.2.0-2 +- Rebuilt for Python 3.11 + +* Mon Mar 14 2022 Elliott Sales de Andrade - 1.2.0-1 +- Update to latest version + +* Mon Mar 14 2022 Elliott Sales de Andrade - 1.1.0-10 +- Switch to latest Python macros + +* Fri Jan 21 2022 Fedora Release Engineering - 1.1.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.1.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 1.1.0-5 +- Rebuilt for Python 3.10 + +* 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. + +## END: Generated by rpmautospec