Convert to pyproject macros
This commit is contained in:
parent
4de663b499
commit
0605db0a1a
@ -23,10 +23,7 @@ and are synchronized with data exchanges on "channels".
|
|||||||
|
|
||||||
%package -n python3-%{modname}
|
%package -n python3-%{modname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-%{modname}}
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
|
|
||||||
# For tests
|
# For tests
|
||||||
BuildRequires: python3-psutil
|
BuildRequires: python3-psutil
|
||||||
|
|
||||||
@ -36,7 +33,6 @@ Python 3 version.
|
|||||||
|
|
||||||
%package -n python3-%{modname}-devel
|
%package -n python3-%{modname}-devel
|
||||||
Summary: C development headers for python3-%{modname}
|
Summary: C development headers for python3-%{modname}
|
||||||
%{?python_provide:%python_provide python3-%{modname}-devel}
|
|
||||||
Requires: python3-%{modname}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
Requires: python3-%{modname}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
|
||||||
%description -n python3-%{modname}-devel
|
%description -n python3-%{modname}-devel
|
||||||
@ -47,11 +43,15 @@ Python 3 version.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -n %{modname}-3.0.0rc1 -p1
|
%autosetup -n %{modname}-3.0.0rc1 -p1
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install
|
||||||
|
%pyproject_save_files %{modname}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cd /
|
cd /
|
||||||
@ -60,11 +60,8 @@ PYTHONPATH="%{buildroot}%{python3_sitearch}" \
|
|||||||
-s "%{buildroot}%{python3_sitearch}/greenlet/tests" \
|
-s "%{buildroot}%{python3_sitearch}/greenlet/tests" \
|
||||||
-t "%{buildroot}%{python3_sitearch}"
|
-t "%{buildroot}%{python3_sitearch}"
|
||||||
|
|
||||||
%files -n python3-%{modname}
|
%files -n python3-%{modname} -f %{pyproject_files}
|
||||||
%license LICENSE LICENSE.PSF
|
|
||||||
%doc AUTHORS README.rst
|
%doc AUTHORS README.rst
|
||||||
%{python3_sitearch}/%{modname}-*.egg-info
|
|
||||||
%{python3_sitearch}/%{modname}
|
|
||||||
|
|
||||||
%files -n python3-greenlet-devel
|
%files -n python3-greenlet-devel
|
||||||
%{_includedir}/python%{python3_version}*/%{modname}/
|
%{_includedir}/python%{python3_version}*/%{modname}/
|
||||||
@ -72,6 +69,7 @@ PYTHONPATH="%{buildroot}%{python3_sitearch}" \
|
|||||||
%changelog
|
%changelog
|
||||||
* Wed Sep 06 2023 Carl George <carlwgeorge@fedoraproject.org> - 3.0.0~rc1-1
|
* Wed Sep 06 2023 Carl George <carlwgeorge@fedoraproject.org> - 3.0.0~rc1-1
|
||||||
- Update to version 3.0.0rc1
|
- Update to version 3.0.0rc1
|
||||||
|
- Convert to pyproject macros
|
||||||
|
|
||||||
* Sun Aug 13 2023 Orion Poplawski <orion@nwra.com> - 3.0.0~a1-1
|
* Sun Aug 13 2023 Orion Poplawski <orion@nwra.com> - 3.0.0~a1-1
|
||||||
- Update to 3.0.0a1
|
- Update to 3.0.0a1
|
||||||
|
Loading…
Reference in New Issue
Block a user