SPECS: cyrus-imapd.spec - missing dir, lib64 fixes; rel 7

glen glen at pld-linux.org
Mon Mar 26 18:14:45 CEST 2007


Author: glen                         Date: Mon Mar 26 16:14:45 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- missing dir, lib64 fixes; rel 7

---- Files affected:
SPECS:
   cyrus-imapd.spec (1.113 -> 1.114) 

---- Diffs:

================================================================
Index: SPECS/cyrus-imapd.spec
diff -u SPECS/cyrus-imapd.spec:1.113 SPECS/cyrus-imapd.spec:1.114
--- SPECS/cyrus-imapd.spec:1.113	Wed Mar 21 17:11:02 2007
+++ SPECS/cyrus-imapd.spec	Mon Mar 26 18:14:40 2007
@@ -1,15 +1,11 @@
 # $Revision$, $Date$
-# TODO
-# - /usr/lib/cyrus not packaged
-# - initscript not lib64 safe
-# - STBR to AC when done
 %include	/usr/lib/rpm/macros.perl
 Summary:	High-performance mail store with imap and pop3
 Summary(pl.UTF-8):	Wysoko wydajny serwer IMAP i POP3
 Summary(pt_BR.UTF-8):	Um servidor de mail de alto desempenho que suporta IMAP e POP3
 Name:		cyrus-imapd
 Version:	2.2.12
-Release:	6
+Release:	7
 License:	BSD-like
 Group:		Networking/Daemons
 Source0:	ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/%{name}-%{version}.tar.gz
@@ -226,23 +222,24 @@
 install %{SOURCE7}	$RPM_BUILD_ROOT%{_sysconfdir}/imapd.conf
 install %{SOURCE9}	$RPM_BUILD_ROOT/etc/pam.d/imap
 install %{SOURCE10}	$RPM_BUILD_ROOT/etc/pam.d/pop
-install %{SOURCE11}	$RPM_BUILD_ROOT/etc/rc.d/init.d/cyrus-imapd
+sed -e 's,/''usr/lib/cyrus,%{_libexecdir},' %{SOURCE11} > $RPM_BUILD_ROOT/etc/rc.d/init.d/cyrus-imapd
 install %{SOURCE12}	$RPM_BUILD_ROOT%{_sysconfdir}/cyrus.conf
 
 mv -f $RPM_BUILD_ROOT%{_libexecdir}/master	$RPM_BUILD_ROOT%{_libexecdir}/cyrus-master
 mv -f $RPM_BUILD_ROOT%{_mandir}/man8/master.8	$RPM_BUILD_ROOT%{_mandir}/man8/cyrus-master.8
-rm -rf $RPM_BUILD_ROOT%{_mandir}/man8/idled.8
+rm -f $RPM_BUILD_ROOT%{_mandir}/man8/idled.8
+rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
 
 touch $RPM_BUILD_ROOT/etc/security/blacklist.{imap,pop}
 
-find $RPM_BUILD_ROOT%{perl_vendorarch} -name .packlist -exec rm {} \;
+find $RPM_BUILD_ROOT%{perl_vendorarch} -name .packlist | xargs rm -v
 
 # make hashed dirs
 for i in `%{__perl} -le 'print for "a".."z"'`; do
-	install -d -m 0755 $RPM_BUILD_ROOT%{_var}/lib/imap/user/$i
-	install -d -m 0755 $RPM_BUILD_ROOT%{_var}/lib/imap/quota/$i
-	install -d -m 0755 $RPM_BUILD_ROOT%{_var}/lib/imap/sieve/$i
-	install -d -m 0755 $RPM_BUILD_ROOT%{_var}/spool/imap/$i
+	install -d $RPM_BUILD_ROOT%{_var}/lib/imap/user/$i
+	install -d $RPM_BUILD_ROOT%{_var}/lib/imap/quota/$i
+	install -d $RPM_BUILD_ROOT%{_var}/lib/imap/sieve/$i
+	install -d $RPM_BUILD_ROOT%{_var}/spool/imap/$i
 done
 
 %clean
@@ -259,7 +256,7 @@
 cd /var/lib/imap
 chattr +S . user quota user/* quota/* 2>/dev/null ||:
 chattr +S /var/spool/imap /var/spool/imap/* 2>/dev/null ||:
-%service cyrus-imapd "cyrus imap daemon"
+%service cyrus-imapd restart "cyrus imap daemon"
 
 %preun
 if [ "$1" = "0" ]; then
@@ -286,6 +283,7 @@
 %attr(754,root,root) /etc/rc.d/init.d/cyrus-imapd
 %attr(640,cyrus,mail) %ghost /var/lib/imap/faillog
 %attr(755,root,root) %{_bindir}/*
+%dir %{_libexecdir}
 %attr(4754,cyrus,mail) %{_libexecdir}/deliver
 %attr(2755,cyrus,mail) %{_libexecdir}/deliver-wrapper
 %attr(755,root,root) %{_libexecdir}/arbitron
@@ -364,6 +362,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.114  2007/03/26 16:14:40  glen
+- missing dir, lib64 fixes; rel 7
+
 Revision 1.113  2007/03/21 16:11:02  glen
 - add TODO (ENOTIME to do myself now)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/cyrus-imapd.spec?r1=1.113&r2=1.114&f=u



More information about the pld-cvs-commit mailing list