Convert to pyproject macros

epel9
Carl George 2 months ago
parent ce99599c0d
commit 12b97564ec

@ -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 <carlwgeorge@fedoraproject.org> - 1.2.15-1
- Update to version 1.2.15
- Convert to pyproject macros
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.14-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild

Loading…
Cancel
Save