2 Summary: Apache module: On-the-fly compression of HTML documents
3 Summary(pl): Modu³ do apache: kompresuje dokumenty HTML w locie
4 Name: apache-mod_%{mod_name}
7 License: Apache Software License
8 Group: Networking/Daemons
9 Group(de): Netzwerkwesen/Server
10 Group(pl): Sieciowe/Serwery
11 Source0: http://www.remotecommunications.com/apache/mod_%{mod_name}/src/%{version}/mod_%{mod_name}.c
12 Source1: http://www.remotecommunications.com/apache/mod_%{mod_name}/src/%{version}/changes.txt
13 Source2: http://www.remotecommunications.com/apache/mod_%{mod_name}/src/%{version}/commands.txt
14 Source3: http://www.remotecommunications.com/apache/mod_%{mod_name}/src/%{version}/samples.txt
15 BuildRequires: /usr/sbin/apxs
16 BuildRequires: apache(EAPI)-devel
17 BuildRequires: zlib-devel
18 Prereq: /usr/sbin/apxs
19 Requires: apache(EAPI)
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _pkglibdir %(/usr/sbin/apxs -q LIBEXECDIR)
25 Apache module: On-the-fly compression of HTML documents. Browser will
26 transparently decompress and display such documents.
29 Modu³ do apache: kompresuje dokumenty HTML w locie. Przegl±daki w sposób
30 przezroczysty dekompresuj± i wy¶wietlaj± takie dokumenty.
40 /usr/sbin/apxs -c mod_%{mod_name}.c -o mod_%{mod_name}.so -lz
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{_pkglibdir}
46 install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
51 %{_sbindir}/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
52 if [ -f /var/lock/subsys/httpd ]; then
53 %{_sysconfdir}/rc.d/init.d/httpd restart 1>&2
57 if [ "$1" = "0" ]; then
58 /usr/sbin/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
59 if [ -f /var/lock/subsys/httpd ]; then
60 /etc/rc.d/init.d/httpd restart 1>&2
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %attr(755,root,root) %{_pkglibdir}/*