]> git.pld-linux.org Git - packages/apache1-mod_hosts_access.git/blobdiff - apache1-mod_hosts_access.spec
- use apache1(EAPI) for runtime dep
[packages/apache1-mod_hosts_access.git] / apache1-mod_hosts_access.spec
index cd2eba5d627ca951913c544f564a27ad7f2a0e73..736be53f894243a408eff84c4ff0f87aaba32400 100644 (file)
@@ -1,18 +1,19 @@
 %define                mod_name        hosts_access
 %define        apxs            /usr/sbin/apxs1
 Summary:       Apache module: access defined by hosts.allow/hosts.deny
-Summary(pl):   Modu³ do apache: dostêp na podstawie hosts.allow/hosts.deny
+Summary(pl.UTF-8):     Moduł do apache: dostęp na podstawie hosts.allow/hosts.deny
 Name:          apache1-mod_%{mod_name}
 Version:       1.0.0
-Release:       0.3
+Release:       0.4
 License:       BSD
 Group:         Networking/Daemons
 Source0:       http://www.klomp.org/mod_hosts_access/mod_%{mod_name}-%{version}.tar.gz
 # Source0-md5: 3720e303cfde50e94586f484a903aa41
 URL:           http://www.klomp.org/mod_hosts_access/
-BuildRequires: apache1-devel >= 1.3.33-2
+BuildRequires: apache1-devel >= 1.3.39
 BuildRequires: libwrap-devel
-Requires:      apache1 >= 1.3.33-2
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires:      apache1(EAPI)
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
@@ -22,9 +23,9 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Mod_hosts_access allows you to use the hosts.allow and hosts.deny
 files to configure access to your apache webserver.
 
-%description -l pl
-Mod_hosts_access pozwala u¿ywaæ plików hosts.allow i hosts.deny do
-okre¶lania dostêpu do zasobów serwera WWW apache.
+%description -l pl.UTF-8
+Mod_hosts_access pozwala używać plików hosts.allow i hosts.deny do
+określania dostępu do zasobów serwera WWW apache.
 
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
@@ -45,19 +46,15 @@ echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
 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
 
 %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
 
 %files
 %defattr(644,root,root,755)
 %doc README INSTALL
-%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 md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
 %attr(755,root,root) %{_pkglibdir}/*
This page took 0.06658 seconds and 4 git commands to generate.