SPECS: xalan-c.spec - split examples into subpackage

pawelz pawelz at pld-linux.org
Sun Sep 28 16:14:48 CEST 2008


Author: pawelz                       Date: Sun Sep 28 14:14:48 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- split examples into subpackage

---- Files affected:
SPECS:
   xalan-c.spec (1.40 -> 1.41) 

---- Diffs:

================================================================
Index: SPECS/xalan-c.spec
diff -u SPECS/xalan-c.spec:1.40 SPECS/xalan-c.spec:1.41
--- SPECS/xalan-c.spec:1.40	Mon Jul 14 20:08:59 2008
+++ SPECS/xalan-c.spec	Sun Sep 28 16:14:43 2008
@@ -54,6 +54,18 @@
 %description docs -l pl.UTF-8
 Dokumentacja xalan-c.
 
+%package examples
+Summary:	xalan-c examples
+Summary(pl.UTF-8):	Przykłady dla xalan-c
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description examples
+xalan-c examples.
+
+%description devel -l pl.UTF-8
+Przykłady dla xalan-c.
+
 %prep
 %setup -q -n xml-xalan
 %patch0 -p1
@@ -102,6 +114,9 @@
 
 install -d $RPM_BUILD_ROOT%{_libdir}
 install -d $RPM_BUILD_ROOT%{_includedir}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+cp -a samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %if "%{_lib}" != "lib"
 mv $RPM_BUILD_ROOT%{_prefix}/lib/* $RPM_BUILD_ROOT%{_libdir}
@@ -127,7 +142,12 @@
 
 %files docs
 %defattr(644,root,root,755)
-%doc c/xdocs c/samples
+%doc c/xdocs
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -135,6 +155,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.41  2008/09/28 14:14:43  pawelz
+- split examples into subpackage
+
 Revision 1.40  2008/07/14 18:08:59  qrczak
 - xalan-c-include.patch: added missing #include <cstring>
 - Release 4
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/xalan-c.spec?r1=1.40&r2=1.41&f=u



More information about the pld-cvs-commit mailing list