## START: Set by rpmautospec ## (rpmautospec version 0.3.8) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 pypi_name filecache Name: python-%{pypi_name} Version: 0.81b Release: %autorelease Summary: Memoize pattern to save results to file # https://github.com/ubershmekel/filecache/issues/14 License: BSD URL: https://github.com/ubershmekel/filecache Source: https://github.com/ubershmekel/filecache/archive/refs/tags/0.81b.tar.gz BuildArch: noarch %description Filecache is a decorator which saves the return value of functions even after the interpreter dies. For example this is useful on functions that download and parse webpages. All you need to do is specify how long the return values should be cached (use seconds, like time.sleep). %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: python3-setuptools %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} filecache is a decorator which saves the return value of functions even after the interpreter dies. For example this is useful on functions that download and parse webpages. All you need to do is specify how long the return values should be cached (use seconds, like time.sleep). %prep %autosetup -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %doc README.md %{python3_sitelib}/filecache-0.81-py%{python3_version}.egg-info/* %{python3_sitelib}/filecache/__init__.py %{python3_sitelib}/filecache/__pycache__/*.pyc %changelog ## START: Generated by rpmautospec * Wed Dec 06 2023 John Doe - 0.81b-1 - Uncommitted changes ## END: Generated by rpmautospec