]>
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 | 5 | %define subver alpha1 |
cd7f603c | 6 | %define rel 4 |
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/ |
a861992d ER |
17 | BuildRequires: php-packagexml2cl |
18 | BuildRequires: php-pear-PEAR >= 1:1.6.0 | |
0b528be6 | 19 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
a861992d | 20 | BuildRequires: rpmbuild(macros) >= 1.573 |
443bd7f0 | 21 | Requires: php-common >= 3:4.2.0 |
25387e95 | 22 | Requires: php-pcre |
cb38c217 | 23 | Requires: php-pear |
a861992d ER |
24 | Requires: php-pear-File_CSV |
25 | Requires: php-pear-File_Util | |
26 | Requires: php-pear-PEAR-core >= 1:1.5.3 | |
2c6842dd | 27 | Obsoletes: php-pear-File-tests |
a111b705 PG |
28 | BuildArch: noarch |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | Provides easy access to read/write to files along with some common | |
33 | routines to deal with paths. Also provides interface for handling CSV | |
34 | files. | |
35 | ||
228b2452 | 36 | In PEAR status of this package is: %{_status}. |
15643863 | 37 | |
8ebe8a89 JR |
38 | %description -l pl.UTF-8 |
39 | Dostarcza prosty dostęp do zapisu/odczytu plików razem z prostymi | |
40 | metodami operacji na ścieżkach. Dostarcza także interfejsu do plików | |
a111b705 PG |
41 | CSV. |
42 | ||
15643863 PG |
43 | Ta klasa ma w PEAR status: %{_status}. |
44 | ||
a111b705 | 45 | %prep |
0b528be6 | 46 | %pear_package_setup |
a111b705 | 47 | |
a861992d ER |
48 | %build |
49 | packagexml2cl package.xml > ChangeLog | |
50 | ||
a111b705 PG |
51 | %install |
52 | rm -rf $RPM_BUILD_ROOT | |
0b528be6 ER |
53 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
54 | %pear_package_install | |
a111b705 PG |
55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
a861992d | 61 | %doc ChangeLog install.log |
0b528be6 | 62 | %{php_pear_dir}/.registry/*.reg |
acfd8f67 | 63 | %{php_pear_dir}/%{_class}.php |