]> git.pld-linux.org Git - packages/php-ezc-ConsoleTools.git/commitdiff
- packag examples AC-branch auto/ac/php-ezc-ConsoleTools-1_6_1-1 auto/th/php-ezc-ConsoleTools-1_6_1-1
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 20 Oct 2010 06:45:47 +0000 (06:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-ezc-ConsoleTools.spec -> 1.2

php-ezc-ConsoleTools.spec

index efebf25028af474adc586fa105b476fd195172df..78e4528291396104da82f092023acc5e0264685f 100644 (file)
@@ -4,7 +4,7 @@
 Summary:       %{pearname} - A set of classes to do different actions with the console (also called shell)
 Name:          php-ezc-ConsoleTools
 Version:       1.6.1
-Release:       0.1
+Release:       1
 License:       New BSD
 Group:         Development/Languages/PHP
 Source0:       http://components.ez.no/get/%{pearname}-%{version}.tgz
@@ -31,6 +31,11 @@ In PEAR status of this package is: %{status}.
 %prep
 %pear_package_setup
 
+install -d examples
+mv docs/ConsoleTools/docs/img examples
+mv docs/ConsoleTools/docs/example* examples
+mv docs/ConsoleTools/docs/tutorial* examples
+
 %build
 packagexml2cl package.xml > ChangeLog
 
@@ -39,6 +44,9 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{php_pear_dir}
 %pear_package_install
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 # don't care for tests
 rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{pearname}
 
@@ -48,8 +56,10 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog install.log
-%doc docs/ConsoleTools/*
+%doc docs/ConsoleTools/docs/*
 %{php_pear_dir}/.registry/.channel.*/*.reg
 %{php_pear_dir}/ezc/autoload/console_autoload.php
 %{php_pear_dir}/ezc/ConsoleTools
 %{php_pear_dir}/data/ConsoleTools
+
+%{_examplesdir}/%{name}-%{version}
This page took 0.070839 seconds and 4 git commands to generate.