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