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
|
|
|
#
|
2011-02-19 18:30:04 +01:00
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-25 17:02:20 +01:00
|
|
|
|
2006-12-19 00:17:44 +01:00
|
|
|
Name: rpm-python
|
2011-05-18 17:08:44 +02:00
|
|
|
BuildRequires: file-devel libbz2-devel libelf-devel libselinux-devel libsemanage-devel lua-devel ncurses-devel popt-devel
|
2010-10-28 15:40:02 +02:00
|
|
|
BuildRequires: libacl-devel libcap-devel python-devel xz-devel zlib-devel
|
2009-08-28 15:54:03 +02:00
|
|
|
#!BuildIgnore: rpmlint-Factory
|
2011-12-06 19:00:25 +01:00
|
|
|
License: GPL-2.0+
|
2006-12-19 00:17:44 +01:00
|
|
|
Group: System/Packages
|
|
|
|
Summary: Python Bindings for Manipulating RPM Packages
|
2011-10-19 18:38:28 +02:00
|
|
|
Version: 4.9.1.2
|
2011-08-25 09:46:40 +02:00
|
|
|
Release: 5
|
2006-12-19 00:17:44 +01:00
|
|
|
Requires: rpm = %{version}
|
|
|
|
%py_requires
|
|
|
|
Source99: rpm.spec
|
|
|
|
%{expand:%(sed -n -e '/^Source:/,/^BuildRoot:/p' <%_sourcedir/rpm.spec)}
|
2009-08-28 15:54:03 +02:00
|
|
|
%global with_python 1
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
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
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
|
|
|
find "%{buildroot}" -not -type d -and -not -path %{buildroot}%{_libdir}/python%{py_ver}/site-packages/rpm/\* -print0 | xargs -0 rm
|
|
|
|
pushd $RPM_BUILD_ROOT/%py_sitedir/rpm
|
|
|
|
rm -f _rpmmodule.a _rpmmodule.la
|
|
|
|
python %py_libdir/py_compile.py *.py
|
|
|
|
python -O %py_libdir/py_compile.py *.py
|
|
|
|
popd
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%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
|