X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=apache1-mod_gzip.spec;h=2014c90ed5a53f1b246dfd6b802c353572fdce0c;hb=adbb5f4cf8e88da5023dbbe4478f1e68b7e6cacc;hp=c3d1691aa7e9e338f3cf6a170b4213fef36c6dcf;hpb=63b953424691883148584dee2b33a9f5d8f340e3;p=packages%2Fapache1-mod_gzip.git diff --git a/apache1-mod_gzip.spec b/apache1-mod_gzip.spec index c3d1691..2014c90 100644 --- a/apache1-mod_gzip.spec +++ b/apache1-mod_gzip.spec @@ -1,10 +1,10 @@ %define mod_name gzip %define apxs /usr/sbin/apxs1 Summary: Apache module: On-the-fly compression of HTML documents -Summary(pl): Modu³ do apache: kompresuje dokumenty HTML w locie +Summary(pl.UTF-8): Moduł do apache: kompresuje dokumenty HTML w locie Name: apache1-mod_%{mod_name} Version: 1.3.26.1a -Release: 2 +Release: 3 License: Apache Group: Networking/Daemons Source0: http://dl.sourceforge.net/mod-gzip/mod_gzip-%{version}.tgz @@ -16,12 +16,13 @@ Patch1: %{name}-security.patch URL: http://www.schroepl.net/projekte/mod_gzip/ BuildRequires: %{apxs} BuildRequires: apache1-devel >= 1.3.33-2 +BuildRequires: rpmbuild(macros) >= 1.268 BuildRequires: zlib-devel Requires(triggerpostun): %{apxs} Requires(triggerpostun): grep Requires(triggerpostun): sed >= 4.0 -Requires: apache1 >= 1.3.33-2 -Obsoletes: apache-mod_%{mod_name} <= %{version} +Requires: apache1(EAPI) +Obsoletes: apache-mod_gzip <= 1.3.26.1a BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) @@ -32,9 +33,9 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Apache module: On-the-fly compression of HTML documents. Browser will transparently decompress and display such documents. -%description -l pl -Modu³ do apache: kompresuje dokumenty HTML w locie. Przegl±darki w -sposób przezroczysty dekompresuj± i wy¶wietlaj± takie dokumenty. +%description -l pl.UTF-8 +Moduł do apache: kompresuje dokumenty HTML w locie. Przeglądarki w +sposób przezroczysty dekompresują i wyświetlają takie dokumenty. %prep %setup -q -n mod_%{mod_name}-%{version} @@ -58,19 +59,15 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} rm -rf $RPM_BUILD_ROOT %post -if [ -f /var/lock/subsys/apache ]; then - /etc/rc.d/init.d/apache restart 1>&2 -fi +%service -q apache restart -%preun +%postun if [ "$1" = "0" ]; then - if [ -f /var/lock/subsys/apache ]; then - /etc/rc.d/init.d/apache restart 1>&2 - fi + %service -q apache restart fi %triggerpostun -- %{name} < 1.3.26.1a-1.1 -if grep -q '^Include conf\.d' /etc/apache/apache.conf; then +if grep -q '^Include conf\.d/\*\.conf' /etc/apache/apache.conf; then %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2 sed -i -e ' /^Include.*mod_%{mod_name}\.conf/d @@ -81,15 +78,13 @@ else s,^Include.*mod_%{mod_name}\.conf,Include %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf, ' /etc/apache/apache.conf fi -if [ -f /var/lock/subsys/apache ]; then - /etc/rc.d/init.d/apache restart 1>&2 -fi +%service -q apache restart %files %defattr(644,root,root,755) %doc docs/manual/english/* %lang(de) %doc docs/manual/deutsch %attr(755,root,root) %{_pkglibdir}/* -%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf -%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/* +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/* %attr(640,root,root) %ghost %{_pkglogdir}/*