#
-# Conditional build:
+# Conditional build:
# _without_ldap - without LDAP support
# _without_mysql - without MySQL support
# _without_postgresql - without PostgreSQL support
Summary: Courier-IMAP server
Summary(pl): Serwer Courier-IMAP
Name: courier-imap
-Version: 1.4.1
+Version: 1.4.2
Release: 4
License: GPL
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
Source0: http://download.sourceforge.net/courier/%{name}-%{version}.tar.gz
Source1: %{name}.init
Source2: %{name}-pop3.init
Source6: %{name}.sysconfig
Source7: %{name}-pop3.sysconfig
Source8: %{name}-authdaemon.sysconfig
-Patch0: ftp://ftp.pld.org.pl/people/siefca/patches/courier/%{name}-myownquery.patch
+Patch0: ftp://ftp.pld.org.pl/people/siefca/patches/courier/%{name}-myownquery-fix.patch
URL: http://www.inter7.com/courierimap/
%{!?_without_postgresql:BuildRequires: postgresql-devel}
%{!?_without_mysql:BuildRequires: mysql-devel}
BuildRequires: gdbm-devel
BuildRequires: libstdc++-devel
BuildRequires: openssl-devel
-BuildRequires: kernel-headers
+PreReq: %{name}-common = %{version}
Provides: imapdaemon
-Prereq: %{name}-common = %{version}
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Obsoletes: imapdaemon
+Conflicts: imap
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _libexecdir /usr/lib/courier-imap
%define _sysconfdir /etc/courier-imap
Summary: Common files for imap and pop daemons
Summary(pl): Pliki wspólne dla serwerów imap i pop
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
-Prereq: rc-scripts
-Prereq: /sbin/chkconfig
+PreReq: rc-scripts
+PreReq: /sbin/chkconfig
Requires: %{name}-maildirmake
Requires: %{name}-deliverquota
Requires: %{name}-userdb
%package userdb
Summary: Commands used to create the /etc/userdb.dat
+Summary(pl): Polecenia do tworzenia /etc/userdb.dat
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
%description userdb
-Commands used to create the /etc/userdb.dat
+Commands used to create the /etc/userdb.dat.
+
+%description userdb -l pl
+Polecenia u¿ywane do stworzenia /etc/userdb.dat.
%package deliverquota
-Summary: Deliver to a maildir with a quota
+Summary: Deliver to a Maildir with a quota
+Summary(pl): Obs³uga quoty przy dostarczaniu poczty do skrzynek Maildir
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
%description deliverquota
deliverquota is a temporary hack to implement E-mail delivery to a
-maildir with a software-imposed quota.
+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±.
%package maildirmake
-Summary: Tool for making mail folders in Maildir format.
+Summary: Tool for making mail folders in Maildir format
+Summary(pl): Narzêdzie do tworzenia folderów w formacie Maildir
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
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
+formacie Maildir.
+
%package pop3
Summary: Courier-IMAP POP3 Server
Summary(pl): Serwer Courier-IMAP POP3
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
-Prereq: %{name}-common = %{version}
+PreReq: %{name}-common = %{version}
Provides: pop3daemon
Obsoletes: pop3daemon
+Conflicts: imap-pop3
+Conflicts: tpop3d
%description pop3
Courier-IMAP POP3 is an POP3 server for Maildir mailboxes.
Summary: LDAP authentication daemon for Courier IMAP
Summary(pl): Demon autentykacji LDAP do Courier IMAP
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
-Prereq: %{name}-common = %{version}
+PreReq: %{name}-common = %{version}
%description authldap
This package provides LDAP authentication for Courier IMAP.
Summary: MySQL authentication daemon for Courier IMAP
Summary(pl): Demon autentykacji MySQL do Courier IMAP
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
-Prereq: %{name}-common = %{version}
+PreReq: %{name}-common = %{version}
Requires: zlib
%description authmysql
Summary: PostgreSQL authentication daemon for Courier IMAP
Summary(pl): Demon autentykacji PostgreSQL do Courier IMAP
Group: Networking/Daemons
-Group(de): Netzwerkwesen/Server
-Group(pl): Sieciowe/Serwery
-Prereq: %{name}-common = %{version}
+PreReq: %{name}-common = %{version}
%description authpgsql
This package provides PostgreSQL authentication for Courier IMAP.
%description authpgsql -l pl
-Ten pakiet pozwala na korzystanie z autentykacji PostgreSQL w Courier IMAP.
+Ten pakiet pozwala na korzystanie z autentykacji PostgreSQL w Courier
+IMAP.
%prep
%setup -q
install %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/courier-imap-pop3
install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/authdaemon
-rm -rf $RPM_BUILD_ROOT%{_mandir}/man8/{authcram,authpam,authpwd,authshadow,authuserdb,authvchkpw,pw2userdb,vchkpw2userdb,authdaemon,authdaemond,authldap,authmysql}.8 \
+rm -rf $RPM_BUILD_ROOT%{_mandir}/man8/{authcram,authpam,authpwd,authshadow,authuserdb,authvchkpw,pw2userdb,vchkpw2userdb,authdaemon,authdaemond,authldap,authmysql}.8 \
$RPM_BUILD_ROOT%{_sbindir}/{*db,mk*cert}
mv -f authlib/README.authmysql.html README.authmysql.html
mv -f authlib/README.ldap README.ldap
-mv -f authlib/README.myownquery README.myownquery
+mv -f authlib/README.authmysql.myownquery README.authmysql.myownquery
mv -f imap/README README.imap
mv -f maildir/README.maildirquota.txt README.maildirquota
echo ".so makeuserdb.8" >$RPM_BUILD_ROOT%{_mandir}/man8/pw2userdb.8
echo ".so makeuserdb.8" >$RPM_BUILD_ROOT%{_mandir}/man8/vchkpw2userdb.8
-gzip -9nf README* imap/BUGS AUTHORS COPYING
-
touch $RPM_BUILD_ROOT/etc/security/blacklist.{pop3,imap}
%clean
%files common
%defattr(644,root,root,755)
-%doc *.gz imap/*.gz
+%doc README* imap/BUGS AUTHORS
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/authdaemon
%attr(754,root,root) /etc/rc.d/init.d/authdaemon
%attr(700,root,root) /var/lib/authdaemon
%attr(755,root,root) %{_libexecdir}/couriertcpd
%attr(755,root,root) %{_libexecdir}/logger
%attr(755,root,root) %{_libexecdir}/makedatprog
-%{_mandir}/man8/auth[cdpsuv]*
+%{_mandir}/man8/auth[cdsuv]*
+%{_mandir}/man8/authp[aw]*
%{_mandir}/man7/authlib*
%{_mandir}/man1/couriert*
%{_mandir}/man8/mk*