]>
Commit | Line | Data |
---|---|---|
a111b705 PG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class File | |
15643863 | 3 | %define _status stable |
a111b705 | 4 | %define _pearname %{_class} |
fbe472fb | 5 | Summary: %{_pearname} - Common file and directory routines |
9bdf7fcc | 6 | Summary(pl.UTF-8): %{_pearname} - Podstawowe sposoby operacji na plikach i katalogach |
a111b705 | 7 | Name: php-pear-%{_pearname} |
29b58d01 | 8 | Version: 1.3.0 |
6727a99f | 9 | Release: 2 |
d6f8ac19 | 10 | License: PHP |
a111b705 | 11 | Group: Development/Languages/PHP |
d6f8ac19 | 12 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz |
29b58d01 | 13 | # Source0-md5: 9d806e98095f2b10373ac521a098d9ed |
b0497d2a | 14 | URL: http://pear.php.net/package/File/ |
88cc4770 | 15 | BuildRequires: php-pear-PEAR |
0b528be6 | 16 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
fd79496e | 17 | BuildRequires: rpmbuild(macros) >= 1.300 |
1639f0b2 | 18 | Requires: php(pcre) |
443bd7f0 | 19 | Requires: php-common >= 3:4.2.0 |
cb38c217 | 20 | Requires: php-pear |
e16fbb6c | 21 | Requires: php-pear-PEAR-core |
a111b705 PG |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Provides easy access to read/write to files along with some common | |
27 | routines to deal with paths. Also provides interface for handling CSV | |
28 | files. | |
29 | ||
228b2452 | 30 | In PEAR status of this package is: %{_status}. |
15643863 | 31 | |
8ebe8a89 JR |
32 | %description -l pl.UTF-8 |
33 | Dostarcza prosty dostęp do zapisu/odczytu plików razem z prostymi | |
34 | metodami operacji na ścieżkach. Dostarcza także interfejsu do plików | |
a111b705 PG |
35 | CSV. |
36 | ||
15643863 PG |
37 | Ta klasa ma w PEAR status: %{_status}. |
38 | ||
0b528be6 ER |
39 | %package tests |
40 | Summary: Tests for PEAR::%{_pearname} | |
9bdf7fcc | 41 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
3c22a2ca | 42 | Group: Development/Languages/PHP |
0b528be6 | 43 | Requires: %{name} = %{version}-%{release} |
0c26b020 | 44 | AutoReq: no |
66a135f0 | 45 | AutoProv: no |
0b528be6 ER |
46 | |
47 | %description tests | |
48 | Tests for PEAR::%{_pearname}. | |
49 | ||
8ebe8a89 | 50 | %description tests -l pl.UTF-8 |
0b528be6 ER |
51 | Testy dla PEAR::%{_pearname}. |
52 | ||
a111b705 | 53 | %prep |
0b528be6 | 54 | %pear_package_setup |
a111b705 PG |
55 | |
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
0b528be6 ER |
58 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
59 | %pear_package_install | |
a111b705 PG |
60 | |
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
77edc6ae | 66 | %doc install.log |
0b528be6 | 67 | %{php_pear_dir}/.registry/*.reg |
a111b705 | 68 | %{php_pear_dir}/*.php |
6727a99f | 69 | %{php_pear_dir}/%{_class}/* |
0b528be6 ER |
70 | |
71 | %files tests | |
72 | %defattr(644,root,root,755) | |
73 | %{php_pear_dir}/tests/* |