Accepting request 1121296 from home:dirkmueller:branches:openSUSE:Factory:Rings:1-MinimalX
- Modernize python-rpm.spec to stop using deprecated macros (%python_build and %python_install). OBS-URL: https://build.opensuse.org/request/show/1121296 OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=648
This commit is contained in:
parent
20860042c8
commit
2dfbc76490
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 30 14:13:37 UTC 2023 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Modernize python-rpm.spec to stop using deprecated macros
|
||||||
|
(%python_build and %python_install).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Oct 11 17:07:14 CEST 2023 - mls@suse.de
|
Wed Oct 11 17:07:14 CEST 2023 - mls@suse.de
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
# Enable Python build sourced from rpm spec
|
# Enable Python build sourced from rpm spec
|
||||||
%global with_python 1
|
%global with_python 1
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-rpm
|
Name: python-rpm
|
||||||
Version: 4.19.0
|
Version: 4.19.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -29,8 +28,10 @@ Group: Development/Libraries/Python
|
|||||||
URL: https://rpm.org/
|
URL: https://rpm.org/
|
||||||
#Git-Clone: https://github.com/rpm-software-management/rpm
|
#Git-Clone: https://github.com/rpm-software-management/rpm
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: file-devel
|
BuildRequires: file-devel
|
||||||
BuildRequires: libacl-devel
|
BuildRequires: libacl-devel
|
||||||
BuildRequires: libbz2-devel
|
BuildRequires: libbz2-devel
|
||||||
@ -72,15 +73,17 @@ that will manipulate RPM packages and databases.
|
|||||||
cd ..
|
cd ..
|
||||||
cp _build/python/setup.py python
|
cp _build/python/setup.py python
|
||||||
pushd python
|
pushd python
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd python
|
pushd python
|
||||||
%python_install
|
%pyproject_install
|
||||||
popd
|
popd
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%{python_sitearch}/rpm*
|
%{python_sitearch}/rpm
|
||||||
|
%{python_sitearch}/rpm-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user