Accepting request 100523 from home:saschpe:branches:Base:System
OBS-URL: https://build.opensuse.org/request/show/100523 OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=181
This commit is contained in:
committed by
Git OBS Bridge
parent
34f6371575
commit
181c95e8cd
@@ -15,7 +15,15 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: python3-rpm
|
||||
Version: 4.9.1.2
|
||||
Release: 0
|
||||
#!BuildIgnore: rpmlint-Factory
|
||||
Summary: Python Bindings for Manipulating RPM Packages
|
||||
License: GPL-2.0+
|
||||
Group: System/Packages
|
||||
Source99: rpm.spec
|
||||
BuildRequires: file-devel
|
||||
BuildRequires: libacl-devel
|
||||
BuildRequires: libbz2-devel
|
||||
@@ -30,14 +38,7 @@ BuildRequires: popt-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: xz-devel
|
||||
BuildRequires: zlib-devel
|
||||
#!BuildIgnore: rpmlint-Factory
|
||||
Summary: Python Bindings for Manipulating RPM Packages
|
||||
License: GPL-2.0+
|
||||
Group: System/Packages
|
||||
Version: 4.9.1.2
|
||||
Release: 0
|
||||
Requires: rpm = %{version}
|
||||
Source99: rpm.spec
|
||||
%{expand:%(sed -n -e '/^Source:/,/^BuildRoot:/p' <%_sourcedir/rpm.spec)}
|
||||
%global with_python 1
|
||||
|
||||
@@ -49,32 +50,21 @@ supplied by RPM Package Manager libraries.
|
||||
This package should be installed if you want to develop Python programs
|
||||
that will manipulate RPM packages and databases.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Erik Troan <ewt@redhat.com>
|
||||
Marc Ewing <marc@redhat.com>
|
||||
|
||||
%prep
|
||||
%{expand:%(sed -n -e '/^%%prep/,/^%%install/p' <%_sourcedir/rpm.spec | sed -e '1d' -e '$d')}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/lib
|
||||
mkdir -p %{buildroot}%{_prefix}/lib
|
||||
# only installing in python/ does not work because rpm links against
|
||||
# installed libs at install time
|
||||
make DESTDIR="$RPM_BUILD_ROOT" install
|
||||
find "%{buildroot}" -not -type d -and -not -path %{buildroot}%{_libdir}/python3*/site-packages/rpm/\* -print0 | xargs -0 rm
|
||||
pushd $RPM_BUILD_ROOT/%_libdir/python3*/site-packages/rpm
|
||||
%make_install
|
||||
find %{buildroot} -not -type d -and -not -path %{buildroot}%{_libdir}/python3*/site-packages/rpm/\* -print0 | xargs -0 rm
|
||||
pushd %{buildroot}/%{_libdir}/python3*/site-packages/rpm
|
||||
rm -f _rpmmodule.a _rpmmodule.la
|
||||
python3 %_libdir/python3*/py_compile.py *.py
|
||||
python3 -O %_libdir/python3*/py_compile.py *.py
|
||||
python3 %{_libdir}/python3*/py_compile.py *.py
|
||||
python3 -O %{_libdir}/python3*/py_compile.py *.py
|
||||
popd
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/python*/*/*
|
||||
|
Reference in New Issue
Block a user