generated from demus/python3-rpm-template
Build and provide rpm of python3-expiringdict-rpm / rpmbuild (release) Failing after 1m12s
61 lines
1.6 KiB
RPMSpec
61 lines
1.6 KiB
RPMSpec
Name: python-expiringdict
|
|
Version: 1.2.2
|
|
Release: %autorelease
|
|
Summary: Dictionary with auto-expiring values for caching purposes
|
|
|
|
License: Apache-1.1
|
|
URL: https://www.mailgun.com/
|
|
Source: %{pypi_source expiringdict}
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel
|
|
|
|
%global _description %{expand:
|
|
expiringdict is a Python caching library. The core of the library is
|
|
ExpiringDict class which is an ordered dictionary with auto-expiring
|
|
values for caching purposes. Expiration happens on any access, object
|
|
is locked during cleanup from expired values. ExpiringDict can not
|
|
store more than max_len elements - the oldest will be deleted.
|
|
|
|
Note: Iteration over dict and also keys() do not remove expired values!}
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-expiringdict
|
|
Summary: %{summary}
|
|
|
|
%description -n python3-expiringdict %_description
|
|
|
|
# For official Fedora packages, review which extras should be actually packaged
|
|
# See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#Extras
|
|
%pyproject_extras_subpkg -n python3-expiringdict tests
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n expiringdict-%{version}
|
|
|
|
|
|
%generate_buildrequires
|
|
# Keep only those extras which you actually want to package or use during tests
|
|
%pyproject_buildrequires -x tests
|
|
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
|
|
%install
|
|
%pyproject_install
|
|
# Add top-level Python module names here as arguments, you can use globs
|
|
%pyproject_save_files -l expiringdict
|
|
|
|
|
|
%check
|
|
%pyproject_check_import
|
|
|
|
|
|
%files -n python3-expiringdict -f %{pyproject_files}
|
|
|
|
|
|
%changelog
|
|
%autochangelog |