courier-imap-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. Summary: Courier-IMAP IMAP server
  2. Name: courier-imap
  3. Version: 4.7.0
  4. Release: 1%{?_dist_release}
  5. License: GPL
  6. Group: System Environment/Daemons
  7. Source: http://prdownloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
  8. Patch: courier-imap-startconf.patch
  9. Patch2: courier-imap-apop.patch
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. Requires: /sbin/chkconfig
  12. Requires: courier-authlib
  13. BuildRequires: openssl-devel gdbm-devel pam-devel
  14. BuildRequires: courier-authlib-devel
  15. BuildRequires: libidn-devel
  16. %description
  17. Courier-IMAP is an IMAP server for Maildir mailboxes. This package contains
  18. the standalone version of the IMAP server that's included in the Courier
  19. mail server package. This package is a standalone version for use with
  20. other mail servers. Do not install this package if you intend to install the
  21. full Courier mail server. Install the Courier package instead.
  22. %prep
  23. %setup -q
  24. %patch -b .orig
  25. %patch2 -p1 -b .orig
  26. cp imap/README README.imap
  27. cp imap/README.proxy* .
  28. cp maildir/README.maildirquota.txt README.maildirquota
  29. cp maildir/README.sharedfolders.txt README.sharedfolders
  30. %build
  31. %configure \
  32. --bindir=%{_sbindir} \
  33. --sysconfdir=%{_sysconfdir}/%{name} \
  34. --libexecdir=%{_libexecdir}/%{name} \
  35. --datadir=%{_datadir}/%{name} \
  36. --localstatedir=/var/run \
  37. --enable-unicode \
  38. --with-redhat
  39. #--with-authdaemonvar=/var/run/authdaemon.%{name} \
  40. #--without-authldap \
  41. #--without-authmysql \
  42. #--without-authpgsql \
  43. make
  44. make check
  45. %install
  46. rm -rf %{buildroot}
  47. mkdir -p %{buildroot}/etc/pam.d
  48. make install-strip DESTDIR=%{buildroot}
  49. mkdir -p %{buildroot}/%{_initdir}
  50. install -m 755 courier-imap.sysvinit %{buildroot}%{_initdir}/courier-imap
  51. cd %{buildroot}/%{_sysconfdir}/%{name}
  52. for dist in *.dist; do
  53. mv $dist ${dist%.dist}
  54. done
  55. cd -
  56. touch %{buildroot}/var/run/imapd.pid
  57. touch %{buildroot}/var/run/imapd-ssl.pid
  58. touch %{buildroot}/var/run/imapd.pid.lock
  59. touch %{buildroot}/var/run/imapd-ssl.pid.lock
  60. touch %{buildroot}/var/run/pop3d.pid
  61. touch %{buildroot}/var/run/pop3d-ssl.pid
  62. touch %{buildroot}/var/run/pop3d.pid.lock
  63. touch %{buildroot}/var/run/pop3d-ssl.pid.lock
  64. %clean
  65. rm -rf $RPM_BUILD_ROOT
  66. %post
  67. /sbin/chkconfig --del courier-imap
  68. /sbin/chkconfig --add courier-imap
  69. %preun
  70. if test "$1" = "0"
  71. then
  72. rm -f /var/run/couriersslcache
  73. /sbin/chkconfig --del courier-imap
  74. fi
  75. %{_libexecdir}/%{name}/imapd.rc stop
  76. %{_libexecdir}/%{name}/imapd-ssl.rc stop
  77. %{_libexecdir}/%{name}/pop3d.rc stop
  78. %{_libexecdir}/%{name}/pop3d-ssl.rc stop
  79. %files
  80. %defattr(-,root,root)
  81. %doc NEWS AUTHORS COPYING imap/BUGS README README.imap README.maildirquota
  82. %doc README.sharedfolders
  83. %doc README.proxy*
  84. %doc README.apop
  85. %dir %{_sysconfdir}/%{name}
  86. %config %{_sysconfdir}/%{name}/*
  87. %config %{_sysconfdir}/pam.d/imap
  88. %config %{_sysconfdir}/pam.d/pop3
  89. %{_initdir}/courier-imap
  90. %{_libexecdir}/courier-imap/
  91. %{_sbindir}/*
  92. %{_datadir}/courier-imap/
  93. %{_mandir}/man*/*
  94. %ghost /var/run/*.pid
  95. %ghost /var/run/*.lock
  96. %changelog
  97. * Sun Feb 07 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.7.0-1
  98. - new upstream release.
  99. - added "BR: libidn-devel".
  100. * Sun Nov 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.6.0-1
  101. - new upstream release.
  102. - updated APOP patch.
  103. * Sat Aug 30 2008 Shu KONNO <owa@bg.wakwak.com> 4.0.3-1vl5
  104. - applied new versioning policy
  105. * Sun May 22 2005 UECHI Yasumasa <uechi@potaway.net> 4.0.3-0vl2
  106. - new upstream release
  107. * Mon Mar 21 2005 UECHI Yasumasa <uechi@potaway.net> 4.0.2-0vl2
  108. - new upstream release
  109. * Wed Jan 12 2005 UECHI Yasumasa <uechi@potaway.net> 4.0.1-0vl3
  110. - new upstream release
  111. - authentication library is separated from this package
  112. - add README.proxy* to %doc
  113. - revise apop patch
  114. * Mon Sep 20 2004 UECHI Yasumasa <uechi@potaway.net> 3.0.8-0vl1
  115. - new upstream version
  116. * Mon Jun 15 2004 UECHI Yasumasa <uechi@potaway.net> 3.0.5-0vl1
  117. - new upstream version
  118. * Sat May 22 2004 UECHI Yasumasa <uechi@potaway.net> 3.0.4-0vl1
  119. - new upstream version
  120. - revise apop patch
  121. * Thu Apr 01 2004 UECHI Yasumasa <uechi@potaway.net> 3.0.3-0vl1
  122. - new upstream version
  123. * Sun Mar 28 2004 UECHI Yasumasa <uechi@potaway.net> 3.0.2-0vl2
  124. - build with openssl-0.9.7d
  125. * Sat Mar 27 2004 UECHI Yasumasa <uechi@potaway.net> 3.0.2-0vl1
  126. - new upstream version
  127. * Fri Mar 12 2004 UECHI Yasumasa <uechi@potaway.net> 3.0.1-0vl1
  128. - new upstream version
  129. * Tue Mar 09 2004 UECHI Yasumasa <uechi@potaway.net> 3.0.0-0vl1
  130. - new upstream version
  131. - revise courier-imap-startconf.patch
  132. - use wildcard in files section (%{_sbindir}, %{_sysconfig}/%{name})
  133. * Fri Nov 28 2003 UECHI Yasumasa <uh@u.dhis.portside.net> 2.2.1-0vl1
  134. - new upstream version
  135. - add --with-redhat option to configure script
  136. * Fri Oct 31 2003 UECHI Yasumasa <uh@u.dhis.portside.net> 2.2.0-0vl1
  137. - new upstream version
  138. * Tue Sep 30 2003 UECHI Yasumasa <uh@u.dhis.portside.net> 2.1.2-0vl1
  139. - new upstream version
  140. * Mon Aug 18 2003 UECHI Yasumasa <uh@u.dhis.portside.net> 2.1.0-0vl1
  141. - new upstream version
  142. * Sat May 17 2003 UECHI Yasumasa <uh@u.dhis.portside.net> 1.7.3-0vl1
  143. - new upstream version
  144. - fix apop patch for 1.7.3
  145. * Tue Apr 22 2003 HOTTA Michihide <hotta@net-newbie.com> 1.7.1-0vl2
  146. - add apop patch
  147. * Wed Mar 26 2003 UECHI Yasumasa <uh@u.dhis.portside.net> 1.7.1-0vl1
  148. - new upstream version
  149. * Tue Dec 31 2002 UECHI Yasumasa <uh@u.dhis.portside.net> 1.6.2-0vl1
  150. - new upstream version
  151. * Sun Dec 01 2002 UECHI Yasumasa <uh@u.dhis.portside.net> 1.6.1-0vl2
  152. - use --enable-unicode in configure script
  153. * Tue Nov 12 2002 UECHI Yasumasa <uh@u.dhis.portside.net> 1.6.1-0vl1
  154. - new upstream release
  155. * Sat Oct 26 2002 UECHI Yasumasa <uh@u.dhis.portside.net> 1.6.0-0vl1
  156. - new upstream releas
  157. - /usr/bin/* moved to /usr/sbin/
  158. * Fri Aug 9 2002 UECHI Yasumasa <uh@u.dhis.portside.net> 1.5.3-0vl1
  159. - version up to 1.5.3
  160. * Wed Mar 20 2002 UECHI Yasumasa <uh@u.dhis.portside.net> 1.4.3-0vl1
  161. - initial release