]> git.pld-linux.org Git - packages/courier-imap.git/blobdiff - courier-imap.spec
- Rebuild with DB 5.3
[packages/courier-imap.git] / courier-imap.spec
index dfdc46bba3d641c406474aaea11348e42355d11c..e995e7a10f60bd83923989ff9767cfb760418748 100644 (file)
@@ -2,18 +2,22 @@
 # - 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
+# - fix manpages:
+#    [set $man.base.url.for.relative.links]/maildirquota.html
 #
+# 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):   Serwer Courier-IMAP
+Summary(pl.UTF-8):     Serwer Courier-IMAP
 Name:          courier-imap
-Version:       4.1.1
-Release:       3
+Version:       4.10.0
+Release:       2
 License:       GPL
 Group:         Networking/Daemons
-Source0:       http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
-# Source0-md5: f423a609d9cce0dcf193cac64eb4cbdd
+Source0:       http://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
+# Source0-md5: 2f95c99b9ad1380b9f3ac733ccd741a2
 Source1:       %{name}.init
 Source2:       %{name}-ssl.init
 Source3:       %{name}-pop3.init
@@ -28,11 +32,16 @@ Patch4:             %{name}-drop-makedat.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.61
 BuildRequires: db-devel
-BuildRequires: fam-devel
+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
+BuildRequires: pkgconfig
 BuildRequires: procps
 BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: sed >= 4.0
@@ -56,12 +65,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
@@ -72,41 +81,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
-Group:         Networking/Daemons
+Summary(pl.UTF-8):     Serwer Courier-IMAP POP3
+Group:         Networking/Daemons/POP3
 Requires:      %{name}-common = %{version}-%{release}
-Requires:      pam >= 0.77.3
+Requires:      pam >= 0.79.0
 Provides:      pop3daemon
 Obsoletes:     pop3daemon
 Conflicts:     cyrus-imapd
@@ -117,7 +126,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
@@ -130,14 +139,13 @@ Courier-IMAP POP3 jest serwerem POP3 dla skrzynek pocztowych Maildir.
 %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
-
 # Change Makefile.am files and force recreate Makefile.in's.
 find -type f -a '(' -name configure.in -o -name configure.ac ')' | while read FILE; do
        cd "$(dirname "$FILE")"
@@ -149,12 +157,18 @@ find -type f -a '(' -name configure.in -o -name configure.ac ')' | while read FI
        %{__libtoolize}
        %{__aclocal}
        %{__autoconf}
-       %{__autoheader}
+       if grep -q AC_CONFIG_HEADER configure.in; then
+               %{__autoheader}
+       fi
        %{__automake}
 
        cd -
 done
 
+%if %{without fam}
+ac_cv_header_fam_h=no \
+ac_cv_lib_fam_FAMOpen=no \
+%endif
 %configure \
        --with-db=db \
        --enable-unicode \
@@ -162,7 +176,7 @@ done
        --with-certsdir=%{_certsdir} \
        --with-mailer=/usr/lib/sendmail
 
-%{__make}
+%{__make} -j1
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -171,23 +185,23 @@ install -d $RPM_BUILD_ROOT{/etc/{pam.d,rc.d/init.d,security},%{_certsdir}}
 %{__make} -j1 install \
        DESTDIR=$RPM_BUILD_ROOT
 
-install courier-imap $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-imap
-install courier-imap-ssl $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-imap-ssl
-install courier-pop3 $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-pop3
-install courier-pop3-ssl $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-pop3-ssl
-install %{SOURCE5} $RPM_BUILD_ROOT/etc/pam.d/imap
-install %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/pop3
+install -p courier-imap $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-imap
+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 -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
 
-install imap/README README.imap
-install imap/ChangeLog ChangeLog
-install 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}
 
-install tcpd/couriertls.1 $RPM_BUILD_ROOT%{_mandir}/man8/couriertls.8
-install 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
This page took 0.075976 seconds and 4 git commands to generate.