SPECS: apache-mod_whatkilledus.spec - unify
glen
glen at pld-linux.org
Tue Feb 7 14:39:01 CET 2006
Author: glen Date: Tue Feb 7 13:39:01 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- unify
---- Files affected:
SPECS:
apache-mod_whatkilledus.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/apache-mod_whatkilledus.spec
diff -u SPECS/apache-mod_whatkilledus.spec:1.1 SPECS/apache-mod_whatkilledus.spec:1.2
--- SPECS/apache-mod_whatkilledus.spec:1.1 Tue Feb 7 13:45:48 2006
+++ SPECS/apache-mod_whatkilledus.spec Tue Feb 7 14:38:56 2006
@@ -10,15 +10,13 @@
Source0: http://people.apache.org/~trawick/mod_whatkilledus.c
# Source0-md5: e59c5d56e294a31e5b158ad5e4553001
URL: http://people.apache.org/~trawick/exception_hook.html
-BuildRequires: %{apxs}
BuildRequires: apache-devel >= 2.0.43
-BuildRequires: rpm-perlprov
-Requires(post,preun): %{apxs}
-Requires: apache >= 2.0.43
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires: apache(modules-api) = %apache_modules_api
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _pkglibdir %(%{apxs} -q LIBEXECDIR)
-%define _sysconfdir %(%{apxs} -q SYSCONFDIR)
+%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
%description
Keeps a little bit of state on each active connection, which allows it
@@ -32,33 +30,28 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/httpd/httpd.conf
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
-libtool --mode=install install -D mod_%{mod_name}.la $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
+libtool --mode=install install mod_%{mod_name}.la $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
-echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > $RPM_BUILD_ROOT/etc/httpd/httpd.conf/68_mod_%{mod_name}.conf
+echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' \
+ > $RPM_BUILD_ROOT/etc/httpd/httpd.conf/68_mod_%{mod_name}.conf
%clean
rm -rf $RPM_BUILD_ROOT
%post
-if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd restart 1>&2
-else
- echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache HTTP daemon."
-fi
+%service -q httpd restart
%preun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/httpd ]; then
- /etc/rc.d/init.d/httpd restart 1>&2
- fi
+ %service -q httpd restart
fi
%files
%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*mod_*.conf
%attr(755,root,root) %{_pkglibdir}/*.so
-%config %{_sysconfdir}/httpd.conf/*.conf
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -66,6 +59,8 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2006/02/07 13:38:56 glen
+- unify
+
Revision 1.1 2006/02/07 12:45:48 arekm
- new
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/apache-mod_whatkilledus.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list