2 %define apxs /usr/sbin/apxs
3 Summary: Apache module: On-the-fly compression of HTML documents
4 Summary(pl.UTF-8): Moduł do apache: kompresuje dokumenty HTML w locie
5 Name: apache-mod_%{mod_name}
9 Group: Networking/Daemons/HTTP
10 Source0: http://www.gknw.net/development/apache/httpd-2.0/unix/modules/mod_%{mod_name}-%{version}.tar.gz
11 # Source0-md5: 9011aa2dc4701c0301e6c608269f8835
13 URL: http://www.gknw.net/development/apache/
14 BuildRequires: %{apxs}
15 BuildRequires: apache-devel >= 2.0.40
16 BuildRequires: rpmbuild(macros) >= 1.268
17 BuildRequires: zlib-devel
18 Requires: apache(modules-api) = %apache_modules_api
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
22 %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
25 Apache module: On-the-fly compression of HTML documents. Browser will
26 transparently decompress and display such documents.
28 %description -l pl.UTF-8
29 Moduł do apache: kompresuje dokumenty HTML w locie. Przeglądarki w
30 sposób przezroczysty dekompresują i wyświetlają takie dokumenty.
33 %setup -q -n mod_%{mod_name}-%{version}
36 %{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.la
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
41 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf
42 install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
45 rm -rf $RPM_BUILD_ROOT
48 %service -q httpd restart
51 if [ "$1" = "0" ]; then
52 %service -q httpd restart
56 %defattr(644,root,root,755)
58 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
59 %attr(755,root,root) %{_pkglibdir}/*.so