+# You'll need ipv6 bcond and patch if the module alters IP related structures.
%bcond_without ipv6 # disable IPv6 support
#
# Replace MODNAME with real module name (example for mod_example)
Summary: Apache module: ...
Summary(pl): Modu³ Apache'a: ...
Name: apache1-mod_%{mod_name}
-Version: VERSION
+Version: -
Release: 0.1
License: - (enter Apache/GPL/LGPL/BSD/BSD-like/other license name here)
Group: Networking/Daemons
%{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
sed -i -e '
/^Include.*mod_%{mod_name}\.conf/d
- ' /etc/apache/apache.conf
+' /etc/apache/apache.conf
else
# they're still using old apache.conf
sed -i -e '
s,^Include.*mod_%{mod_name}\.conf,Include %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf,
- ' /etc/apache/apache.conf
+' /etc/apache/apache.conf
fi
if [ -f /var/lock/subsys/apache ]; then
/etc/rc.d/init.d/apache restart 1>&2
%files
%defattr(644,root,root,755)
%doc README
-%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}/*