SPECS: serpentine.spec - fixed plugins system to use compiled pyth...

maciek2w maciek2w at pld-linux.org
Sat Oct 21 18:39:24 CEST 2006


Author: maciek2w                     Date: Sat Oct 21 16:39:24 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fixed plugins system to use compiled python script

---- Files affected:
SPECS:
   serpentine.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/serpentine.spec
diff -u SPECS/serpentine.spec:1.8 SPECS/serpentine.spec:1.9
--- SPECS/serpentine.spec:1.8	Thu Jul 27 00:39:06 2006
+++ SPECS/serpentine.spec	Sat Oct 21 18:39:15 2006
@@ -1,8 +1,4 @@
 # $Revision$, $Date$
-#
-# TODO:
-# - fix plugins system to don't require *.py files
-#
 # Conditional build:
 %bcond_with	muine		# build muine plugin
 #
@@ -16,6 +12,7 @@
 Source0:	http://download.berlios.de/serpentine/%{name}-%{version}.tar.bz2
 # Source0-md5:	2d41b5ebef49c03951031c29fccd08e6
 Patch0:		%{name}-desktop.patch
+Patch1:		%{name}-python.patch
 URL:		http://s1x.homelinux.net/projects/serpentine/
 BuildRequires:	GConf2-devel
 BuildRequires:	autoconf >= 2.53
@@ -34,6 +31,7 @@
 Requires:	python-PyXML
 Requires:	python-dbus
 Requires:	python-gnome-desktop-nautilus-cd-burner >= 2.12.0
+Requires:	python-gnome-desktop-totem >= 2.12.0
 Requires:	python-gnome-gconf >= 2.12.0
 Requires:	python-gnome-ui >= 2.12.0
 Requires:	python-gnome-vfs >= 2.12.0
@@ -66,6 +64,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p0
 
 %build
 %{__aclocal}
@@ -76,6 +75,8 @@
 	%{!?with_muine: --enable-muine=no}
 %{__make}
 
+%{py_comp} serpentine
+%{py_ocomp} serpentine
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -83,6 +84,10 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+#removed not needed *.py files
+rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/*.py
+rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}/plugins/*.py
+
 %find_lang %{name}
 
 %clean
@@ -114,6 +119,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.9  2006/10/21 16:39:15  maciek2w
+- fixed plugins system to use compiled python script
+
 Revision 1.8  2006/07/26 22:39:06  koorek
 - Added R: python-PyXML
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/serpentine.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list