]> git.pld-linux.org Git - packages/php-bartlett-PHP_CompatInfo.git/blame - php-bartlett-PHP_CompatInfo.spec
update URL
[packages/php-bartlett-PHP_CompatInfo.git] / php-bartlett-PHP_CompatInfo.spec
CommitLineData
163fcf6d 1%define pearname PHP_CompatInfo
e5a83796 2%define php_min_version 5.2.1
163fcf6d
ER
3%include /usr/lib/rpm/macros.php
4Summary: %{pearname} - Find out the minimum version and the extensions required for a piece of code to run
5Name: php-bartlett-PHP_CompatInfo
6Version: 2.26.0
7Release: 1
8License: BSD License
9Group: Development/Languages/PHP
10Source0: http://bartlett.laurent-laville.org/get/%{pearname}-%{version}.tgz
11# Source0-md5: ca6f0922e26119157efb891cd51d6c66
51e95f4c 12URL: http://php5.laurent-laville.org/compatinfo/
163fcf6d
ER
13BuildRequires: php-channel(bartlett.laurent-laville.org)
14BuildRequires: php-packagexml2cl
15BuildRequires: php-pear-PEAR >= 1:1.9.0
16BuildRequires: rpm-php-pearprov >= 4.4.2-11
17BuildRequires: rpmbuild(macros) >= 1.610
e5a83796 18Requires: php(core) >= %{php_min_version}
163fcf6d
ER
19Requires: php(dom)
20Requires: php(pcre)
21Requires: php(reflection)
22Requires: php(spl)
23Requires: php-bartlett-PHP_Reflect <= 1.99.0
24Requires: php-channel(bartlett.laurent-laville.org)
25Requires: php-libxml
26Requires: php-pear
27Requires: php-pear-Console_CommandLine >= 1.2.0
28Suggests: php-pear-Net_Growl
29Suggests: php-phpunit-PHPUnit
30Suggests: php-phpunit-PHP_Timer
3079e341 31Provides: phpcompatinfo = %{version}-%{release}
163fcf6d
ER
32BuildArch: noarch
33BuildRoot: %{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
41PHP_CompatInfo will parse a file/folder/array to find out the minimum
42version and extensions required for it to run. CLI version has many
43reports (extension, interface, class, function, constant) to display
44and ability to show content of dictionary references.
45
46%prep
47%pear_package_setup
48
3079e341
ER
49mv docs/%{pearname}/* .
50
163fcf6d
ER
51%build
52packagexml2cl package.xml > ChangeLog
53
54%install
55rm -rf $RPM_BUILD_ROOT
3079e341 56install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
163fcf6d 57%pear_package_install
3079e341 58install -p ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
163fcf6d
ER
59
60%clean
61rm -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
This page took 0.063264 seconds and 4 git commands to generate.