2006-12-19 00:17:44 +01:00
|
|
|
#
|
2006-12-19 00:17:44 +01:00
|
|
|
# spec file for package rpm-python (Version 4.4.2)
|
2006-12-19 00:17:44 +01:00
|
|
|
#
|
2008-01-18 00:45:52 +01:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:44 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
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
|
2008-03-27 18:08:51 +01:00
|
|
|
BuildRequires: libbz2-devel lzma-alpha-devel ncurses-devel python-devel zlib-devel
|
2007-07-23 20:54:09 +02:00
|
|
|
License: GPL v2 or later
|
2006-12-19 00:17:44 +01:00
|
|
|
Group: System/Packages
|
|
|
|
Summary: Python Bindings for Manipulating RPM Packages
|
2006-12-19 00:17:44 +01:00
|
|
|
Version: 4.4.2
|
2008-04-09 21:09:43 +02:00
|
|
|
Release: 227
|
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)}
|
|
|
|
|
|
|
|
%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
|
2006-12-19 00:17:44 +01:00
|
|
|
# only installing in python/ does not work because rpm links agains
|
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)
|
2006-12-19 00:17:44 +01:00
|
|
|
%{_libdir}/python*
|
2007-11-23 01:38:16 +01:00
|
|
|
|
2007-03-15 01:49:23 +01:00
|
|
|
%changelog
|
2008-03-27 18:08:51 +01:00
|
|
|
* Thu Mar 27 2008 coolo@suse.de
|
|
|
|
- fix buildrequires
|
2008-01-18 00:45:52 +01:00
|
|
|
* Fri May 25 2007 mls@suse.de
|
2007-05-25 17:22:10 +02:00
|
|
|
- fix unicode queries
|
2008-01-18 00:45:52 +01:00
|
|
|
* Fri Mar 30 2007 rguenther@suse.de
|
2007-03-30 16:32:56 +02:00
|
|
|
- add ncurses-devel and zlib-devel BuildRequires.
|
2008-03-27 18:08:51 +01:00
|
|
|
* Wed Oct 18 2006 mls@suse.de
|
2006-12-19 00:17:44 +01:00
|
|
|
- use rpm.spec for building instead of duplication everything
|
|
|
|
- delete superfluous .a and .la files [#202604]
|
|
|
|
- create .pyc and .pyo files [#205711]
|
2008-01-29 01:44:43 +01:00
|
|
|
* Mon Oct 16 2006 schwab@suse.de
|
2006-12-19 00:17:44 +01:00
|
|
|
- Make sure config.rpath is present.
|
2008-01-18 00:45:52 +01:00
|
|
|
* Fri Sep 22 2006 aj@suse.de
|
2006-12-19 00:17:44 +01:00
|
|
|
- Fix for python2.5.
|
2008-01-18 00:45:52 +01:00
|
|
|
* Thu Sep 21 2006 lnussel@suse.de
|
2006-12-19 00:17:44 +01:00
|
|
|
- do not package beecrypt python bindings as libbeecrypt is not
|
|
|
|
packaged either
|
|
|
|
- fix literal %%{version} in Requires tag
|
2008-01-18 00:45:52 +01:00
|
|
|
* Thu Sep 21 2006 lnussel@suse.de
|
2006-12-19 00:17:44 +01:00
|
|
|
- fix build with python 2.5 by overriding autodetection
|
2008-01-18 00:45:52 +01:00
|
|
|
* Tue Sep 19 2006 rguenther@suse.de
|
2006-12-19 00:17:44 +01:00
|
|
|
- split from rpm package
|