]>
Commit | Line | Data |
---|---|---|
5efb9995 | 1 | %include /usr/lib/rpm/macros.php |
f8f6a341 | 2 | %define _class VFS |
5efb9995 AG |
3 | %define _status beta |
4 | %define _pearname %{_class} | |
5 | Summary: %{_pearname} - Virtual File System API | |
7e74a184 | 6 | Summary(pl.UTF-8): %{_pearname} - API wirtualnego systemu plików |
5efb9995 | 7 | Name: php-pear-%{_pearname} |
7f92c211 | 8 | Version: 0.1.0 |
be238e48 | 9 | Release: 4 |
5efb9995 AG |
10 | License: LGPL |
11 | Group: Development/Languages/PHP | |
12 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
7f92c211 | 13 | # Source0-md5: c38b1f577d98f1185df1b9b65707d8c6 |
3fd6e8f3 | 14 | Patch0: %{name}-path_fix.patch |
3415249b | 15 | URL: http://pear.php.net/package/VFS/ |
8c2af7c6 | 16 | BuildRequires: php-pear-PEAR |
9ec493c8 | 17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
dfbd5abf | 18 | BuildRequires: rpmbuild(macros) >= 1.300 |
4f03ad4a | 19 | Requires: php(gettext) |
2a313150 | 20 | Requires: php-common >= 3:4.2.0 |
5efb9995 | 21 | Requires: php-pear |
2a313150 | 22 | Requires: php-pear-Log |
5efb9995 AG |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | This package provides a Virtual File System API, with backends for: | |
28 | - SQL | |
29 | - FTP | |
30 | - Local Filesystems | |
31 | - Hybrid SQL and filesystem | |
32 | ||
33 | ... and more planned. Reading/writing/listing of files are all | |
34 | supported, and there are both object-based and array-based interfaces | |
35 | to directory listing. | |
36 | ||
a30d989e | 37 | In PEAR status of this package is: %{_status}. |
5efb9995 | 38 | |
a15e695c JR |
39 | %description -l pl.UTF-8 |
40 | Ten pakiet dostarcza API Wirtualnego systemu plików, ze wsparciem dla: | |
5efb9995 AG |
41 | - SQL |
42 | - FTP | |
a15e695c JR |
43 | - lokalnych systemów plików |
44 | - hybrydy SQL i systemu plików. | |
5efb9995 | 45 | |
a15e695c JR |
46 | ... w przyszłości też dla innych. Obsługiwane są zapis, odczyt i |
47 | listowanie plików oraz dostępny jest interfejs do listowania katalogów | |
48 | oparty zarówno na obiektach, jak i na tablicy. | |
5efb9995 AG |
49 | |
50 | Ta klasa ma w PEAR status: %{_status}. | |
51 | ||
52 | %prep | |
9ec493c8 ER |
53 | %pear_package_setup |
54 | cd ./%{php_pear_dir} | |
55 | %patch0 -p2 | |
5efb9995 AG |
56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
9ec493c8 ER |
59 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
60 | %pear_package_install | |
5efb9995 AG |
61 | |
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
9ec493c8 | 67 | %doc install.log |
5efb9995 | 68 | %dir %{php_pear_dir}/%{_class} |
9ec493c8 | 69 | %{php_pear_dir}/.registry/*.reg |
5efb9995 AG |
70 | %{php_pear_dir}/*.php |
71 | %{php_pear_dir}/%{_class}/*.php | |
9ec493c8 ER |
72 | |
73 | %{php_pear_dir}/data/%{_pearname} |