File maildrop.spec of Package maildrop
#
# Spec file for package maildrop (Version 2.5.5)
#
# Copyright (c) 2008-2010 Exata T.I., Maringa, PR, Brasil.
# 2008-2012 Weberhofer GmbH, Vienna, Austria
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org
#
Name: maildrop
Version: 2.6.0
Release: 1
License: GPL-3.0+
Summary: Mail filter/mail delivery agent
Url: http://www.courier-mta.org/maildrop
Group: Productivity/Networking/Email/Utilities
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}rc
Source2: subscribeIMAP.sh
Source3: %{name}.logrotate
BuildRequires: gcc-c++ gettext-devel
BuildRequires: gdbm-devel
BuildRequires: pcre-devel
BuildRequires: qmail-skel
Requires: logrotate
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Maildrop is a combination mail filter/mail delivery agent.
Maildrop reads the message to be delivered to your mailbox,
optionally reads instructions from a file how filter incoming
mail, then based on these instructions may deliver mail to an
alternate mailbox, or forward it, instead of dropping the
message into your mailbox.
Maildrop uses a structured, real, meta-programming language in
order to define filtering instructions. Its basic features are
fast and efficient. At sites which carry a light load, the
more advanced, CPU-demanding, features can be used to build
very sophisticated mail filters. Maildrop deployments have
been reported at sites that support as many as 30,000
mailboxes.
Maildrop mailing list:
http://lists.sourceforge.net/lists/listinfo/courier-maildrop
This version is compiled with support for GDBM database files,
maildir enhancements (folders + quotas) and userdb.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description devel
The %{name}-devel package contains the libraries and header files
that can be useful in developing software that works with or processes
e-mail messages.
%prep
%setup -q
%build
%if 0%{?mandriva_version}
autoreconf
%endif
%configure --enable-maildrop-uid=root \
--enable-maildrop-gid=vchkpw \
--enable-maildirquota \
--with-trashquota \
--with-devel \
--enable-sendmail=/usr/sbin/sendmail \
--disable-authlib \
%if 0%{?mandriva_version}
--disable-shared
%else
--disable-static
%endif
%{__make}
%install
%makeinstall
%{__mkdir} htmldoc
%{__cp} %{buildroot}%{_datadir}/maildrop/html/* htmldoc
%{__rm} -rf %{buildroot}%{_datadir}/maildrop/html
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/maildrop
%{__mkdir_p} %{buildroot}%{_sysconfdir}/mail
%{__install} -m755 %{SOURCE2} %{buildroot}%{_bindir}/subscribeIMAP.sh
%{__install} -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
%{__install} -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}rc
%{__mv} %{buildroot}%{_mandir}/man1/maildirmake.1 %{buildroot}%{_mandir}/man1/maildirmake-maildrop.1
%{__mv} %{buildroot}%{_mandir}/man5/maildir.5 %{buildroot}%{_mandir}/man5/maildir-maildrop.5
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%{_datadir}/%{name}
%attr(755,root,mail) %{_bindir}/%{name}
%attr(755,root,mail) %{_bindir}/lockmail
%{_bindir}/mailbot
%{_bindir}/maildirmake
%{_bindir}/deliverquota
%{_bindir}/reformime
%{_bindir}/reformail
%{_bindir}/makemime
%{_bindir}/makedat
%{_bindir}/makedatprog
%if 0%{?mdkversion}
%else
%{_libdir}/lib*.so.*
%endif
%{_mandir}/man[1578]/*
%doc maildir/README.maildirquota.html maildir/README.maildirquota.txt
%doc COPYING README README.postfix INSTALL NEWS UPGRADE ChangeLog maildroptips.txt
%doc htmldoc/*
%attr(0750, vpopmail, vchkpw) %{_bindir}/subscribeIMAP.sh
%attr(0755, vpopmail, vchkpw) %dir %{_localstatedir}/log/%{name}
%config %attr(0644, root, root) %{_sysconfdir}/logrotate.d/%{name}
%config %attr(0640, vpopmail, vchkpw) %{_sysconfdir}/maildroprc
%files devel
%defattr(0644, root, root)
%{_mandir}/man3/*
%{_includedir}/*
%{_libdir}/lib*.la
%if 0%{?mdkversion}
%{_libdir}/lib*.a
%else
%{_libdir}/lib*.so
%endif
%changelog