]>
Commit | Line | Data |
---|---|---|
1 | %include /usr/lib/rpm/macros.php | |
2 | %define _class HTTP | |
3 | %define _subclass Session2 | |
4 | %define _status alpha | |
5 | %define _pearname HTTP_Session2 | |
6 | Summary: %{_pearname} - PHP5 Session Handler | |
7 | Summary(pl.UTF-8): %{_pearname} - obsługa sesji w PHP5 | |
8 | Name: php-pear-%{_pearname} | |
9 | Version: 0.5.0 | |
10 | Release: 2 | |
11 | License: PHP License | |
12 | Group: Development/Languages/PHP | |
13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
14 | # Source0-md5: 368baafd036e7eea3108149a371f954d | |
15 | URL: http://pear.php.net/package/HTTP_Session2/ | |
16 | BuildRequires: php-pear-PEAR | |
17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
18 | Requires: php-creole | |
19 | Requires: php-pear | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %define _noautoreq 'pear(creole/Creole.php)' | |
24 | ||
25 | %description | |
26 | PHP5 Object-oriented interface to the session_* family functions it | |
27 | provides extra features such as database storage for session data | |
28 | using DB package. Supported containers are Creole, PEAR::DB and | |
29 | PEAR::MDB. It introduces new methods like isNew(), useCookies(), | |
30 | setExpire(), setIdle(), isExpired(), isIdled() and others. | |
31 | ||
32 | In PEAR status of this package is: %{_status}. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Ten zorientowany obiektowo interfejs PHP5 do rodziny funkcji session_* | |
36 | udostępnia dodatkową funkcjonalność taką jak przechowywanie danych | |
37 | sesji w bazie danych przy użyciu pakietu DB. Obsługiwane kontenery to | |
38 | Creole, PEAR::DB oraz PEAR::MDB. Udostępnione są nowe metody takie jak | |
39 | isNew(), useCookies(), setExpire(), setIdle(), isExpired(), isIdled() | |
40 | i inne. | |
41 | ||
42 | Ta klasa ma w PEAR status: %{_status}. | |
43 | ||
44 | %package tests | |
45 | Summary: Tests for PEAR::%{_pearname} | |
46 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} | |
47 | Group: Development/Languages/PHP | |
48 | AutoReq: no | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | AutoProv: no | |
51 | ||
52 | %description tests | |
53 | Tests for PEAR::%{_pearname}. | |
54 | ||
55 | %description tests -l pl.UTF-8 | |
56 | Testy dla PEAR::%{_pearname}. | |
57 | ||
58 | %prep | |
59 | %pear_package_setup | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
64 | %pear_package_install | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
71 | %doc install.log docs/HTTP_Session2/docs | |
72 | %{php_pear_dir}/.registry/*.reg | |
73 | %{php_pear_dir}/HTTP/Session2 | |
74 | %{php_pear_dir}/HTTP/Session2.php | |
75 | ||
76 | %files tests | |
77 | %defattr(644,root,root,755) | |
78 | %{php_pear_dir}/tests/HTTP_Session2 |