]> git.pld-linux.org Git - packages/phpunit.git/blame - php-phpunit-PHPUnit.spec
- update to 3.4.15, tests disabled (not included)
[packages/phpunit.git] / php-phpunit-PHPUnit.spec
CommitLineData
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}
9Summary: %{_pearname} - regression testing framework for unit tests
10Summary(pl.UTF-8): %{_pearname} - zestaw testów regresyjnych
11Name: php-%{_pearname}
326d8e55 12Version: 3.4.15
0effcfe6 13Release: 1
616fcc9e
ER
14License: BSD
15Group: Development/Languages/PHP
16Source0: http://pear.phpunit.de/get/PHPUnit-%{version}.tgz
326d8e55 17# Source0-md5: a36105b20467aca3f815704fec440a1f
616fcc9e 18URL: http://www.phpunit.de/
326d8e55
ER
19BuildRequires: php-channel(pear.phpunit.de)
20BuildRequires: php-channel(pear.symfony-project.com)
8ef52d6a 21BuildRequires: php-pear >= 4:1.1-2
616fcc9e
ER
22BuildRequires: php-pear-PEAR
23BuildRequires: rpm-php-pearprov >= 4.4.2-11
8c22361f 24BuildRequires: rpmbuild(macros) >= 1.473
326d8e55 25Requires: php-common >= 4:5.1.4
8ef52d6a 26Requires: php-pear >= 4:1.1-2
616fcc9e
ER
27BuildArch: noarch
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30# exclude optional dependencies
31%define _noautoreq 'pear(Image/GraphViz.*)' 'pear(Log.*)'
32
33%description
34PHPUnit is a regression testing framework used by the developer who
35implements unit tests in PHP. It is based upon JUnit, which can be
36found at <http://www.junit.org/>.
37
38In PEAR status of this package is: %{_status}.
39
40%description -l pl.UTF-8
41PHPUnit jest zestawem testów regresyjnych używanych przez developerów,
42którzy implementują jednostki testowe w PHP. Jest bazowane na JUnit,
43który można znaleźć pod adresem <http://www.junit.org/>.
44
45Ta klasa ma w PEAR status: %{_status}.
46
47%package tests
48Summary: Tests for PEAR::%{_pearname}
49Summary(pl.UTF-8): Testy dla PEAR::%{_pearname}
50Group: Development/Languages/PHP
51Requires: %{name} = %{version}-%{release}
52AutoProv: no
53AutoReq: no
54
55%description tests
56Tests for PEAR::%{_pearname}.
57
58%description tests -l pl.UTF-8
59Testy dla PEAR::%{_pearname}.
60
61%prep
8ef52d6a 62%pear_package_setup
616fcc9e
ER
63
64%install
65rm -rf $RPM_BUILD_ROOT
66install -d $RPM_BUILD_ROOT%{php_pear_dir}
46bf6251 67install -d $RPM_BUILD_ROOT%{_bindir}
68install usr/bin/phpunit $RPM_BUILD_ROOT%{_bindir}
616fcc9e
ER
69%pear_package_install
70
616fcc9e
ER
71%clean
72rm -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
This page took 0.066623 seconds and 4 git commands to generate.