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