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