]> git.pld-linux.org Git - SPECS.git/blob - php-pear-XML_Util.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / php-pear-XML_Util.spec
1 #
2 # Conditional build:
3 %bcond_with     bootstrap       # bootstrap build without PEAR installed (for first php-pear-PEAR installation)
4
5 %define         status          stable
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}
10 Version:        1.4.5
11 Release:        1
12 License:        BSD
13 Group:          Development/Languages/PHP
14 Source0:        http://pear.php.net/get/%{pearname}-%{version}.tgz
15 # Source0-md5:  3e048e6b5822d0d2f7f4d9129fcd5df8
16 URL:            http://pear.php.net/package/XML_Util/
17 %if %{without bootstrap}
18 BuildRequires:  php-pear-PEAR
19 %endif
20 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
21 BuildRequires:  rpmbuild(macros) >= 1.300
22 Requires:       php(core) >= 4.2.0
23 Requires:       php(pcre)
24 Requires:       php-pear
25 Requires:       php-pear-PEAR-core
26 Obsoletes:      php-pear-XML_Util-tests
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
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.
34
35 In PEAR status of this package is: %{status}.
36
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.
41
42 Ta klasa ma w PEAR status: %{status}.
43
44 %prep
45 %if %{without bootstrap}
46 %pear_package_setup
47 %else
48 %setup -q -c -n %{pearname}-%{version}
49 %{__mv} %{pearname}-%{version}/* .
50 %endif
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT%{php_pear_dir}
55
56 %if %{without bootstrap}
57 %pear_package_install
58 %else
59 cp -pr XML $RPM_BUILD_ROOT%{php_pear_dir}
60 %endif
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
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
70 %endif
71 %{php_pear_dir}/XML/Util.php
This page took 0.066021 seconds and 3 git commands to generate.