courier-imap-vl.spec 7.0 KB

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