packages: php-phpunit-DbUnit/php-phpunit-DbUnit.spec - package examples

glen glen at pld-linux.org
Wed Oct 20 08:14:45 CEST 2010


Author: glen                         Date: Wed Oct 20 06:14:45 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- package examples

---- Files affected:
packages/php-phpunit-DbUnit:
   php-phpunit-DbUnit.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/php-phpunit-DbUnit/php-phpunit-DbUnit.spec
diff -u packages/php-phpunit-DbUnit/php-phpunit-DbUnit.spec:1.1 packages/php-phpunit-DbUnit/php-phpunit-DbUnit.spec:1.2
--- packages/php-phpunit-DbUnit/php-phpunit-DbUnit.spec:1.1	Wed Oct 20 08:13:24 2010
+++ packages/php-phpunit-DbUnit/php-phpunit-DbUnit.spec	Wed Oct 20 08:14:40 2010
@@ -33,32 +33,37 @@
 %build
 packagexml2cl package.xml > ChangeLog
 
+mv docs/DbUnit/Samples examples
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{php_pear_dir}}
 %pear_package_install
 install -p usr/bin/* $RPM_BUILD_ROOT%{_bindir}
 
-# don't care for tests
-#rm -rf $RPM_BUILD_ROOT%{php_pear_dir}/tests/%{pearname}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog install.log
-%doc docs/DbUnit/*
 %{php_pear_dir}/.registry/.channel.*/*.reg
 %attr(755,root,root) %{_bindir}/dbunit
 %{php_pear_dir}/PHPUnit/Extensions/Database
 
+%{_examplesdir}/%{name}-%{version}
+
 %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/10/20 06:14:40  glen
+- package examples
+
 Revision 1.1  2010/10/20 06:13:24  glen
 - initial from pear make-rpm-spec
================================================================

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



More information about the pld-cvs-commit mailing list