]>
Commit | Line | Data |
---|---|---|
55ed3c0f | 1 | %include /usr/lib/rpm/macros.php |
fa15ea17 | 2 | %define _class XML |
3 | %define _subclass Serializer | |
55ed3c0f AG |
4 | %define _status beta |
5 | %define _pearname %{_class}_%{_subclass} | |
6 | Summary: %{_pearname} - class to build XML documents from data structures | |
e1c1573b | 7 | Summary(pl.UTF-8): %{_pearname} - klasa do tworzenia dokumentów XML ze struktur danych |
55ed3c0f | 8 | Name: php-pear-%{_pearname} |
948b8cd2 | 9 | Version: 0.19.2 |
dbc0ffc2 AG |
10 | Release: 1 |
11 | License: BSD | |
55ed3c0f AG |
12 | Group: Development/Languages/PHP |
13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
948b8cd2 | 14 | # Source0-md5: 1096b87067ff58eae346b44e44e1f0c1 |
1c57a1c9 | 15 | URL: http://pear.php.net/package/XML_Serializer/ |
4e8ba963 | 16 | BuildRequires: php-pear-PEAR |
28903aca | 17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
c21cf396 | 18 | BuildRequires: rpmbuild(macros) >= 1.300 |
441178b5 | 19 | Requires: php(xml) |
2d81d0fe | 20 | Requires: php-common >= 3:4.2.0 |
55ed3c0f | 21 | Requires: php-pear |
e0e8b29f | 22 | Requires: php-pear-PEAR-core |
2d81d0fe | 23 | Requires: php-pear-XML_Parser >= 1.2.6 |
441178b5 | 24 | Requires: php-pear-XML_Util >= 1.1.1 |
55ed3c0f AG |
25 | BuildArch: noarch |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | %{_pearname} serializes complex data structures like arrays or objects | |
30 | as XML documents. This class helps you generating any XML document you | |
31 | require without the need for DOM. | |
32 | ||
c3772502 | 33 | In PEAR status of this package is: %{_status}. |
55ed3c0f | 34 | |
3a37e933 JR |
35 | %description -l pl.UTF-8 |
36 | %{_pearname} serializuje złożone struktury danych takie jak tablice | |
55ed3c0f | 37 | czy obiekty jako dokumenty XML. Ta klasa pomaga w generowaniu |
3a37e933 | 38 | dowolnego dokumentu XML bez potrzeby użycia DOM. |
55ed3c0f AG |
39 | |
40 | Ta klasa ma w PEAR status: %{_status}. | |
41 | ||
dbc0ffc2 AG |
42 | %package tests |
43 | Summary: Tests for PEAR::%{_pearname} | |
44 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} | |
45 | Group: Development/Languages/PHP | |
46 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
47 | AutoReq: no | |
48 | AutoProv: no | |
49 | ||
50 | %description tests | |
51 | Tests for PEAR::%{_pearname}. | |
52 | ||
53 | %description tests -l pl.UTF-8 | |
54 | Testy dla PEAR::%{_pearname}. | |
55 | ||
55ed3c0f | 56 | %prep |
28903aca ER |
57 | %pear_package_setup |
58 | ||
59 | install -d docs/%{_pearname} | |
60 | mv ./%{php_pear_dir}/data/%{_pearname}/doc/* docs/%{_pearname} | |
55ed3c0f AG |
61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
28903aca ER |
64 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
65 | %pear_package_install | |
55ed3c0f AG |
66 | |
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
28903aca ER |
72 | %doc install.log |
73 | %doc docs/%{_pearname}/* | |
74 | %{php_pear_dir}/.registry/*.reg | |
55ed3c0f | 75 | %{php_pear_dir}/%{_class}/*.php |
dbc0ffc2 AG |
76 | |
77 | %files tests | |
78 | %defattr(644,root,root,755) | |
79 | %{php_pear_dir}/tests/* |