%define mod_name gzip
%define apxs /usr/sbin/apxs
Summary: Apache module: On-the-fly compression of HTML documents
-Summary(pl.UTF-8): Moduł do apache: kompresuje dokumenty HTML w locie
+Summary(pl.UTF-8): Moduł do apache: kompresuje dokumenty HTML w locie
Name: apache-mod_%{mod_name}
-Version: 2.0.40
+Version: 2.1.0
Release: 0.1
License: Apache
-Group: Networking/Daemons
+Group: Networking/Daemons/HTTP
Source0: http://www.gknw.net/development/apache/httpd-2.0/unix/modules/mod_%{mod_name}-%{version}.tar.gz
-# Source0-md5: 30c17d999edb5d83368369cde1c921bb
+# Source0-md5: 9011aa2dc4701c0301e6c608269f8835
Source1: %{name}.conf
-Source2: %{name}.logrotate
URL: http://www.gknw.net/development/apache/
BuildRequires: %{apxs}
BuildRequires: apache-devel >= 2.0.40
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
-%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
-%define _pkglogdir %(%{apxs} -q PREFIX 2>/dev/null)/logs
+%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
%description
Apache module: On-the-fly compression of HTML documents. Browser will
sposób przezroczysty dekompresują i wyświetlają takie dokumenty.
%prep
-%setup -q -n mod_%{mod_name}
+%setup -q -n mod_%{mod_name}-%{version}
%build
-%{apxs} -Wc,-Wall,-pipe -c mod_%{mod_name}.c mod_%{mod_name}_debug.c mod_%{mod_name}_compress.c -o mod_%{mod_name}.so
+%{apxs} -c mod_%{mod_name}.c -o mod_%{mod_name}.la
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf,/etc/logrotate.d,%{_pkglogdir}}
-
-install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/90_mod_%{mod_name}.conf
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
-
-> $RPM_BUILD_ROOT%{_pkglogdir}/mod_gzip.log
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf
+install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc *.txt logos/*
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
%attr(755,root,root) %{_pkglibdir}/*.so
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/*
-%attr(640,root,root) %ghost %{_pkglogdir}/*