]>
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 | |
51e95f4c | 12 | URL: http://php5.laurent-laville.org/compatinfo/ |
163fcf6d ER |
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 | |
3079e341 | 31 | Provides: phpcompatinfo = %{version}-%{release} |
163fcf6d ER |
32 | BuildArch: noarch |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %define _sysconfdir %(pear config-get cfg_dir 2>/dev/null || ERROR)/%{pearname} | |
36 | ||
37 | # exclude optional dependencies | |
38 | %define _noautoreq_pear Net/Growl.* PHPUnit.* PHP/Timer.* | |
39 | ||
40 | %description | |
41 | PHP_CompatInfo will parse a file/folder/array to find out the minimum | |
42 | version and extensions required for it to run. CLI version has many | |
43 | reports (extension, interface, class, function, constant) to display | |
44 | and ability to show content of dictionary references. | |
45 | ||
46 | %prep | |
47 | %pear_package_setup | |
48 | ||
3079e341 ER |
49 | mv docs/%{pearname}/* . |
50 | ||
163fcf6d ER |
51 | %build |
52 | packagexml2cl package.xml > ChangeLog | |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
3079e341 | 56 | install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}} |
163fcf6d | 57 | %pear_package_install |
3079e341 | 58 | install -p ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir} |
163fcf6d ER |
59 | |
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %post -p <lua> | |
64 | %pear_package_print_optionalpackages | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
3079e341 | 68 | %doc LICENSE ChangeLog install.log optional-packages.txt |
163fcf6d | 69 | #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pear/PHP_CompatInfo/phpcompatinfo.xml.dist |
3079e341 ER |
70 | %attr(755,root,root) %{_bindir}/phpcompatinfo |
71 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
163fcf6d ER |
72 | %{php_pear_dir}/Bartlett/PHP/CompatInfo.php |
73 | %{php_pear_dir}/Bartlett/PHP/CompatInfo | |
74 | %{php_pear_dir}/data/PHP_CompatInfo |