SPECS: template-php-pear.spec - more examplesdir

glen glen at pld-linux.org
Thu Nov 6 13:34:46 CET 2008


Author: glen                         Date: Thu Nov  6 12:34:46 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- more examplesdir

---- Files affected:
SPECS:
   template-php-pear.spec (1.34 -> 1.35) 

---- Diffs:

================================================================
Index: SPECS/template-php-pear.spec
diff -u SPECS/template-php-pear.spec:1.34 SPECS/template-php-pear.spec:1.35
--- SPECS/template-php-pear.spec:1.34	Wed Oct 29 03:09:59 2008
+++ SPECS/template-php-pear.spec	Thu Nov  6 13:34:41 2008
@@ -60,9 +60,6 @@
 %pear_package_setup
 
 ## docs fixups
-# class/examples -> docs
-install -d docs/%{_pearname}/examples
-mv ./%{php_pear_dir}/%{_class}/examples/* docs/%{_pearname}/examples
 
 # pear/docs -> docs
 install -d docs/%{_pearname}
@@ -72,9 +69,6 @@
 install -d docs/%{_pearname}
 mv ./%{php_pear_dir}/docs/%{_pearname}/* docs/%{_pearname}
 
-install -d docs/%{_pearname}/examples
-mv ./%{php_pear_dir}/%{_class}/examples/* docs/%{_pearname}/examples
-
 # pear/data/docs -> docs
 install -d docs/%{_pearname}
 mv ./%{php_pear_dir}/data/%{_pearname}/docs/* docs/%{_pearname}
@@ -96,13 +90,21 @@
 install -d ./%{php_pear_dir}/tests/%{_pearname}
 mv ./%{php_pear_dir}/tests/{*,%{_pearname}}
 
+# examples fixups
+mv ./%{php_pear_dir}/%{_class}/examples .
+
+mv docs/%{_pearname}/examples .
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{php_pear_dir}
 %pear_package_install
 
 install -d $RPM_BUILD_ROOT{%{_bindir},%{php_pear_dir}}
-install ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
+install -p ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
+
+install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir},%{_examplesdir}/%{name}-%{version}}
+cp -a examples/*  $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -132,6 +134,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.35  2008/11/06 12:34:41  glen
+- more examplesdir
+
 Revision 1.34  2008/10/29 02:09:59  glen
 - examples dir unify
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/template-php-pear.spec?r1=1.34&r2=1.35&f=u



More information about the pld-cvs-commit mailing list