1 %include /usr/lib/rpm/macros.php
4 %define _pearname %{_class}
5 Summary: %{_pearname} - regression testing framework for unit tests
6 Summary(pl.UTF-8): %{_pearname} - zestaw testów regresyjnych
11 Group: Development/Languages/PHP
12 Source0: http://pear.phpunit.de/get/PHPUnit-%{version}.tgz
13 # Source0-md5: c2c17862f15df871f122f33be9919c5b
14 URL: http://www.phpunit.de/
15 BuildRequires: php-pear >= 4:1.1-2
16 BuildRequires: php-pear-PEAR
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
18 BuildRequires: rpmbuild(macros) >= 1.473
19 Requires: php-common >= 3:4.1.0
20 Requires: php-pear >= 4:1.1-2
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 # exclude optional dependencies
25 %define _noautoreq 'pear(Image/GraphViz.*)' 'pear(Log.*)'
28 PHPUnit is a regression testing framework used by the developer who
29 implements unit tests in PHP. It is based upon JUnit, which can be
30 found at <http://www.junit.org/>.
32 In PEAR status of this package is: %{_status}.
34 %description -l pl.UTF-8
35 PHPUnit jest zestawem testów regresyjnych używanych przez developerów,
36 którzy implementują jednostki testowe w PHP. Jest bazowane na JUnit,
37 który można znaleźć pod adresem <http://www.junit.org/>.
39 Ta klasa ma w PEAR status: %{_status}.
42 Summary: Tests for PEAR::%{_pearname}
43 Summary(pl.UTF-8): Testy dla PEAR::%{_pearname}
44 Group: Development/Languages/PHP
45 Requires: %{name} = %{version}-%{release}
50 Tests for PEAR::%{_pearname}.
52 %description tests -l pl.UTF-8
53 Testy dla PEAR::%{_pearname}.
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{php_pear_dir}
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
68 %doc install.log optional-packages.txt
69 %{php_pear_dir}/.registry/.channel.pear.phpunit.de/*.reg
70 %{php_pear_dir}/%{_class}
73 %defattr(644,root,root,755)
74 %{php_pear_dir}/tests/%{_pearname}