]>
Commit | Line | Data |
---|---|---|
4e23d041 ER |
1 | %define status stable |
2 | %define pearname phpcpd | |
3 | %include /usr/lib/rpm/macros.php | |
4 | Summary: Copy/Paste Detector (CPD) for PHP code | |
ab3897b1 | 5 | Name: phpcpd |
054480e2 | 6 | Version: 2.0.0 |
04d1484d | 7 | Release: 2 |
054480e2 | 8 | License: BSD |
4e23d041 ER |
9 | Group: Development/Languages/PHP |
10 | Source0: http://pear.phpunit.de/get/%{pearname}-%{version}.tgz | |
054480e2 | 11 | # Source0-md5: 920b308e47ee3e715fe3ed5dbd86f5cd |
04d1484d | 12 | URL: https://github.com/sebastianbergmann/phpcpd |
4e23d041 ER |
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.610 | |
18 | Requires: php(tokenizer) | |
19 | Requires: php-channel(pear.phpunit.de) | |
6dea057a | 20 | Requires: php-pear >= 1.3.14-2 |
6fbccbff | 21 | Requires: php-phpunit-FinderFacade >= 1.1.0 |
f550313d | 22 | Requires: php-phpunit-PHP_Timer >= 1.0.4 |
4e23d041 | 23 | Requires: php-phpunit-Version >= 1.0.0 |
6fbccbff | 24 | Requires: php-symfony2-Console >= 2.2.0 |
ab3897b1 | 25 | Obsoletes: php-phpunit-phpcpd |
4e23d041 ER |
26 | BuildArch: noarch |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | Copy/Paste Detector (CPD) for PHP code. | |
31 | ||
32 | In PEAR status of this package is: %{status}. | |
33 | ||
34 | %prep | |
35 | %pear_package_setup | |
36 | ||
37 | %build | |
38 | packagexml2cl package.xml > ChangeLog | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}} | |
43 | %pear_package_install | |
44 | install -p ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir} | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc ChangeLog install.log | |
52 | %doc docs/phpcpd/* | |
53 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
54 | %attr(755,root,root) %{_bindir}/phpcpd | |
4e23d041 | 55 | %{php_pear_dir}/SebastianBergmann/PHPCPD |