2 %define pearname PHP_Depend
3 %include /usr/lib/rpm/macros.php
4 Summary: PHP_Depend design quality metrics for PHP packages
5 Name: php-pdepend-PHP_Depend
9 Group: Development/Languages/PHP
10 Source0: http://pear.pdepend.org/get/%{pearname}-%{version}.tgz
11 # Source0-md5: a639153c9d24316ffadd8fff6df0123b
12 URL: http://pear.pdepend.org/package/PHP_Depend/
13 BuildRequires: php-channel(pear.pdepend.org)
14 BuildRequires: php-pear-PEAR
15 BuildRequires: rpm-php-pearprov >= 4.4.2-11
16 BuildRequires: rpmbuild(macros) >= 1.610
19 Requires: php(simplexml)
21 Requires: php(tokenizer)
22 Requires: php-channel(pear.pdepend.org)
24 Suggests: php-pecl-imagick
25 Obsoletes: php-pdepend-PHP-Depend
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 PHP_Depend is an adaption of the Java design quality metrics software
31 JDepend and the NDepend metric tool.
33 In PEAR status of this package is: %{status}.
37 mv docs/PHP_Depend/* .
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_bindir},%{php_pear_dir}}
43 install -p ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
50 %doc CHANGELOG LICENSE install.log
51 %{php_pear_dir}/.registry/.channel.*/*.reg
52 %attr(755,root,root) %{_bindir}/pdepend
53 %{php_pear_dir}/PHP/Depend.php
54 %{php_pear_dir}/PHP/Depend