packages: python-PyXB/python-PyXB.spec - package examples

pawelz pawelz at pld-linux.org
Wed May 26 14:57:43 CEST 2010


Author: pawelz                       Date: Wed May 26 12:57:43 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- package examples

---- Files affected:
packages/python-PyXB:
   python-PyXB.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/python-PyXB/python-PyXB.spec
diff -u packages/python-PyXB/python-PyXB.spec:1.1 packages/python-PyXB/python-PyXB.spec:1.2
--- packages/python-PyXB/python-PyXB.spec:1.1	Tue May 25 10:00:37 2010
+++ packages/python-PyXB/python-PyXB.spec	Wed May 26 14:57:37 2010
@@ -31,6 +31,14 @@
 Tools that generate Python source code for classes that correspond to
 data structures defined in XMLSchema.
 
+%package examples
+Summary:	Python XML Schema Bindings examples
+Group:		Documentation
+Requires:	PyXB = %{version}-%{release}
+
+%description examples
+Some examples for PyXB package.
+
 %prep
 %setup -q -n %{module}-%{version}
 
@@ -47,6 +55,9 @@
 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_postclean
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -69,12 +80,19 @@
 %attr(755,root,root) %{_bindir}/pyxbgen
 %attr(755,root,root) %{_bindir}/pyxbwsdl
 
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}
+
 %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.2  2010/05/26 12:57:37  pawelz
+- package examples
+
 Revision 1.1  2010/05/25 08:00:37  pawelz
 - initial PLD release
 - please review, this is the first python library I packaged
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-PyXB/python-PyXB.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list