Accepting request 589202 from home:scarabeus_iv:branches:Base:System
- Switch really to singlespec thus allowing us to build without python2-devel present in the distribution OBS-URL: https://build.opensuse.org/request/show/589202 OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=454
This commit is contained in:
parent
1424664535
commit
297b461842
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 20 13:59:45 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Switch really to singlespec thus allowing us to build without
|
||||
python2-devel present in the distribution
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 31 14:45:33 CET 2018 - mls@suse.de
|
||||
|
||||
|
@ -17,14 +17,16 @@
|
||||
#
|
||||
|
||||
|
||||
# Enable Python build sourced from rpm spec
|
||||
%global with_python 1
|
||||
Name: python-rpm
|
||||
Version: 4.14.1
|
||||
Release: 0
|
||||
#!BuildIgnore: rpmlint-Factory
|
||||
Summary: Python Bindings for Manipulating RPM Packages
|
||||
License: GPL-2.0+
|
||||
License: GPL-2.0-or-later
|
||||
Group: Development/Libraries/Python
|
||||
Source99: rpm.spec
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: file-devel
|
||||
BuildRequires: libacl-devel
|
||||
BuildRequires: libbz2-devel
|
||||
@ -37,22 +39,15 @@ BuildRequires: lua-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: popt-devel
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: xz-devel
|
||||
BuildRequires: zlib-devel
|
||||
#!BuildIgnore: rpmlint-Factory
|
||||
Requires: rpm = %{version}
|
||||
|
||||
%{expand:%(sed -n -e '/^Source:/,/^BuildRoot:/p' <%{_sourcedir}/rpm.spec)}
|
||||
%if "%{python_flavor}" == "python2"
|
||||
Obsoletes: rpm-python < %{version}-%{release}
|
||||
Provides: rpm-python = %{version}-%{release}
|
||||
%endif
|
||||
|
||||
# Enable Python build sourced from rpm spec
|
||||
%global with_python 1
|
||||
|
||||
%{expand:%(sed -n -e '/^Source:/,/^BuildRoot:/p' <%_sourcedir/rpm.spec)}
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -64,7 +59,7 @@ This package should be installed if you want to develop Python programs
|
||||
that will manipulate RPM packages and databases.
|
||||
|
||||
%prep
|
||||
%{expand:%(sed -n -e '/^%%prep/,/^%%install/p' <%_sourcedir/rpm.spec | sed -e '1d' -e '$d')}
|
||||
%{expand:%(sed -n -e '/^%%prep/,/^%%install/p' <%{_sourcedir}/rpm.spec | sed -e '1d' -e '$d')}
|
||||
|
||||
# The build stage is already declared and pulled in from rpm.spec
|
||||
pushd python
|
||||
|
Loading…
x
Reference in New Issue
Block a user