From 5806a4fc2aca1fd79ccdcc51fd60a2ce82540400 Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 5 Jan 2025 22:23:29 +0300 Subject: [PATCH] import python-flexcache-0.3-3.el10 --- .gitignore | 1 + .python-flexcache.metadata | 1 + SPECS/python-flexcache.spec | 114 ++++++++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+) create mode 100644 .gitignore create mode 100644 .python-flexcache.metadata create mode 100644 SPECS/python-flexcache.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..697f5e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/flexcache-0.3.tar.gz diff --git a/.python-flexcache.metadata b/.python-flexcache.metadata new file mode 100644 index 0000000..428ef49 --- /dev/null +++ b/.python-flexcache.metadata @@ -0,0 +1 @@ +9ec1d4796a923edb4261b116f6b67d869c63bc27 SOURCES/flexcache-0.3.tar.gz diff --git a/SPECS/python-flexcache.spec b/SPECS/python-flexcache.spec new file mode 100644 index 0000000..2be849a --- /dev/null +++ b/SPECS/python-flexcache.spec @@ -0,0 +1,114 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.1) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + 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 + +Name: python-flexcache +Version: 0.3 +Release: %autorelease +Summary: Cache on disk the result of expensive calculations + +License: BSD-3-Clause +URL: https://github.com/hgrecco/flexcache +Source: %{pypi_source flexcache} + +BuildArch: noarch + +BuildRequires: python3-devel + +# See the test extra in pyproject.toml. We list test dependencies manually +# since we do not want pytest-cov +# (https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters) +# and the other pytest plugins are spurious +# (https://github.com/hgrecco/flexacache/pull/3). +BuildRequires: %{py3_dist pytest} + +%global common_description %{expand: +A robust and extensible package to cache on disk the result of expensive +calculations.} + +%description %{common_description} + + +%package -n python3-flexcache +Summary: %{summary} + +%description -n python3-flexcache %{common_description} + + +%prep +%autosetup -n flexcache-%{version} + + +%generate_buildrequires +%pyproject_buildrequires + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files -l flexcache + +# Upstream probably doesn’t want to install flexcache.testsuite, but we don’t +# know how to suggest a fix given “[BUG] options.packages.find.exclude not +# taking effect when include_package_data = True”, +# https://github.com/pypa/setuptools/issues/3260. +# +# Still, we don’t want to install the test suite, so we just remove the files +# manually for now. +rm -rvf '%{buildroot}%{python3_sitelib}/flexcache/testsuite' +sed -r -i '/\/flexcache\/testsuite/d' %{pyproject_files} + + +%check +%pytest + + +%files -n python3-flexcache -f %{pyproject_files} +%doc README.rst +%doc CHANGES + + +%changelog +* Sun Jan 05 2025 Arkady L. Shane - 0.3-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Wed Aug 21 2024 Benjamin A. Beasley - 0.3-3 +- Drop spurious test BuildRequires + +* Fri Jul 19 2024 Fedora Release Engineering - 0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 14 2024 Benjamin A. Beasley - 0.3-1 +- Update to 0.3 (close RHBZ#2268657) + +* Fri Jun 07 2024 Python Maint - 0.2-8 +- Rebuilt for Python 3.13 + +* Mon Mar 11 2024 Benjamin A. Beasley - 0.2-7 +- Add setuptools to the runtime dependencies (fix RHBZ#2268986) + +* Fri Jan 26 2024 Fedora Release Engineering - 0.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Dec 18 2023 Benjamin A. Beasley - 0.2-3 +- Assert that %%pyproject_files contains a license file + +* Fri Jul 21 2023 Fedora Release Engineering - 0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jul 15 2023 Benjamin A. Beasley - 0.2-1 +- Initial package (close RHBZ#2222279) +## END: Generated by rpmautospec