2006-12-19 00:17:44 +01:00
|
|
|
#
|
2011-02-19 18:30:04 +01:00
|
|
|
# spec file for package rpm-python
|
2006-12-19 00:17:44 +01:00
|
|
|
#
|
2013-01-09 10:46:46 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:44 +01:00
|
|
|
#
|
2008-08-08 17:23:33 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:17:44 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-08-30 18:55:27 +02:00
|
|
|
|
2006-12-19 00:17:44 +01:00
|
|
|
Name: rpm-python
|
2013-01-09 10:46:46 +01:00
|
|
|
Version: 4.10.2
|
2012-01-18 15:30:38 +01:00
|
|
|
Release: 0
|
|
|
|
#!BuildIgnore: rpmlint-Factory
|
|
|
|
Summary: Python Bindings for Manipulating RPM Packages
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Packages
|
|
|
|
Source99: rpm.spec
|
2011-12-11 22:58:21 +01:00
|
|
|
BuildRequires: file-devel
|
|
|
|
BuildRequires: libacl-devel
|
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
BuildRequires: libcap-devel
|
|
|
|
BuildRequires: libelf-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: libsemanage-devel
|
|
|
|
BuildRequires: libtool
|
2012-01-08 18:58:16 +01:00
|
|
|
BuildRequires: lua51-devel
|
2011-12-11 22:58:21 +01:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: popt-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: xz-devel
|
|
|
|
BuildRequires: zlib-devel
|
2006-12-19 00:17:44 +01:00
|
|
|
Requires: rpm = %{version}
|
|
|
|
%py_requires
|
|
|
|
%{expand:%(sed -n -e '/^Source:/,/^BuildRoot:/p' <%_sourcedir/rpm.spec)}
|
2012-11-04 09:54:42 +01:00
|
|
|
%global with_python 2
|
2006-12-19 00:17:44 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The rpm-python package contains a module that permits applications
|
|
|
|
written in the Python programming language to use the interface
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%{expand:%(sed -n -e '/^%%prep/,/^%%install/p' <%_sourcedir/rpm.spec | sed -e '1d' -e '$d')}
|
|
|
|
|
|
|
|
%install
|
2012-01-18 15:30:38 +01:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib
|
2008-09-12 20:37:28 +02:00
|
|
|
# only installing in python/ does not work because rpm links against
|
2006-12-19 00:17:44 +01:00
|
|
|
# installed libs at install time
|
2012-01-18 15:30:38 +01:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -not -type d -and -not -path %{buildroot}%{_libdir}/python%{py_ver}/site-packages/rpm/\* -print0 | xargs -0 rm
|
|
|
|
pushd %{buildroot}/%py_sitedir/rpm
|
2006-12-19 00:17:44 +01:00
|
|
|
rm -f _rpmmodule.a _rpmmodule.la
|
|
|
|
python %py_libdir/py_compile.py *.py
|
|
|
|
python -O %py_libdir/py_compile.py *.py
|
|
|
|
popd
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-02-23 14:28:48 +01:00
|
|
|
%{_libdir}/python*/*/*
|
2007-11-23 01:38:16 +01:00
|
|
|
|
2007-03-15 01:49:23 +01:00
|
|
|
%changelog
|