]>
Commit | Line | Data |
---|---|---|
7dec7f39 PG |
1 | %define mod_name gzip |
2 | %define apxs /usr/sbin/apxs | |
3 | Summary: Apache module: On-the-fly compression of HTML documents | |
e58eb5a2 | 4 | Summary(pl.UTF-8): Moduł do apache: kompresuje dokumenty HTML w locie |
7dec7f39 | 5 | Name: apache-mod_%{mod_name} |
4f43cf11 | 6 | Version: 2.1.0 |
7dec7f39 PG |
7 | Release: 0.1 |
8 | License: Apache | |
17f06578 | 9 | Group: Networking/Daemons/HTTP |
cd589e65 | 10 | Source0: http://www.gknw.net/development/apache/httpd-2.0/unix/modules/mod_%{mod_name}-%{version}.tar.gz |
4f43cf11 | 11 | # Source0-md5: 9011aa2dc4701c0301e6c608269f8835 |
7dec7f39 | 12 | Source1: %{name}.conf |
cd589e65 | 13 | URL: http://www.gknw.net/development/apache/ |
d9ac8fcf | 14 | BuildRequires: %{apxs} |
7dec7f39 | 15 | BuildRequires: apache-devel >= 2.0.40 |
afcc8317 | 16 | BuildRequires: rpmbuild(macros) >= 1.268 |
7dec7f39 | 17 | BuildRequires: zlib-devel |
5d8b93c0 | 18 | Requires: apache(modules-api) = %apache_modules_api |
7dec7f39 PG |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) | |
7421011f | 22 | %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d |
7dec7f39 PG |
23 | |
24 | %description | |
25 | Apache module: On-the-fly compression of HTML documents. Browser will | |
26 | transparently decompress and display such documents. | |
27 | ||
4326f310 JR |
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. | |
7dec7f39 PG |
31 | |
32 | %prep | |
4f43cf11 | 33 | %setup -q -n mod_%{mod_name}-%{version} |
7dec7f39 PG |
34 | |
35 | %build | |
4f43cf11 | 36 | %{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.la |
7dec7f39 PG |
37 | |
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
7421011f ER |
40 | install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}} |
41 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf | |
4f43cf11 | 42 | install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir} |
7dec7f39 PG |
43 | |
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %post | |
afcc8317 | 48 | %service -q httpd restart |
7dec7f39 PG |
49 | |
50 | %postun | |
51 | if [ "$1" = "0" ]; then | |
afcc8317 | 52 | %service -q httpd restart |
7dec7f39 PG |
53 | fi |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc *.txt logos/* | |
7421011f | 58 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf |
5d8b93c0 | 59 | %attr(755,root,root) %{_pkglibdir}/*.so |