f8f5c4a
Name:           imapfilter
468c577
Version:        2.2.2
468c577
Release:        1%{?dist}
f8f5c4a
Summary:        A flexible client side mail filtering utility for IMAP servers
f8f5c4a
f8f5c4a
Group:          Applications/Internet
f8f5c4a
License:        MIT
f8f5c4a
URL:            http://imapfilter.hellug.gr/
f8f5c4a
Source0:        http://imapfilter.hellug.gr/source/imapfilter-%{version}.tar.bz2
f8f5c4a
Patch0:         http://people.redhat.com/~dsommers/imapfilter/imapfilter-configure.patch
f8f5c4a
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f8f5c4a
f8f5c4a
BuildRequires:  openssl-devel lua-devel pcre-devel
f8f5c4a
f8f5c4a
%description
f8f5c4a
IMAPFilter is a mail filtering utility. It connects to remote mail servers
f8f5c4a
using the Internet Message Access Protocol (IMAP), sends searching queries
f8f5c4a
to the server and processes mailboxes based on the results. It can be used
f8f5c4a
to delete, copy, move, flag, etc. messages residing in mailboxes at the
f8f5c4a
same or different mail servers. The 4rev1 and 4 versions of the IMAP
f8f5c4a
protocol are supported.
f8f5c4a
f8f5c4a
f8f5c4a
%prep
f8f5c4a
%setup -q
f8f5c4a
%patch0 -p1
f8f5c4a
f8f5c4a
%build
f8f5c4a
# As the ./configure script in imapfilter is not autotools based, other arguments need to
f8f5c4a
# be used.  This will cause rpmlint configure-without-libdir-spec warnings on the spec file
f8f5c4a
# and the src.rpm.
f8f5c4a
CFLAGS=$RPM_OPT_FLAGS ./configure -p %{_prefix} -b %{_bindir} -s %{_datadir}/imapfilter -m %{_mandir}
f8f5c4a
make %{?_smp_mflags}
f8f5c4a
f8f5c4a
f8f5c4a
%install
f8f5c4a
rm -rf $RPM_BUILD_ROOT
f8f5c4a
make install DESTDIR=$RPM_BUILD_ROOT
f8f5c4a
f8f5c4a
f8f5c4a
%clean
f8f5c4a
rm -rf $RPM_BUILD_ROOT
f8f5c4a
f8f5c4a
f8f5c4a
%files
f8f5c4a
%defattr(-,root,root,-)
f8f5c4a
%doc README LICENSE
f8f5c4a
%{_bindir}/imapfilter
f8f5c4a
%{_datadir}/imapfilter/
f8f5c4a
%{_mandir}/man1/imapfilter.1.gz
f8f5c4a
%{_mandir}/man5/imapfilter_config.5.gz
f8f5c4a
f8f5c4a
f8f5c4a
%changelog
468c577
* Thu Feb 25 2010 David Sommerseth <davids@redhat.com> - 2.2.2-1
468c577
- Updated to latest upstream version
468c577
f8f5c4a
* Tue Oct 13 2009 David Sommerseth <davids@redhat.com> - 2.0.11-3
f8f5c4a
- Apply patch overriding -O optimisation and removed not needed install lines
f8f5c4a
f8f5c4a
* Thu Sep 24 2009 David Sommerseth <davids@redhat.com> - 2.0.11-2
f8f5c4a
- Use $RPM_OPT_FLAGS as CFLAGS
f8f5c4a
f8f5c4a
* Wed Sep 23 2009 David Sommerseth <davids@redhat.com> - 2.0.11-1
f8f5c4a
- Updated to imapfilter-2.0.11 and more clean up in spec rules
f8f5c4a
f8f5c4a
* Mon Aug 10 2009 David Sommerseth <davids@redhat.com> - 2.0.10-2
f8f5c4a
- Cleaned up the spec rules
f8f5c4a
f8f5c4a
* Thu Aug  6 2009 David Sommerseth <davids@redhat.com> - 2.0.10-1
f8f5c4a
- First cut at spec file for imapfilter
f8f5c4a