You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-flexcache/SPECS/python-flexcache.spec

115 lines
3.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

## 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 doesnt want to install flexcache.testsuite, but we dont
# 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 dont 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 <tigro@msvsphere-os.ru> - 0.3-3
- Rebuilt for MSVSphere 10
## START: Generated by rpmautospec
* Wed Aug 21 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.3-3
- Drop spurious test BuildRequires
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 14 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.3-1
- Update to 0.3 (close RHBZ#2268657)
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.2-8
- Rebuilt for Python 3.13
* Mon Mar 11 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2-7
- Add setuptools to the runtime dependencies (fix RHBZ#2268986)
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Dec 18 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2-3
- Assert that %%pyproject_files contains a license file
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sat Jul 15 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2-1
- Initial package (close RHBZ#2222279)
## END: Generated by rpmautospec