From 8a897d14dced54cd19f668b21aa27e5420287f67 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 25 Oct 2024 18:33:55 +0300 Subject: [PATCH] import py3c-1.4-9.el10 --- .gitignore | 1 + .py3c.metadata | 1 + SPECS/py3c.spec | 181 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 183 insertions(+) create mode 100644 .gitignore create mode 100644 .py3c.metadata create mode 100644 SPECS/py3c.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7f89718 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/py3c-1.4.tar.gz diff --git a/.py3c.metadata b/.py3c.metadata new file mode 100644 index 0000000..65844b0 --- /dev/null +++ b/.py3c.metadata @@ -0,0 +1 @@ +3cb2faf4b4276144977f77b9ff5fe3f3b3afadf7 SOURCES/py3c-1.4.tar.gz diff --git a/SPECS/py3c.spec b/SPECS/py3c.spec new file mode 100644 index 0000000..a08e394 --- /dev/null +++ b/SPECS/py3c.spec @@ -0,0 +1,181 @@ +# A header-only library has no debuginfo +%global debug_package %{nil} + +Name: py3c +Version: 1.4 +Release: 9%{?dist} +Summary: Guide and compatibility macros for porting extensions to Python 3 + +# Licences differ for subpackages +License: MIT AND CC-BY-SA-3.0 + +URL: http://py3c.readthedocs.io/ + +Source0: https://github.com/encukou/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: make +BuildRequires: gcc +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme >= 0.4.3 + +%description +py3c helps you port C extensions to Python 3. + +It provides a detailed guide, and a set of macros to make porting easy +and reduce boilerplate. + +%package devel +License: MIT +Summary: Header files for py3c + +Requires: python3-devel + +# A header-only library counts as static +Provides: %{name}-static = %{version}-%{release} +%{?_isa:Provides: %{name}-static%{?_isa} = %{version}-%{release}} + +%description devel +%{name}-devel is only required for building software that uses py3c. +Because py3c is a header-only library, there is no matching run-time package. + +%package doc +BuildArch: noarch +License: CC-BY-SA-3.0 +Summary: Guide for porting C extensions to Python 3 + +%description doc +Guide for porting CPython extensions from Python 2 to Python 3, using the +py3c macros. + +%prep +%setup -q + +%build +%make_build py3c.pc includedir=%{_includedir} + +%make_build doc SPHINXBUILD=sphinx-build-3 + +%check +%make_build test-python3 + +%install +make install prefix=%{buildroot}%{_prefix} includedir=%{buildroot}%{_includedir} +mkdir -p %{buildroot}%{_pkgdocdir} +cp -rv doc/build/html/* %{buildroot}%{_pkgdocdir} + +# Strip buildroot name from the pkgconfig file +sed --in-place -e's!%{buildroot}!!' %{buildroot}%{_datadir}/pkgconfig/py3c.pc + +%files devel +%license LICENSE.MIT +%doc README.rst +%{_includedir}/py3c.h +%{_includedir}/py3c/ +%{_datadir}/pkgconfig/py3c.pc + +%files doc +%license doc/LICENSE.CC-BY-SA-3.0 +%doc %{_pkgdocdir}/ + +%changelog +* Mon Jun 24 2024 Troy Dawson - 1.4-9 +- Bump release for June 2024 mass rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 1.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 12 2023 Karolina Surma - 1.4-5 +- Migrate the License tags to SPDX expressions + +* Fri Jan 20 2023 Fedora Release Engineering - 1.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Oct 15 2021 Petr Viktorin - 1.4-1 +- Update to 1.4 + +* Fri Jul 23 2021 Fedora Release Engineering - 1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Jan 07 2021 Petr Viktorin - 1.3-2 +- No longer unbundle fonts + +* Sun Nov 29 2020 Petr Viktorin - 1.3-1 +- Update to 1.3 + +* Tue Jul 28 2020 Fedora Release Engineering - 1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Petr Viktorin - 1.2-1 +- Update to 1.2 to fix tests under Python 3.9 +- BuildRequire python3-setuptools explicitly + +* Thu Jan 30 2020 Petr Viktorin - 1.1-3 +- Drop tests and Suggests for Python 2; require python3-devel + +* Thu Jan 30 2020 Fedora Release Engineering - 1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Oct 04 2019 Petr Viktorin - 1.1-1 +- Update to 1.1 to fix Python 3.8 compatibility in tests + https://bugzilla.redhat.com/show_bug.cgi?id=1758446 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro HronĨok - 1.0-3 +- Rebuilt for Python 3.7 + +* Mon Feb 19 2018 Petr Viktorin - 1.0-2 +- Add BuildRequires: gcc + +* Sun Feb 11 2018 Petr Viktorin - 1.0-1 +- Update to 1.0 (adds Py_UNREACHABLE, Py_RETURN_RICHCOMPARE, Py_UNUSED) +- Strip buildroot name from the pkgconfig file + +* Fri Feb 09 2018 Fedora Release Engineering - 0.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + + +* Wed Feb 01 2017 Petr Viktorin - 0.8-1 +- Update to 0.8: +- Add backports for PyMem_Raw* + +* Thu May 19 2016 Petr Viktorin - 0.7-1 +- Update to 0.7: +- Fix file shim tests on big endian architectures + (bug in the test suite only, does not affect behavior) + +* Thu May 19 2016 Petr Viktorin - 0.6-2 +- Initial package