SPECS: jwhois.spec - make package installable on clean system by using %gho...
glen
glen at pld-linux.org
Thu May 29 22:17:03 CEST 2008
Author: glen Date: Thu May 29 20:17:03 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- make package installable on clean system by using %ghost instead
---- Files affected:
SPECS:
jwhois.spec (1.9 -> 1.10)
---- Diffs:
================================================================
Index: SPECS/jwhois.spec
diff -u SPECS/jwhois.spec:1.9 SPECS/jwhois.spec:1.10
--- SPECS/jwhois.spec:1.9 Thu May 29 19:57:45 2008
+++ SPECS/jwhois.spec Thu May 29 22:16:57 2008
@@ -80,21 +80,18 @@
%find_lang %{name}
+touch $RPM_BUILD_ROOT%{_localstatedir}/jwhois.db
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+
%clean
rm -rf $RPM_BUILD_ROOT
%pre
%groupadd -g 87 whois
-[ -f %{_localstatedir}/jwhois.db ] && rm -f %{_localstatedir}/jwhois.db
%post -p /sbin/postshell
-/usr/sbin/fix-info-dir -c %{_infodir}
-%preun
-if [ "$1" = "0" ]; then
- [ -f %{_localstatedir}/jwhois.db ] && rm -f %{_localstatedir}/jwhois.db
-fi
-
%postun
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
if [ "$1" = "0" ]; then
@@ -110,6 +107,7 @@
%lang(sv) %{_mandir}/sv/man1/jwhois.1*
%{_infodir}/jwhois.info*
%attr(775,root,whois) %dir %{_localstatedir}
+%ghost %{_localstatedir}/jwhois.db
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -117,6 +115,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.10 2008-05-29 20:16:57 glen
+- make package installable on clean system by using %ghost instead
+
Revision 1.9 2008-05-29 17:57:45 glen
- release 2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/jwhois.spec?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list