2 %define _fmodname pecl_http
5 Summary: %{_modname} - extended HTTP support
6 Summary(pl): %{_modname} - rozszerzona obs³uga protoko³u HTTP
7 Name: php-pecl-%{_modname}
11 Group: Development/Languages/PHP
12 Source0: http://pecl.php.net/get/%{_fmodname}-%{version}.tgz
13 # Source0-md5: c9e24ea9be29871fc30b7fea9caa8eaa
14 URL: http://pecl.php.net/package/pecl_http/
15 BuildRequires: libtool
16 BuildRequires: php-devel >= 3:5.0.0
17 Requires: php-common >= 3:5.0.0
18 Obsoletes: php-pear-%{_modname}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _sysconfdir /etc/php
22 %define extensionsdir %{_libdir}/php
25 Currently implemented features:
26 - Building absolute URIs
27 - RFC compliant HTTP redirects
28 - RFC compliant HTTP date handling
29 - Parsing of HTTP headers and responses
30 - Caching by "Last-Modified" and/or ETag (with 'on the fly' option for
31 ETag generation from buffered output)
32 - Sending data/files/streams with (multiple) ranges support
33 - Negotiating user preferred language/charset
34 - Convenient request functions to HEAD/GET/POST if libcurl is available
35 - HTTP auth hooks (Basic)
36 - HTTPi, HTTPi_Response and HTTPi_Request (with libcurl) classes
38 In PECL status of this extension is: %{_status}.
41 Aktualnie zaimplementowane mo¿liwo¶ci:
42 - tworzenie bezwzglêdnych URI
43 - zgodne z RFC przekierowania HTTP
44 - zgodna z RFC obs³uga daty HTTP
45 - przetwarzanie nag³ówków i odpowiedzi HTTP
46 - buforowanie z u¿yciem "Last-Modified" i/lub ETagów (z opcjê
47 generowania "w locie" ETagów z buforowanego wyj¶cia)
48 - wysy³anie danych/plików/strumieni z obs³ug± (wielu) przedzia³ów
49 - negocjacja preferowanego przez u¿ytkownika jêzyka/zestawu znaków
50 - wygodne funkcje do ¿±dañ HEAD/GET/POST je¶li dostêpna jest libcurl
51 - wywo³ania HTTP auth (Basic)
52 - klasy HTTPi, HTTPi_Response i HTTPi_Request (z u¿yciem libcurl)
54 To rozszerzenie ma w PECL status: %{_status}.
60 cd %{_fmodname}-%{version}
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{extensionsdir}
69 install %{_fmodname}-%{version}/modules/%{_modname}.so $RPM_BUILD_ROOT%{extensionsdir}/%{_modname}.so
72 rm -rf $RPM_BUILD_ROOT
75 %{_sbindir}/php-module-install install %{_modname} %{_sysconfdir}/php-cgi.ini
78 if [ "$1" = "0" ]; then
79 %{_sbindir}/php-module-install remove %{_modname} %{_sysconfdir}/php-cgi.ini
83 %defattr(644,root,root,755)
84 %doc %{_fmodname}-%{version}/{docs,EXPERIMENTAL}
85 %attr(755,root,root) %{extensionsdir}/%{_modname}.so