X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=courier-imap.spec;h=275ee966ec83090a772ad6c2dff651be9f0170cb;hb=10802e096205df366166ca0f43ca99a8107aaf62;hp=49df372a4666e4bef55cfac7e89d4d28317324c1;hpb=d023e90afb306ebaab45c0ce27e7c9b691ba0400;p=packages%2Fcourier-imap.git diff --git a/courier-imap.spec b/courier-imap.spec index 49df372..275ee96 100644 --- a/courier-imap.spec +++ b/courier-imap.spec @@ -1,15 +1,19 @@ +# TODO: +# - put imap-ssl and pop3-ssl to separate packages - some want to have +# ssl-only system (or non-ssl only system) +# see also http://thread.gmane.org/gmane.linux.pld.devel.english/2509/focus=2509 # %bcond_with toplevel # Allow toplevel folders. More info: http://www.ricky-chan.co.uk/courier/ # Summary: Courier-IMAP server -Summary(pl): Serwer Courier-IMAP +Summary(pl.UTF-8): Serwer Courier-IMAP Name: courier-imap -Version: 4.0.5 -Release: 3 +Version: 4.3.1 +Release: 1 License: GPL Group: Networking/Daemons Source0: http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2 -# Source0-md5: 961372cea83bcbd07471670df1f9121b +# Source0-md5: 6e25e51faeec55a695242679311b595f Source1: %{name}.init Source2: %{name}-ssl.init Source3: %{name}-pop3.init @@ -20,13 +24,16 @@ Patch0: %{name}-dirs.patch Patch1: %{name}-certsdir.patch Patch2: %{name}-maildir.patch Patch3: %{name}-toplevel.patch +Patch4: %{name}-drop-makedat.patch +Patch5: %{name}-link.patch URL: http://www.courier-mta.org/imap/ BuildRequires: autoconf >= 2.54 BuildRequires: automake -BuildRequires: courier-authlib-devel >= 0.57 +BuildRequires: courier-authlib-devel >= 0.59 BuildRequires: db-devel BuildRequires: fam-devel BuildRequires: libstdc++-devel +BuildRequires: libtool BuildRequires: openssl-devel >= 0.9.7d BuildRequires: procps BuildRequires: rpmbuild(macros) >= 1.268 @@ -51,12 +58,12 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Courier-IMAP is an IMAP server for Maildir mailboxes. -%description -l pl +%description -l pl.UTF-8 Courier-IMAP jest serwerem IMAP dla skrzynek pocztowych Maildir. %package common Summary: Common files for imap and pop3 daemons -Summary(pl): Pliki wspólne dla serwerów imap i pop3 +Summary(pl.UTF-8): Pliki wspólne dla serwerów imap i pop3 Group: Networking/Daemons Requires(post,preun): /sbin/chkconfig Requires: /sbin/chkconfig @@ -67,41 +74,41 @@ Requires: rc-scripts %description common Common files for imap and pop3 daemons. -%description common -l pl -Pliki wspólne dla serwerów imap i pop3. +%description common -l pl.UTF-8 +Pliki wspólne dla serwerów imap i pop3. %package deliverquota Summary: Deliver to a Maildir with a quota -Summary(pl): Obs³uga quoty przy dostarczaniu poczty do skrzynek Maildir +Summary(pl.UTF-8): Obsługa quoty przy dostarczaniu poczty do skrzynek Maildir Group: Networking/Daemons %description deliverquota deliverquota is a temporary hack to implement E-mail delivery to a Maildir with a software-imposed quota. -%description deliverquota -l pl -deliverquota jest tymczasowym rozwi±zaniem implementuj±cym -dostarczanie e-maili do skrzynek Maildir z programowo narzucon± quot±. +%description deliverquota -l pl.UTF-8 +deliverquota jest tymczasowym rozwiązaniem implementującym +dostarczanie e-maili do skrzynek Maildir z programowo narzuconą quotą. %package maildirmake Summary: Tool for making mail folders in Maildir format -Summary(pl): Narzêdzie do tworzenia folderów w formacie Maildir +Summary(pl.UTF-8): Narzędzie do tworzenia folderów w formacie Maildir Group: Networking/Daemons Conflicts: qmail-maildirmake %description maildirmake Maildirmake is a tool for making mail folders in Maildir format. -%description maildirmake -l pl -Maildirmake jest narzêdziem do tworzenia folderów pocztowych w +%description maildirmake -l pl.UTF-8 +Maildirmake jest narzędziem do tworzenia folderów pocztowych w formacie Maildir. %package pop3 Summary: Courier-IMAP POP3 Server -Summary(pl): Serwer Courier-IMAP POP3 +Summary(pl.UTF-8): Serwer Courier-IMAP POP3 Group: Networking/Daemons Requires: %{name}-common = %{version}-%{release} -Requires: pam >= 0.77.3 +Requires: pam >= 0.79.0 Provides: pop3daemon Obsoletes: pop3daemon Conflicts: cyrus-imapd @@ -112,7 +119,7 @@ Conflicts: tpop3d %description pop3 Courier-IMAP POP3 is an POP3 server for Maildir mailboxes. -%description pop3 -l pl +%description pop3 -l pl.UTF-8 Courier-IMAP POP3 jest serwerem POP3 dla skrzynek pocztowych Maildir. %prep @@ -123,37 +130,40 @@ Courier-IMAP POP3 jest serwerem POP3 dla skrzynek pocztowych Maildir. %if %{with toplevel} %patch3 -p1 %endif +%patch4 -p1 +%patch5 -p1 install %{SOURCE1} courier-imap.in install %{SOURCE2} courier-imap-ssl.in install %{SOURCE3} courier-pop3.in install %{SOURCE4} courier-pop3-ssl.in +rm -f makedat/configure.in %build # Change Makefile.am files and force recreate Makefile.in's. -OLDDIR=`pwd` -find -type f -a \( -name configure.in -o -name configure.ac \) | while read FILE; do - cd "`dirname "$FILE"`" +find -type f -a '(' -name configure.in -o -name configure.ac ')' | while read FILE; do + cd "$(dirname "$FILE")" - if [ -f Makefile.am ]; then - sed -i -e '/_[L]DFLAGS=-static/d' Makefile.am - fi + if [ -f Makefile.am ]; then + %{__sed} -i -e '/_[L]DFLAGS=-static/d' Makefile.am + fi - %{__libtoolize} - %{__aclocal} - %{__autoconf} - %{__autoheader} - %{__automake} + %{__libtoolize} + %{__aclocal} + %{__autoconf} + %{__autoheader} + %{__automake} - cd "$OLDDIR" + cd - done %configure \ --with-db=db \ --enable-unicode \ --with-authchangepwdir=/var/tmp \ - --with-certsdir=%{_certsdir} + --with-certsdir=%{_certsdir} \ + --with-mailer=/usr/lib/sendmail %{__make} @@ -183,6 +193,7 @@ install tcpd/couriertls.1 $RPM_BUILD_ROOT%{_mandir}/man8/couriertls.8 install 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 # make config files ./sysconftool $RPM_BUILD_ROOT%{_sysconfdir}/*.dist @@ -331,6 +342,7 @@ fi %attr(754,root,root) /etc/rc.d/init.d/courier-imap-ssl %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared %attr(755,daemon,daemon) %dir %{_sysconfdir}/shared.tmp +%attr(644,daemon,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shared/index %attr(755,root,root) %{_bindir}/imapd %attr(755,root,root) %{_bindir}/maildiracl %attr(755,root,root) %{_bindir}/maildirkw @@ -347,14 +359,13 @@ fi %files common %defattr(644,root,root,755) %doc AUTHORS ChangeLog imap/BUGS INSTALL README* -%attr(750,root,root) %dir %{_sysconfdir} +%attr(751,root,root) %dir %{_sysconfdir} %attr(750,root,root) %dir %{_certsdir} %attr(770,daemon,daemon) %dir %{_localstatedir} %dir %{_libexecdir} %{_sysconfdir}/quotawarnmsg.example %attr(755,root,root) %{_bindir}/couriertls %attr(755,root,root) %{_libexecdir}/couriertcpd -%attr(755,root,root) %{_libexecdir}/makedatprog %{_mandir}/man1/couriert* %{_mandir}/man8/couriert* %{_mandir}/man8/mk*