SPECS: template-python.spec - few macros to make any sense

glen glen at pld-linux.org
Sun Jan 6 17:53:18 CET 2008


Author: glen                         Date: Sun Jan  6 16:53:18 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- few macros to make any sense

---- Files affected:
SPECS:
   template-python.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/template-python.spec
diff -u SPECS/template-python.spec:1.3 SPECS/template-python.spec:1.4
--- SPECS/template-python.spec:1.3	Sun Jan  6 17:51:20 2008
+++ SPECS/template-python.spec	Sun Jan  6 17:53:13 2008
@@ -1,4 +1,5 @@
 # $Revision$, $Date$
+%define 	module	fuse
 Summary:	-
 Summary(pl.UTF-8):	-
 Name:		template
@@ -19,7 +20,7 @@
 %description
 
 %prep
-%setup -q
+%setup -q -n %{module}-python
 
 %build
 python setup.py build
@@ -30,14 +31,19 @@
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
-%{py_sitescriptdir}/telepathy_python-*.egg-info
+%{py_sitedir}/*.py[co]
+%attr(755,root,root) %{py_sitedir}/*.so
+%{py_sitedir}/%{module}-*.egg-info
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -45,6 +51,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2008-01-06 16:53:13  glen
+- few macros to make any sense
+
 Revision 1.3  2008-01-06 16:51:20  glen
 - or this?
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/template-python.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list