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