1 %define php_name php%{?php_suffix}
2 %define modname zlib_filter
4 Summary: %{modname} - zlib filter implementation backport for PHP 5.0
5 Summary(pl.UTF-8): %{modname} - backport implementacji filtra zlib dla PHP 5.0
6 Name: %{php_name}-pecl-%{modname}
10 Group: Development/Languages/PHP
11 Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
12 # Source0-md5: 1ebb48e3fd1be4593a4eb217fbc1ab53
13 URL: http://pecl.php.net/package/zlib_filter/
14 BuildRequires: %{php_name}-devel >= 3:5.0.0
15 BuildRequires: rpmbuild(macros) >= 1.650
16 %{?requires_php_extension}
17 Requires: php-common >= 4:5.0.4
18 Obsoletes: php-pear-%{modname}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 RFC 1951 inflate/deflate stream filter implementation. Performs inline
23 compression/decompression using the deflate method on any PHP I/O
24 stream. The data produced by this filter, while compatable with the
25 payload portion of an RFC 1952 gzip file, does not include headers or
26 tailers for full RFC 1952 gzip compatability. To achieve this format,
27 use the compress.zlib:// fopen wrapper built directly into PHP.
29 In PECL status of this extension is: %{status}.
31 %description -l pl.UTF-8
32 Implementacja filtra strumienia inflate/deflate zgodna z RFC 1951.
33 Wykonuje kompresję/dekompresję metodą deflate na dowolnym strumieniu
34 I/O PHP. Dane stworzone przez ten filtr, będąc kompatybilnymi z
35 częścią RFC 1952 dotyczącą payloadu pliku gzip, nie zawierają
36 nagłówków ani końcówek dla pełnej zgodności z gzipem według RFC 1952.
37 Aby uzyskać ten format, trzeba użyć wrappera fopen compress.zlib://
38 wbudowanego bezpośrednio w PHP.
40 To rozszerzenie ma w PECL status: %{status}.
44 mv %{modname}-%{version}/* .
49 --with-zlib-filter=/usr
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{php_sysconfdir}/conf.d,%{php_extensiondir}}
56 install -p modules/%{modname}.so $RPM_BUILD_ROOT%{php_extensiondir}
57 cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
58 ; Enable %{modname} extension module
59 extension=%{modname}.so
63 rm -rf $RPM_BUILD_ROOT
66 %php_webserver_restart
70 %php_webserver_restart
74 %defattr(644,root,root,755)
75 %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
76 %attr(755,root,root) %{php_extensiondir}/%{modname}.so