3 %bcond_with bootstrap # bootstrap build without PEAR installed (for first php-pear-PEAR installation)
6 %define pearname XML_Util
7 Summary: %{pearname} - XML utility class
8 Summary(pl.UTF-8): %{pearname} - klasa narzędziowa do obróbki XML-a
9 Name: php-pear-%{pearname}
13 Group: Development/Languages/PHP
14 Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz
15 # Source0-md5: 00a6543e4adad6aa8815374d0b2f5445
16 URL: http://pear.php.net/package/XML_Util/
17 %if %{without bootstrap}
18 BuildRequires: php-pear-PEAR
20 BuildRequires: rpm-php-pearprov >= 4.4.2-11
21 BuildRequires: rpmbuild(macros) >= 1.300
22 Requires: php(core) >= 4.2.0
25 Requires: php-pear-PEAR-core
26 Obsoletes: php-pear-XML_Util-tests
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Selection of methods that are often needed when working with XML
32 documents. Functionality includes creating of attribute lists from
33 arrays, creation of tags, validation of XML names and more.
35 In PEAR status of this package is: %{status}.
37 %description -l pl.UTF-8
38 Zbiór metod często stosowanych podczas pracy z dokumentami XML.
39 Możliwość między innymi tworzenia listy atrybutów z tablic, tworzenia
40 znaczników, sprawdzania poprawności nazw XML oraz wiele innych.
42 Ta klasa ma w PEAR status: %{status}.
45 %if %{without bootstrap}
48 %setup -q -c -n %{pearname}-%{version}
49 %{__mv} %{pearname}-%{version}/* .
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{php_pear_dir}
56 %if %{without bootstrap}
59 cp -pr XML $RPM_BUILD_ROOT%{php_pear_dir}
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %if %{without bootstrap}
68 %doc install.log docs/%{pearname}/examples
69 %{php_pear_dir}/.registry/xml_util.reg
71 %{php_pear_dir}/XML/Util.php