2 %define pearname phpcpd
3 Summary: Copy/Paste Detector (CPD) for PHP code
8 Group: Development/Languages/PHP
9 Source0: http://pear.phpunit.de/get/%{pearname}-%{version}.tgz
10 # Source0-md5: 920b308e47ee3e715fe3ed5dbd86f5cd
11 Patch0: autoload.patch
12 URL: https://github.com/sebastianbergmann/phpcpd
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.654
18 Requires: php(tokenizer)
19 Requires: php-channel(pear.phpunit.de)
20 Requires: php-pear >= 1.3.14-2
21 Requires: php-phpunit-FinderFacade >= 1.1.0
22 Requires: php-phpunit-PHP_Timer >= 1.0.4
23 Requires: php-phpunit-Version >= 1.0.0
24 Requires: php-symfony2-Console >= 2.7.7
25 Obsoletes: php-phpunit-phpcpd
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _noautoreq_pear Symfony/Component/.*
32 Copy/Paste Detector (CPD) for PHP code.
34 In PEAR status of this package is: %{status}.
40 packagexml2cl package.xml > ChangeLog
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
46 install -p ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
53 %doc ChangeLog install.log
55 %{php_pear_dir}/.registry/.channel.*/*.reg
56 %attr(755,root,root) %{_bindir}/phpcpd
57 %{php_pear_dir}/SebastianBergmann/PHPCPD