]>
Commit | Line | Data |
---|---|---|
cbc93e64 | 1 | %include /usr/lib/rpm/macros.php |
9cb35d2a | 2 | %define _class XML |
3 | %define _subclass Util | |
cbc93e64 AG |
4 | %define _status stable |
5 | %define _pearname %{_class}_%{_subclass} | |
db48275a | 6 | |
9cb35d2a | 7 | Summary: %{_pearname} - XML utility class |
1c1225d6 | 8 | Summary(pl.UTF-8): %{_pearname} - klasa narzędziowa do obróbki XML-a |
cbc93e64 | 9 | Name: php-pear-%{_pearname} |
554906bf AG |
10 | Version: 1.2.0 |
11 | Release: 1 | |
12 | License: BSD | |
cbc93e64 AG |
13 | Group: Development/Languages/PHP |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
554906bf | 15 | # Source0-md5: f680736898dd77f5f254347aca0789c0 |
29f2f253 | 16 | URL: http://pear.php.net/package/XML_Util/ |
5d5c1f02 | 17 | BuildRequires: php-pear-PEAR |
6298b260 | 18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
9f9c8fbd | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
503690d7 | 20 | Requires: php(pcre) |
423ed1fc | 21 | Requires: php-common >= 3:4.2.0 |
cbc93e64 | 22 | Requires: php-pear |
dfa30350 | 23 | Requires: php-pear-PEAR-core |
cbc93e64 AG |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Selection of methods that are often needed when working with XML | |
29 | documents. Functionality includes creating of attribute lists from | |
30 | arrays, creation of tags, validation of XML names and more. | |
31 | ||
079f13ed | 32 | In PEAR status of this package is: %{_status}. |
cbc93e64 | 33 | |
15a44037 JR |
34 | %description -l pl.UTF-8 |
35 | Zbiór metod często stosowanych podczas pracy z dokumentami XML. | |
36 | Możliwość między innymi tworzenia listy atrybutów z tablic, tworzenia | |
37 | tagów, sprawdzania poprawności nazw XML oraz wiele innych. | |
cbc93e64 AG |
38 | |
39 | Ta klasa ma w PEAR status: %{_status}. | |
40 | ||
554906bf AG |
41 | %package tests |
42 | Summary: Tests for PEAR::%{_pearname} | |
43 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} | |
44 | Group: Development/Languages/PHP | |
45 | AutoReq: no | |
46 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
47 | AutoProv: no | |
48 | ||
49 | %description tests | |
50 | Tests for PEAR::%{_pearname}. | |
51 | ||
52 | %description tests -l pl.UTF-8 | |
53 | Testy dla PEAR::%{_pearname}. | |
54 | ||
cbc93e64 | 55 | %prep |
a3c0d3c3 | 56 | %pear_package_setup |
cbc93e64 AG |
57 | |
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
a3c0d3c3 ER |
60 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
61 | %pear_package_install | |
cbc93e64 AG |
62 | |
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
a3c0d3c3 ER |
68 | %doc install.log |
69 | %doc docs/%{_pearname}/examples | |
70 | %{php_pear_dir}/.registry/*.reg | |
cbc93e64 | 71 | %{php_pear_dir}/%{_class}/*.php |
554906bf AG |
72 | |
73 | %files tests | |
74 | %defattr(644,root,root,755) | |
75 | %{php_pear_dir}/tests/%{_pearname} |