2006-12-19 00:17:44 +01:00
|
|
|
#
|
2008-09-12 20:37:28 +02:00
|
|
|
# spec file for package rpm-python (Version 4.4.2.3)
|
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
|
|
|
#
|
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
|
2008-10-13 15:51:18 +02:00
|
|
|
BuildRequires: libbz2-devel libelf-devel libselinux-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
|
2008-09-12 20:37:28 +02:00
|
|
|
Version: 4.4.2.3
|
2008-11-21 15:09:51 +01:00
|
|
|
Release: 15
|
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
|
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)
|
|
|
|
%{_libdir}/python*
|
2007-11-23 01:38:16 +01:00
|
|
|
|
2007-03-15 01:49:23 +01:00
|
|
|
%changelog
|
2008-10-13 15:51:18 +02:00
|
|
|
* Wed Oct 08 2008 cthiel@suse.de
|
|
|
|
- added libelf-devel to BuildRequires to fix build
|
2008-09-12 20:37:28 +02:00
|
|
|
* Thu Sep 11 2008 mls@suse.de
|
|
|
|
- update to 4.4.2.3 to get rid of >50 patches
|
2008-09-05 19:37:54 +02:00
|
|
|
* Sat Aug 30 2008 cthiel@suse.de
|
|
|
|
- add libselinux-devel to BuildRequires
|
2008-08-08 17:23:33 +02:00
|
|
|
* Thu Aug 07 2008 dmueller@suse.de
|
|
|
|
- fix build against python 2.6
|
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-11-07 15:13:35 +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-11-07 15:13:35 +01:00
|
|
|
* Sun Oct 15 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
|