2 %define pearname DbUnit
3 %include /usr/lib/rpm/macros.php
4 Summary: %{pearname} - DbUnit port for PHP/PHPUnit
5 Name: php-phpunit-DbUnit
9 Group: Development/Languages/PHP
10 Source0: http://pear.phpunit.de/get/%{pearname}-%{version}.tgz
11 # Source0-md5: c758bd5498c95b5bf37d7fd3e2ac6100
12 URL: http://pear.phpunit.de/
13 BuildRequires: php-channel(pear.phpunit.de)
14 BuildRequires: php-packagexml2cl
15 BuildRequires: php-pear-PEAR >= 1:1.9.4
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
17 BuildRequires: rpmbuild(macros) >= 1.580
19 Requires: php(simplexml)
21 Requires: php-channel(pear.phpunit.de)
23 Requires: php-phpunit-PHPUnit >= 3.7.0
24 Requires: php-reflection
25 Requires: php-symfony2-Yaml <= 2.1.99
26 Requires: php-symfony2-Yaml >= 2.1.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 DbUnit port for PHP/PHPUnit
33 In PEAR status of this package is: %{status}.
39 packagexml2cl package.xml > ChangeLog
41 mv docs/DbUnit/Samples examples
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_bindir},%{php_pear_dir}}
47 install -p usr/bin/* $RPM_BUILD_ROOT%{_bindir}
49 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
50 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc ChangeLog install.log
58 %{php_pear_dir}/.registry/.channel.*/*.reg
59 %attr(755,root,root) %{_bindir}/dbunit
60 %{php_pear_dir}/PHPUnit/Extensions/Database
62 %{_examplesdir}/%{name}-%{version}