]>
Commit | Line | Data |
---|---|---|
1718b6d9 | 1 | %include /usr/lib/rpm/macros.php |
8987c224 | 2 | %define _class XML |
3 | %define _subclass Wddx | |
045d0810 | 4 | %define _status stable |
1718b6d9 AG |
5 | %define _pearname %{_class}_%{_subclass} |
6 | ||
7 | Summary: %{_pearname} - Wddx pretty serializer and deserializer | |
5c31167d | 8 | Summary(pl.UTF-8): %{_pearname} - przyzwoity serializer i deserializer Wddx |
1718b6d9 | 9 | Name: php-pear-%{_pearname} |
56c5bacd ER |
10 | Version: 1.0.2 |
11 | Release: 1 | |
1718b6d9 AG |
12 | License: PHP 2.02 |
13 | Group: Development/Languages/PHP | |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
56c5bacd | 15 | # Source0-md5: 117e6471762ebdaf033d47e36a2b6aeb |
1718b6d9 | 16 | URL: http://pear.php.net/package/XML_Wddx/ |
b2d99745 | 17 | BuildRequires: php-pear-PEAR |
e2e78bd1 | 18 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
a40970c5 | 19 | BuildRequires: rpmbuild(macros) >= 1.300 |
1718b6d9 | 20 | Requires: php-pear |
c5d954b6 | 21 | Requires: php-pear-XML_Parser >= 1.0 |
1718b6d9 AG |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | XML_Wddx does 2 things: | |
688128c1 JB |
27 | - a drop in replacement for the XML_Wddx extension (if it's not built |
28 | in) | |
1718b6d9 AG |
29 | - produce an editable wddx file (with indenting etc.) and uses CDATA, |
30 | rather than char tags | |
31 | ||
32 | This package contains 2 static method: | |
33 | - XML_Wddx:serialize($value) | |
34 | - XML_Wddx:deserialize($value) | |
35 | ||
36 | And should be 90% compatible with wddx_deserialize(), and the | |
37 | deserializer will use wddx_deserialize if it is built in. | |
38 | ||
39 | No support for recordsets is available at present in the PHP version | |
40 | of the deserializer. | |
41 | ||
d4ccd19e | 42 | In PEAR status of this package is: %{_status}. |
1718b6d9 | 43 | |
35d590de | 44 | %description -l pl.UTF-8 |
688128c1 | 45 | XML_Wddx robi dwie rzeczy: |
35d590de JR |
46 | - zastępuje rozszerzenie XML_Wddx (jeśli nie jest wbudowane) |
47 | - tworzy edytowalny plik wddx (z wcięciami itp.) i używa CDATA zamiast | |
48 | znaczników znakowych | |
688128c1 JB |
49 | |
50 | Ten pakiet zawiera 2 statyczne metody: | |
51 | - XML_Wddx:serialize($value) | |
52 | - XML_Wddx:deserialize($value) | |
53 | ||
35d590de JR |
54 | i powinien być w 90% kompatybilny z wddx_deserialize(), a deserializer |
55 | będzie używał wddx_deserialize jeśli zostało wbudowane. | |
688128c1 | 56 | |
35d590de | 57 | Aktualnie nie ma obsługi dla zbiorów rekordów w wersji PHP |
688128c1 JB |
58 | deserializera. |
59 | ||
60 | Ta klasa ma w PEAR status: %{_status}. | |
1718b6d9 AG |
61 | |
62 | %prep | |
e2e78bd1 | 63 | %pear_package_setup |
1718b6d9 AG |
64 | |
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
e2e78bd1 ER |
67 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
68 | %pear_package_install | |
1718b6d9 AG |
69 | |
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
e2e78bd1 ER |
75 | %doc install.log |
76 | %{php_pear_dir}/.registry/*.reg | |
1718b6d9 | 77 | %{php_pear_dir}/%{_class}/*.php |