template-specs: python.spec - examples example

glen glen at pld-linux.org
Thu Feb 24 10:08:23 CET 2011


Author: glen                         Date: Thu Feb 24 09:08:23 2011 GMT
Module: template-specs                Tag: HEAD
---- Log message:
- examples example

---- Files affected:
template-specs:
   python.spec (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: template-specs/python.spec
diff -u template-specs/python.spec:1.22 template-specs/python.spec:1.23
--- template-specs/python.spec:1.22	Tue Aug 10 20:42:07 2010
+++ template-specs/python.spec	Thu Feb 24 10:08:18 2011
@@ -48,6 +48,9 @@
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 # change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
@@ -65,6 +68,7 @@
 %if "%{py_ver}" > "2.4"
 %{py_sitedir}/TEMPLATE-*.egg-info
 %endif
+%{_examplesdir}/%{name}-%{version}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -72,6 +76,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2011/02/24 09:08:18  glen
+- examples example
+
 Revision 1.22  2010/08/10 18:42:07  glen
 - --skip-build
 
================================================================

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



More information about the pld-cvs-commit mailing list