1 %include /usr/lib/rpm/macros.php
3 %define pearname bytekit
4 Summary: %{pearname} - A command-line tool built on the PHP Bytekit extension
5 Name: php-phpunit-bytekit
9 Group: Development/Languages/PHP
10 Source0: http://pear.phpunit.de/get/%{pearname}-%{version}.tgz
11 # Source0-md5: dec667472af72b36c7fd3dcfe7c43364
12 URL: http://github.com/sebastianbergmann/bytekit-cli
13 BuildRequires: php-channel(pear.phpunit.de)
14 BuildRequires: php-packagexml2cl
15 BuildRequires: php-pear-PEAR >= 1:1.8.1
16 BuildRequires: rpm-php-pearprov >= 4.4.2-11
17 BuildRequires: rpmbuild(macros) >= 1.580
19 Requires: php-channel(pear.phpunit.de)
21 Requires: php-phpunit-File_Iterator >= 1.1.0
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 A command-line tool built on the PHP Bytekit extension.
28 In PEAR status of this package is: %{status}.
34 packagexml2cl package.xml > ChangeLog
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{php_pear_dir}
41 install -d $RPM_BUILD_ROOT{%{_bindir},%{php_pear_dir}}
42 install -p ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %doc ChangeLog install.log
50 %{php_pear_dir}/.registry/.channel.*/*.reg
51 %attr(755,root,root) %{_bindir}/bytekit
52 %{php_pear_dir}/Bytekit