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