]> git.pld-linux.org Git - packages/phpcpd.git/blob - phpcpd.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/phpcpd.git] / phpcpd.spec
1 %define         status          stable
2 %define         pearname        phpcpd
3 Summary:        Copy/Paste Detector (CPD) for PHP code
4 Name:           phpcpd
5 Version:        2.0.0
6 Release:        4
7 License:        BSD
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
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         _noautoreq_pear Symfony/Component/.*
30
31 %description
32 Copy/Paste Detector (CPD) for PHP code.
33
34 In PEAR status of this package is: %{status}.
35
36 %prep
37 %pear_package_setup
38
39 %build
40 packagexml2cl package.xml > ChangeLog
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
45 %pear_package_install
46 install -p ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc ChangeLog install.log
54 %doc docs/phpcpd/*
55 %{php_pear_dir}/.registry/.channel.*/*.reg
56 %attr(755,root,root) %{_bindir}/phpcpd
57 %{php_pear_dir}/SebastianBergmann/PHPCPD
This page took 0.131396 seconds and 4 git commands to generate.