]>
Commit | Line | Data |
---|---|---|
326d8e55 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4 | ||
616fcc9e ER |
5 | %include /usr/lib/rpm/macros.php |
6 | %define _class PHPUnit | |
7 | %define _status stable | |
8 | %define _pearname %{_class} | |
9 | Summary: %{_pearname} - regression testing framework for unit tests | |
10 | Summary(pl.UTF-8): %{_pearname} - zestaw testów regresyjnych | |
11 | Name: php-%{_pearname} | |
326d8e55 | 12 | Version: 3.4.15 |
0effcfe6 | 13 | Release: 1 |
616fcc9e ER |
14 | License: BSD |
15 | Group: Development/Languages/PHP | |
16 | Source0: http://pear.phpunit.de/get/PHPUnit-%{version}.tgz | |
326d8e55 | 17 | # Source0-md5: a36105b20467aca3f815704fec440a1f |
616fcc9e | 18 | URL: http://www.phpunit.de/ |
326d8e55 ER |
19 | BuildRequires: php-channel(pear.phpunit.de) |
20 | BuildRequires: php-channel(pear.symfony-project.com) | |
8ef52d6a | 21 | BuildRequires: php-pear >= 4:1.1-2 |
616fcc9e ER |
22 | BuildRequires: php-pear-PEAR |
23 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
8c22361f | 24 | BuildRequires: rpmbuild(macros) >= 1.473 |
326d8e55 | 25 | Requires: php-common >= 4:5.1.4 |
8ef52d6a | 26 | Requires: php-pear >= 4:1.1-2 |
616fcc9e ER |
27 | BuildArch: noarch |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | # exclude optional dependencies | |
31 | %define _noautoreq 'pear(Image/GraphViz.*)' 'pear(Log.*)' | |
32 | ||
33 | %description | |
34 | PHPUnit is a regression testing framework used by the developer who | |
35 | implements unit tests in PHP. It is based upon JUnit, which can be | |
36 | found at <http://www.junit.org/>. | |
37 | ||
38 | In PEAR status of this package is: %{_status}. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | PHPUnit jest zestawem testów regresyjnych używanych przez developerów, | |
42 | którzy implementują jednostki testowe w PHP. Jest bazowane na JUnit, | |
43 | który można znaleźć pod adresem <http://www.junit.org/>. | |
44 | ||
45 | Ta klasa ma w PEAR status: %{_status}. | |
46 | ||
47 | %package tests | |
48 | Summary: Tests for PEAR::%{_pearname} | |
49 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} | |
50 | Group: Development/Languages/PHP | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | AutoProv: no | |
53 | AutoReq: no | |
54 | ||
55 | %description tests | |
56 | Tests for PEAR::%{_pearname}. | |
57 | ||
58 | %description tests -l pl.UTF-8 | |
59 | Testy dla PEAR::%{_pearname}. | |
60 | ||
61 | %prep | |
8ef52d6a | 62 | %pear_package_setup |
616fcc9e ER |
63 | |
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
46bf6251 | 67 | install -d $RPM_BUILD_ROOT%{_bindir} |
68 | install usr/bin/phpunit $RPM_BUILD_ROOT%{_bindir} | |
616fcc9e ER |
69 | %pear_package_install |
70 | ||
616fcc9e ER |
71 | %clean |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %doc install.log optional-packages.txt | |
77 | %{php_pear_dir}/.registry/.channel.pear.phpunit.de/*.reg | |
46bf6251 | 78 | %attr(755,root,root) %{_bindir}/phpunit |
326d8e55 | 79 | %{php_pear_dir}/%{_class} |
616fcc9e | 80 | |
326d8e55 | 81 | %if %{with tests} |
616fcc9e ER |
82 | %files tests |
83 | %defattr(644,root,root,755) | |
84 | %{php_pear_dir}/tests/%{_pearname} | |
326d8e55 | 85 | %endif |