]> git.pld-linux.org Git - packages/apache-mod_gzip.git/blame - apache-mod_gzip.spec
- fix config dir
[packages/apache-mod_gzip.git] / apache-mod_gzip.spec
CommitLineData
7dec7f39
PG
1%define mod_name gzip
2%define apxs /usr/sbin/apxs
3Summary: Apache module: On-the-fly compression of HTML documents
e58eb5a2 4Summary(pl.UTF-8): Moduł do apache: kompresuje dokumenty HTML w locie
7dec7f39 5Name: apache-mod_%{mod_name}
4f43cf11 6Version: 2.1.0
7dec7f39
PG
7Release: 0.1
8License: Apache
17f06578 9Group: Networking/Daemons/HTTP
cd589e65 10Source0: http://www.gknw.net/development/apache/httpd-2.0/unix/modules/mod_%{mod_name}-%{version}.tar.gz
4f43cf11 11# Source0-md5: 9011aa2dc4701c0301e6c608269f8835
7dec7f39 12Source1: %{name}.conf
cd589e65 13URL: http://www.gknw.net/development/apache/
d9ac8fcf 14BuildRequires: %{apxs}
7dec7f39 15BuildRequires: apache-devel >= 2.0.40
afcc8317 16BuildRequires: rpmbuild(macros) >= 1.268
7dec7f39 17BuildRequires: zlib-devel
5d8b93c0 18Requires: apache(modules-api) = %apache_modules_api
7dec7f39
PG
19BuildRoot: %{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
25Apache module: On-the-fly compression of HTML documents. Browser will
26transparently decompress and display such documents.
27
4326f310
JR
28%description -l pl.UTF-8
29Moduł do apache: kompresuje dokumenty HTML w locie. Przeglądarki w
30sposó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
39rm -rf $RPM_BUILD_ROOT
7421011f
ER
40install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
41install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf
4f43cf11 42install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
7dec7f39
PG
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46
47%post
afcc8317 48%service -q httpd restart
7dec7f39
PG
49
50%postun
51if [ "$1" = "0" ]; then
afcc8317 52 %service -q httpd restart
7dec7f39
PG
53fi
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
This page took 0.069631 seconds and 4 git commands to generate.