]>
Commit | Line | Data |
---|---|---|
e4251eb9 | 1 | %include /usr/lib/rpm/macros.php |
18e329e5 | 2 | %define _class I18Nv2 |
4cc29663 | 3 | %define _status beta |
e4251eb9 | 4 | %define _pearname %{_class} |
18e329e5 | 5 | Summary: %{_pearname} - internationalization |
c8cd552b | 6 | Summary(pl.UTF-8): %{_pearname} - umiędzynarodowienie |
e4251eb9 | 7 | Name: php-pear-%{_pearname} |
06a282a6 | 8 | Version: 0.11.4 |
f265fc69 | 9 | Release: 4 |
e4251eb9 AG |
10 | License: PHP |
11 | Group: Development/Languages/PHP | |
12 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
06a282a6 | 13 | # Source0-md5: d8679404737a85e7a36b5018b1abf156 |
24d64270 | 14 | URL: http://pear.php.net/package/I18Nv2/ |
0c5a58ea | 15 | BuildRequires: php-pear-PEAR |
71d10f1e | 16 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
af5b46d2 | 17 | BuildRequires: rpmbuild(macros) >= 1.300 |
7fa564e9 | 18 | Requires: php-common >= 3:4.0.6 |
f265fc69 ER |
19 | Requires: php-iconv |
20 | Requires: php-pcre | |
7fa564e9 | 21 | Requires: php-pear |
08df6752 | 22 | Requires: php-pear-PEAR-core |
e4251eb9 AG |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | This package provides basic support to localize your application, like | |
28 | locale based formatting of dates, numbers and currency. | |
29 | ||
fbd0e038 | 30 | In PEAR status of this package is: %{_status}. |
e4251eb9 | 31 | |
d9d10557 | 32 | %description -l pl.UTF-8 |
f426b75d | 33 | Ta klasa dostarcza podstawowego wsparcia do lokalizacji aplikacji, |
e4251eb9 AG |
34 | takich jak formatowanie dat, liczb czy walut na podstawie locale. |
35 | ||
36 | Ta klasa ma w PEAR status: %{_status}. | |
37 | ||
71d10f1e ER |
38 | %package tests |
39 | Summary: Tests for PEAR::%{_pearname} | |
c8cd552b | 40 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
2e218cb2 | 41 | Group: Development/Languages/PHP |
f265fc69 | 42 | Requires: %{name} = %{version}-%{release} |
4e8620e7 | 43 | AutoProv: no |
f265fc69 | 44 | AutoReq: no |
71d10f1e ER |
45 | |
46 | %description tests | |
47 | Tests for PEAR::%{_pearname}. | |
48 | ||
d9d10557 | 49 | %description tests -l pl.UTF-8 |
71d10f1e ER |
50 | Testy dla PEAR::%{_pearname}. |
51 | ||
e4251eb9 | 52 | %prep |
71d10f1e | 53 | %pear_package_setup |
e4251eb9 AG |
54 | |
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
71d10f1e ER |
57 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
58 | %pear_package_install | |
e4251eb9 AG |
59 | |
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
71d10f1e ER |
65 | %doc install.log |
66 | %{php_pear_dir}/.registry/*.reg | |
e4251eb9 AG |
67 | %{php_pear_dir}/%{_class}.php |
68 | %{php_pear_dir}/%{_class} | |
71d10f1e ER |
69 | |
70 | %files tests | |
71 | %defattr(644,root,root,755) | |
72 | %{php_pear_dir}/tests/* |