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