- fix config dir
[packages/apache-mod_gzip.git] / apache-mod_gzip.spec
1 %define         mod_name        gzip
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}
6 Version:        2.1.0
7 Release:        0.1
8 License:        Apache
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
12 Source1:        %{name}.conf
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)
20
21 %define         _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
22 %define         _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
23
24 %description
25 Apache module: On-the-fly compression of HTML documents. Browser will
26 transparently decompress and display such documents.
27
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.
31
32 %prep
33 %setup -q -n mod_%{mod_name}-%{version}
34
35 %build
36 %{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.la
37
38 %install
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}
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post
48 %service -q httpd restart
49
50 %postun
51 if [ "$1" = "0" ]; then
52         %service -q httpd restart
53 fi
54
55 %files
56 %defattr(644,root,root,755)
57 %doc *.txt logos/*
58 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
59 %attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.032626 seconds and 3 git commands to generate.