SPECS: kdebindings.spec - hacked python packaging

glen glen at pld-linux.org
Fri Nov 3 19:07:31 CET 2006


Author: glen                         Date: Fri Nov  3 18:07:31 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- hacked python packaging

---- Files affected:
SPECS:
   kdebindings.spec (1.78 -> 1.79) 

---- Diffs:

================================================================
Index: SPECS/kdebindings.spec
diff -u SPECS/kdebindings.spec:1.78 SPECS/kdebindings.spec:1.79
--- SPECS/kdebindings.spec:1.78	Fri Nov  3 18:04:56 2006
+++ SPECS/kdebindings.spec	Fri Nov  3 19:07:26 2006
@@ -1,6 +1,5 @@
 # $Revision$, $Date$
 # TODO
-# - python-dcop binding .so files are installed into /usr/share after pld-common-PLD patch!
 # - do we need pcop.la from pyhton-dcop? (create -devel?) anyone knows add rm -f into install section
 #
 # Conditional build:
@@ -32,7 +31,6 @@
 Patch2:		kde-ac260-lt.patch
 URL:		http://www.kde.org/
 BuildRequires:	autoconf
-BuildRequires:	- python-dcop binding .so files are installed into /usr/share after pld-common-PLD patch!
 BuildRequires:	automake
 #BuildRequires:	fam-devel
 #BuildRequires:	gcc-objc
@@ -464,8 +462,15 @@
 rm -f $RPM_BUILD_ROOT%{py_sitedir}/pcop.la \
 	$RPM_BUILD_ROOT%{_libdir}/ruby/site_ruby/1.8/*/*.la
 
-mv -f $RPM_BUILD_ROOT%{_desktopdir}/Utilities/embedjs.desktop \
-	$RPM_BUILD_ROOT%{_desktopdir}/kde
+install -d $RPM_BUILD_ROOT%{py_sitedir}
+mv $RPM_BUILD_ROOT%{py_sitescriptdir}/pcop.{so,la} $RPM_BUILD_ROOT%{py_sitedir}
+install -d $RPM_BUILD_ROOT%{py_sitescriptdir}
+mv $RPM_BUILD_ROOT{%{py_scriptdir},%{py_sitescriptdir}}/pydcop.py
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
+
+mv -f $RPM_BUILD_ROOT%{_desktopdir}/{Utilities,kde}/embedjs.desktop
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -529,12 +534,9 @@
 # python bindings for dcop, others won't be built
 %files python-dcop
 %defattr(644,root,root,755)
-#%{py_libdir}/pydcop.py
-#%attr(755,root,root) %{py_libdir}/site-packages/pcop.so
-%{py_scriptdir}/pydcop.py
-# FIXME: should be in /usr/lib!
-%{py_sitescriptdir}/pcop.la
-%attr(755,root,root) %{py_sitescriptdir}/pcop.so
+%{py_sitescriptdir}/pydcop.py[co]
+%{py_sitedir}/pcop.la
+%attr(755,root,root) %{py_sitedir}/pcop.so
 
 # C bindings for qt and kde using the smoke technology
 %files smoke-qt
@@ -689,6 +691,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.79  2006/11/03 18:07:26  glen
+- hacked python packaging
+
 Revision 1.78  2006/11/03 17:04:56  glen
 - blocker todo
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/kdebindings.spec?r1=1.78&r2=1.79&f=u



More information about the pld-cvs-commit mailing list