packages: courier-imap/courier-imap.spec - FAM (gamin in th) BR deps and al...

glen glen at pld-linux.org
Mon Jun 18 14:00:27 CEST 2012


Author: glen                         Date: Mon Jun 18 12:00:27 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- FAM (gamin in th) BR deps and allow turning it off

---- Files affected:
packages/courier-imap:
   courier-imap.spec (1.194 -> 1.195) 

---- Diffs:

================================================================
Index: packages/courier-imap/courier-imap.spec
diff -u packages/courier-imap/courier-imap.spec:1.194 packages/courier-imap/courier-imap.spec:1.195
--- packages/courier-imap/courier-imap.spec:1.194	Tue Apr  3 14:39:04 2012
+++ packages/courier-imap/courier-imap.spec	Mon Jun 18 14:00:22 2012
@@ -8,6 +8,7 @@
 #
 # Conditional build:
 %bcond_with	toplevel	# Allow toplevel folders. More info: http://www.ricky-chan.co.uk/courier/
+%bcond_without	fam		# FAM for enhanced IMAP IDLE and locking
 
 Summary:	Courier-IMAP server
 Summary(pl.UTF-8):	Serwer Courier-IMAP
@@ -37,6 +38,7 @@
 BuildRequires:	gdbm-devel
 BuildRequires:	gnet-devel
 BuildRequires:	libidn-devel
+%{?with_fam:BuildRequires:	gamin-devel}
 BuildRequires:	libstdc++-devel
 BuildRequires:	libtool
 BuildRequires:	openssl-devel >= 0.9.7d
@@ -138,10 +140,10 @@
 %endif
 %patch4 -p1
 
-install %{SOURCE1} courier-imap.in
-install %{SOURCE2} courier-imap-ssl.in
-install %{SOURCE3} courier-pop3.in
-install %{SOURCE4} courier-pop3-ssl.in
+cp -p %{SOURCE1} courier-imap.in
+cp -p %{SOURCE2} courier-imap-ssl.in
+cp -p %{SOURCE3} courier-pop3.in
+cp -p %{SOURCE4} courier-pop3-ssl.in
 rm -f makedat/configure.in
 
 %build
@@ -164,6 +166,10 @@
 	cd -
 done
 
+%if %{without fam}
+ac_cv_header_fam_h=no \
+ac_cv_lib_fam_FAMOpen=no \
+%endif
 %configure \
 	--with-db=db \
 	--enable-unicode \
@@ -184,19 +190,19 @@
 install -p courier-imap-ssl $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-imap-ssl
 install -p courier-pop3 $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-pop3
 install -p courier-pop3-ssl $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-pop3-ssl
-cp -a %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/imap
-cp -a %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/pop3
+cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/imap
+cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/pop3
 
 rm -rf $RPM_BUILD_ROOT%{_sbindir}/mk*cert
 
-cp -af imap/README README.imap
-cp -af imap/ChangeLog ChangeLog
-cp -af maildir/README.maildirquota.txt README.maildirquota
+cp -pf imap/README README.imap
+cp -pf imap/ChangeLog ChangeLog
+cp -pf maildir/README.maildirquota.txt README.maildirquota
 
 mv -f $RPM_BUILD_ROOT%{_datadir}/mk*cert $RPM_BUILD_ROOT%{_sbindir}
 
-cp -a tcpd/couriertls.1 $RPM_BUILD_ROOT%{_mandir}/man8/couriertls.8
-cp -a imap/courierpop3d.8 $RPM_BUILD_ROOT%{_mandir}/man8/courierpop3d.8
+cp -p tcpd/couriertls.1 $RPM_BUILD_ROOT%{_mandir}/man8/couriertls.8
+cp -p imap/courierpop3d.8 $RPM_BUILD_ROOT%{_mandir}/man8/courierpop3d.8
 
 touch $RPM_BUILD_ROOT/etc/security/blacklist.{pop3,imap}
 touch $RPM_BUILD_ROOT%{_sysconfdir}/shared/index
@@ -408,6 +414,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.195  2012/06/18 12:00:22  glen
+- FAM (gamin in th) BR deps and allow turning it off
+
 Revision 1.194  2012/04/03 12:39:04  hawk
 - updated to 4.10.0
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/courier-imap/courier-imap.spec?r1=1.194&r2=1.195



More information about the pld-cvs-commit mailing list