]>
Commit | Line | Data |
---|---|---|
163fcf6d | 1 | %define pearname PHP_CompatInfo |
e5a83796 | 2 | %define php_min_version 5.2.1 |
163fcf6d ER |
3 | %include /usr/lib/rpm/macros.php |
4 | Summary: %{pearname} - Find out the minimum version and the extensions required for a piece of code to run | |
5 | Name: php-bartlett-PHP_CompatInfo | |
6 | Version: 2.26.0 | |
7 | Release: 1 | |
8 | License: BSD License | |
9 | Group: Development/Languages/PHP | |
10 | Source0: http://bartlett.laurent-laville.org/get/%{pearname}-%{version}.tgz | |
11 | # Source0-md5: ca6f0922e26119157efb891cd51d6c66 | |
12 | URL: http://bartlett.laurent-laville.org/package/PHP_CompatInfo/ | |
13 | BuildRequires: php-channel(bartlett.laurent-laville.org) | |
14 | BuildRequires: php-packagexml2cl | |
15 | BuildRequires: php-pear-PEAR >= 1:1.9.0 | |
16 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
17 | BuildRequires: rpmbuild(macros) >= 1.610 | |
e5a83796 | 18 | Requires: php(core) >= %{php_min_version} |
163fcf6d ER |
19 | Requires: php(dom) |
20 | Requires: php(pcre) | |
21 | Requires: php(reflection) | |
22 | Requires: php(spl) | |
23 | Requires: php-bartlett-PHP_Reflect <= 1.99.0 | |
24 | Requires: php-channel(bartlett.laurent-laville.org) | |
25 | Requires: php-libxml | |
26 | Requires: php-pear | |
27 | Requires: php-pear-Console_CommandLine >= 1.2.0 | |
28 | Suggests: php-pear-Net_Growl | |
29 | Suggests: php-phpunit-PHPUnit | |
30 | Suggests: php-phpunit-PHP_Timer | |
31 | BuildArch: noarch | |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %define _sysconfdir %(pear config-get cfg_dir 2>/dev/null || ERROR)/%{pearname} | |
35 | ||
36 | # exclude optional dependencies | |
37 | %define _noautoreq_pear Net/Growl.* PHPUnit.* PHP/Timer.* | |
38 | ||
39 | %description | |
40 | PHP_CompatInfo will parse a file/folder/array to find out the minimum | |
41 | version and extensions required for it to run. CLI version has many | |
42 | reports (extension, interface, class, function, constant) to display | |
43 | and ability to show content of dictionary references. | |
44 | ||
45 | %prep | |
46 | %pear_package_setup | |
47 | ||
48 | %build | |
49 | packagexml2cl package.xml > ChangeLog | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
54 | %pear_package_install | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %post -p <lua> | |
60 | %pear_package_print_optionalpackages | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc ChangeLog install.log | |
65 | %doc optional-packages.txt | |
66 | %doc docs/PHP_CompatInfo/* | |
67 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
68 | #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pear/PHP_CompatInfo/phpcompatinfo.xml.dist | |
69 | #%attr(755,root,root) %{_bindir}/phpcompatinfo | |
70 | %{php_pear_dir}/Bartlett/PHP/CompatInfo.php | |
71 | %{php_pear_dir}/Bartlett/PHP/CompatInfo | |
72 | %{php_pear_dir}/data/PHP_CompatInfo |