]>
Commit | Line | Data |
---|---|---|
9a77d7a6 ER |
1 | %define status stable |
2 | %define pearname fDOMDocument | |
3 | %define php_min_version 5.3.3 | |
4 | %include /usr/lib/rpm/macros.php | |
5 | Summary: An Extension to PHP standard DOM | |
6 | Name: php-theseer-fDOMDocument | |
506f1d52 | 7 | Version: 1.5.0 |
9a77d7a6 ER |
8 | Release: 1 |
9 | License: BSD License | |
10 | Group: Development/Languages/PHP | |
11 | Source0: http://pear.netpirates.net/get/%{pearname}-%{version}.tgz | |
506f1d52 | 12 | # Source0-md5: 457e58c1babe379d9c5e1fa61e910a4e |
9a77d7a6 ER |
13 | URL: https://github.com/theseer/fDOMDocument |
14 | BuildRequires: php-channel(pear.netpirates.net) | |
15 | BuildRequires: php-packagexml2cl | |
16 | BuildRequires: php-pear-PEAR | |
17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
18 | BuildRequires: rpmbuild(macros) >= 1.610 | |
19 | Requires: php(core) >= %{php_min_version} | |
20 | Requires: php(dom) | |
21 | Requires: php(xml) | |
22 | Requires: php-channel(pear.netpirates.net) | |
23 | Requires: php-pear | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | An Extension to PHP's standard DOM to add various convenience methods | |
29 | and exceptions by default. | |
30 | ||
31 | In PEAR status of this package is: %{status}. | |
32 | ||
33 | %prep | |
34 | %pear_package_setup | |
35 | ||
36 | %build | |
37 | packagexml2cl package.xml > ChangeLog | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
42 | %pear_package_install | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc ChangeLog install.log | |
50 | %doc docs/fDOMDocument/* | |
51 | %{php_pear_dir}/.registry/.channel.*/*.reg | |
52 | %dir %{php_pear_dir}/TheSeer | |
53 | %{php_pear_dir}/TheSeer/fDOMDocument |