SPECS (AC-branch): poldek.spec - build python bindings (shouldn't ...

glen glen at pld-linux.org
Wed Jun 7 00:26:49 CEST 2006


Author: glen                         Date: Tue Jun  6 22:26:49 2006 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- build python bindings (shouldn't _poldekmod.so be in python dir?)

---- Files affected:
SPECS:
   poldek.spec (1.197.2.75 -> 1.197.2.76) 

---- Diffs:

================================================================
Index: SPECS/poldek.spec
diff -u SPECS/poldek.spec:1.197.2.75 SPECS/poldek.spec:1.197.2.76
--- SPECS/poldek.spec:1.197.2.75	Wed May 31 21:28:20 2006
+++ SPECS/poldek.spec	Wed Jun  7 00:26:44 2006
@@ -11,7 +11,7 @@
 Summary(pl):	Pomocnicze narzędzie do zarządzania pakietami RPM
 Name:		poldek
 Version:	0.20
-Release:	9
+Release:	9.1
 License:	GPL v2
 Group:		Applications/System
 Source0:	http://poldek.pld-linux.org/download/%{name}-%{version}.tar.bz2
@@ -46,6 +46,7 @@
 BuildRequires:	readline-devel >= 5.0
 BuildRequires:	rpm-devel >= %{ver_rpm}
 BuildRequires:	zlib-devel
+BuildRequires:	python-devel
 %if %{with static}
 BuildRequires:	bzip2-static
 BuildRequires:	db-static >= %{ver_db}
@@ -134,6 +135,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
@@ -160,6 +174,7 @@
 %configure \
 	%{?with_static:--enable-static --disable-shared} \
 	%{!?with_imode:--disable-imode} \
+	--with-python \
 	--enable-nls
 %{__make}
 
@@ -170,6 +185,9 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%{__make} -C python install \
+	DESTDIR=$RPM_BUILD_ROOT
+
 %{?with_static:rm -f $RPM_BUILD_ROOT%{_bindir}/rpmvercmp}
 
 #
@@ -219,6 +237,9 @@
 
 %find_lang %{name}
 
+%py_postclean
+rm -f $RPM_BUILD_ROOT%{_libdir}/_poldekmod.la
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -316,12 +337,21 @@
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
+%files -n python-poldek
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/_poldekmod.so
+%{py_sitescriptdir}/poldek.py[co]
+%{py_sitescriptdir}/poldekmod.py[co]
+
 %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.197.2.76  2006/06/06 22:26:44  glen
+- build python bindings (shouldn't _poldekmod.so be in python dir?)
+
 Revision 1.197.2.75  2006/05/31 19:28:20  glen
 - keep multilib config in separate sourcefile; rel 9
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/poldek.spec?r1=1.197.2.75&r2=1.197.2.76&f=u



More information about the pld-cvs-commit mailing list