SPECS: apache-mod_whois.spec - rel 3 (rebuild with new apache)

glen glen at pld-linux.org
Thu Dec 22 01:08:34 CET 2005


Author: glen                         Date: Thu Dec 22 00:08:34 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel 3 (rebuild with new apache)

---- Files affected:
SPECS:
   apache-mod_whois.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/apache-mod_whois.spec
diff -u SPECS/apache-mod_whois.spec:1.5 SPECS/apache-mod_whois.spec:1.6
--- SPECS/apache-mod_whois.spec:1.5	Mon Dec 12 14:44:44 2005
+++ SPECS/apache-mod_whois.spec	Thu Dec 22 01:08:29 2005
@@ -5,7 +5,7 @@
 Summary(pl):	Moduł Apache'a: bramka WHOIS->WWW
 Name:		apache-mod_%{mod_name}
 Version:	0.1
-Release:	2
+Release:	3
 License:	distributable
 Group:		Networking/Daemons
 Source0:	http://dl.sourceforge.net/modwhois/mod_%{mod_name}-%{version}.tar.gz
@@ -13,13 +13,13 @@
 Source1:	%{name}.conf
 URL:		http://modwhois.sourceforge.net/
 BuildRequires:	%{apxs}
-BuildRequires:	apache-devel >= 2.0.0
-Requires(post,preun):	%{apxs}
-Requires:	apache
+BuildRequires:	apache-devel >= 2.0
+Requires:	apache(modules-api) = %apache_modules_api
+Requires:	apache >= 2.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_sysconfdir	%(%{apxs} -q SYSCONFDIR)
-%define		_pkglibdir	%(%{apxs} -q LIBEXECDIR)
+%define		_pkglibdir	%(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define		_sysconfdir	%(%{apxs} -q SYSCONFDIR 2>/dev/null)
 
 %description
 Apache module: WHOIS->WEB gateway.
@@ -43,6 +43,18 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+if [ -f /var/lock/subsys/httpd ]; then
+	/etc/rc.d/init.d/httpd restart 1>&2
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+	if [ -f /var/lock/subsys/httpd ]; then
+		/etc/rc.d/init.d/httpd restart 1>&2
+	fi
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc LICENSE README
@@ -55,6 +67,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2005/12/22 00:08:29  glen
+- rel 3 (rebuild with new apache)
+
 Revision 1.5  2005/12/12 13:44:44  glen
 - adapterized (sorted %verify attrs)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/apache-mod_whois.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list