]>
Commit | Line | Data |
---|---|---|
1146c04a ER |
1 | %define status stable |
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 | |
543146f9 | 6 | Version: 1.1.4 |
1146c04a ER |
7 | Release: 1 |
8 | License: BSD License | |
9 | Group: Development/Languages/PHP | |
10 | Source0: http://pear.pdepend.org/get/%{pearname}-%{version}.tgz | |
543146f9 | 11 | # Source0-md5: 2a026025e6d7e85020ef50b0d28638bb |
1146c04a ER |
12 | URL: http://pear.pdepend.org/package/PHP_Depend/ |
13 | BuildRequires: php-channel(pear.pdepend.org) | |
1146c04a ER |
14 | BuildRequires: php-pear-PEAR |
15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
16 | BuildRequires: rpmbuild(macros) >= 1.610 | |
17 | Requires: php(dom) | |
18 | Requires: php(pcre) | |
19 | Requires: php(simplexml) | |
20 | Requires: php(spl) | |
21 | Requires: php(tokenizer) | |
22 | Requires: php-channel(pear.pdepend.org) | |
23 | Requires: php-pear | |
543146f9 | 24 | Suggests: php(imagick) |
1146c04a ER |
25 | Obsoletes: php-pdepend-PHP-Depend |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | PHP_Depend is an adaption of the Java design quality metrics software | |
31 | JDepend and the NDepend metric tool. | |
32 | ||
33 | In PEAR status of this package is: %{status}. | |
34 | ||
35 | %prep | |
36 | %pear_package_setup | |
04f4cd7c | 37 | mv docs/PHP_Depend/* . |
1146c04a ER |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT{%{_bindir},%{php_pear_dir}} | |
42 | %pear_package_install | |
43 | install -p ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir} | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
04f4cd7c | 50 | %doc CHANGELOG LICENSE install.log |
1146c04a ER |
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 |