SPECS: poldek.spec - added python bindings (following AC-branch)
qboosh
qboosh at pld-linux.org
Wed Jun 7 12:15:23 CEST 2006
Author: qboosh Date: Wed Jun 7 10:15:23 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added python bindings (following AC-branch)
---- Files affected:
SPECS:
poldek.spec (1.232 -> 1.233)
---- Diffs:
================================================================
Index: SPECS/poldek.spec
diff -u SPECS/poldek.spec:1.232 SPECS/poldek.spec:1.233
--- SPECS/poldek.spec:1.232 Wed May 31 21:59:24 2006
+++ SPECS/poldek.spec Wed Jun 7 12:15:17 2006
@@ -3,6 +3,7 @@
# Conditional build:
%bcond_with static # don't use shared libraries
%bcond_without imode # don't build interactive mode
+%bcond_without python # don't build python bindings
#
# required versions (forced to avoid SEGV with mixed db used by rpm and poldek)
%define ver_db 4.3.27-1
@@ -11,7 +12,7 @@
Summary(pl): Pomocnicze narzędzie do zarządzania pakietami RPM
Name: poldek
Version: 0.20
-Release: 6
+Release: 9.3
License: GPL v2
Group: Applications/System
Source0: http://poldek.pld-linux.org/download/%{name}-%{version}.tar.bz2
@@ -46,6 +47,7 @@
BuildRequires: pcre-devel
BuildRequires: perl-tools-pod
BuildRequires: popt-devel
+%{?with_python:BuildRequires: python-devel}
BuildRequires: readline-devel >= 5.0
BuildRequires: rpm-devel >= %{ver_rpm}
BuildRequires: zlib-devel
@@ -135,6 +137,19 @@
%description static -l pl
Biblioteki statyczne poldka.
+%package -n python-poldek
+Summary: Python modules for poldek
+Summary(pl): Moduły języka Python dla poldka
+Group: Libraries/Python
+Requires: %{name}-libs = %{version}-%{release}
+%pyrequires_eq python-libs
+
+%description -n python-poldek
+Python modules for poldek.
+
+%description -n python-poldek -l pl
+Moduły języka Python dla poldka.
+
%prep
%setup -q
%patch0 -p2
@@ -156,7 +171,8 @@
%configure \
%{?with_static:--enable-static --disable-shared} \
%{!?with_imode:--disable-imode} \
- --enable-nls
+ --enable-nls \
+ %{?with_python:--with-python}
%{__make}
%install
@@ -166,6 +182,12 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%if %{with python}
+%{__make} -C python install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ libdir=%{py_sitedir}
+%endif
+
%{?with_static:rm -f $RPM_BUILD_ROOT%{_bindir}/rpmvercmp}
%ifarch i486 i686 ppc sparc alpha athlon
@@ -210,6 +232,9 @@
cp -a conf configs
rm -f configs/Makefile*
+%py_postclean
+rm -f $RPM_BUILD_ROOT%{py_sitedir}/_poldekmod.la
+
%find_lang %{name}
%clean
@@ -309,12 +334,23 @@
%defattr(644,root,root,755)
%{_libdir}/lib*.a
+%if %{with python}
+%files -n python-poldek
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/_poldekmod.so
+%{py_sitescriptdir}/poldek.py[co]
+%{py_sitescriptdir}/poldekmod.py[co]
+%endif
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.233 2006/06/07 10:15:17 qboosh
+- added python bindings (following AC-branch)
+
Revision 1.232 2006/05/31 19:59:24 glen
- keep multilib config in separate sourcefile
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/poldek.spec?r1=1.232&r2=1.233&f=u
More information about the pld-cvs-commit
mailing list