diff --git a/python-decorator.spec b/python-decorator.spec index 93185fddaa0265dd434f92c4e2ff4ff2428c28c1..29a04de7540cf00a60dfff364fcd8719454b79a7 100644 --- a/python-decorator.spec +++ b/python-decorator.spec @@ -1,5 +1,5 @@ %global pypi_name decorator -%define anolis_release 1 +%define anolis_release 2 Name: python-%{pypi_name} Version: 5.1.1 @@ -12,7 +12,6 @@ Source0: %pypi_source decorator BuildArch: noarch -BuildRequires: python3-setuptools BuildRequires: python3-devel %description @@ -31,14 +30,24 @@ 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-doc +Summary: doc files for python3-decorator +Requires: python3-decorator = %{version}-%{release} + +%description -n python3-decorator-doc +doc files for python3-decorator. + %prep %autosetup -p1 -n %{pypi_name}-%{version} +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install # Remove this when https://github.com/micheles/decorator/issues/32 is fixed. find %{buildroot} -name SOURCES.txt~ -exec rm -f {} \; @@ -47,12 +56,17 @@ find %{buildroot} -name SOURCES.txt~ -exec rm -f {} \; %{__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}/decorator-%{version}.dist-info/ %{python3_sitelib}/__pycache__/* +%files -n python3-%{pypi_name}-doc +%doc README.rst CHANGES.md + %changelog +* Mon Feb 27 2023 mgb01105731 - 5.1.1-2 +- optimise dependency + * Thu Mar 10 2022 zl01087097 - 5.1.1-1 -- upstream version 5.1.1 \ No newline at end of file +- upstream version 5.1.1