diff --git a/python-rq.spec b/python-rq.spec index 69fb710..79381ce 100644 --- a/python-rq.spec +++ b/python-rq.spec @@ -2,7 +2,7 @@ Name: python-%{srcname} Version: 1.7.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Simple, lightweight, library for creating background jobs, and processing them License: BSD @@ -21,9 +21,8 @@ It should be integrated in your web stack easily.} %package -n python3-%{srcname} Summary: %{summary} -%{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-devel -BuildRequires: python3dist(setuptools) +BuildRequires: pyproject-rpm-macros %description -n python3-%{srcname} %{_description} @@ -31,24 +30,28 @@ Python 3 version. %prep %autosetup -n %{srcname}-%{version} -p1 -rm -vr *.egg-info + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files %{srcname} -%files -n python3-%{srcname} +%files -n python3-%{srcname} -f %pyproject_files %license LICENSE %doc README.md %{_bindir}/rq %{_bindir}/rqinfo %{_bindir}/rqworker -%{python3_sitelib}/rq-*.egg-info/ -%{python3_sitelib}/rq/ %changelog +* Tue Dec 15 2020 Charalampos Stratakis - 1.7.0-2 +- Convert to pyproject macros + * Sat Dec 12 2020 Igor Raits - 1.7.0-1 - Update to 1.7.0