diff --git a/python-deprecated.spec b/python-deprecated.spec index 5521eb3..87800ee 100644 --- a/python-deprecated.spec +++ b/python-deprecated.spec @@ -7,40 +7,39 @@ URL: https://github.com/laurent-laporte-pro/deprecated Source: %{pypi_source deprecated} BuildArch: noarch -%description +%global _description %{expand: Python @deprecated decorator to deprecate old python classes, -functions or methods. +functions or methods.} + +%description %{_description} %package -n python3-deprecated Summary: %{summary} BuildRequires: python3-devel -BuildRequires: python3-setuptools -%{?python_provide:%python_provide python3-deprecated} -%description -n python3-deprecated -Python @deprecated decorator to deprecate old python classes, -functions or methods. +%description -n python3-deprecated %{_description} %prep %autosetup -n deprecated-%{version} -rm -rf Deprecated.egg-info + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files -l deprecated -%files -n python3-deprecated -%license LICENSE.rst +%files -n python3-deprecated -f %{pyproject_files} %doc README.md -%{python3_sitelib}/deprecated/ -%{python3_sitelib}/Deprecated-*.egg-info/ %changelog * Sat Nov 23 2024 Carl George - 1.2.15-1 - Update to version 1.2.15 +- Convert to pyproject macros * Fri Jul 19 2024 Fedora Release Engineering - 1.2.14-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild