diff --git a/decorator-5.1.1.tar.gz b/decorator-5.1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..57b3c8d0fc5cc489b7a515e8afc6fcac02cf6c56 Binary files /dev/null and b/decorator-5.1.1.tar.gz differ diff --git a/python-decorator.spec b/python-decorator.spec new file mode 100644 index 0000000000000000000000000000000000000000..5c077168554aae0f0a6234ef720c7e63c1ecfbc6 --- /dev/null +++ b/python-decorator.spec @@ -0,0 +1,59 @@ +%global pypi_name decorator +%define anolis_release 1 + +Name: python-%{pypi_name} +Version: 5.1.1 +Release: %{anolis_release}%{?dist} +Summary: Module to simplify usage of decorators + +License: BSD +URL: https://github.com/micheles/decorator +Source0: %pypi_source decorator + +BuildArch: noarch + +BuildRequires: python3-setuptools +BuildRequires: python3-devel + +%description +The aim of the decorator module is to simplify the usage of decorators for +the average programmer, and to popularize decorators usage giving examples +of useful decorators, such as memoize, tracing, redirecting_stdout, locked, +etc. The core of this module is a decorator factory called decorator. + +%package -n python3-decorator +Summary: Module to simplify usage of decorators in python3 +%{?python_provide:%python_provide python3-decorator} + +%description -n python3-decorator +The aim of the decorator module is to simplify the usage of decorators for +the average programmer, and to popularize decorators usage giving examples +of useful decorators, such as memoize, tracing, redirecting_stdout, locked, +etc. The core of this module is a decorator factory called decorator. + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +# Remove this when https://github.com/micheles/decorator/issues/32 is fixed. +find %{buildroot} -name SOURCES.txt~ -exec rm -f {} \; + +%check +%{__python3} setup.py test + +%files -n python3-%{pypi_name} +%doc README.rst CHANGES.md +%license LICENSE.txt +%{python3_sitelib}/decorator.py +%{python3_sitelib}/decorator-*.egg-info/ +%{python3_sitelib}/__pycache__/* + +%changelog +* Thu Mar 10 2022 zl01087097 - 5.1.1-1 + +- upstream version 5.1.1 \ No newline at end of file