4a94e5
Name:           imapfilter
David Sommerseth a095bb
Version:        2.5
328c01
Release:        3%{?dist}
4a94e5
Summary:        A flexible client side mail filtering utility for IMAP servers
4a94e5
4a94e5
Group:          Applications/Internet
4a94e5
License:        MIT
4a94e5
URL:            http://imapfilter.hellug.gr/
David Sommerseth a095bb
Source0:        https://github.com/downloads/lefcha/imapfilter/imapfilter-%{version}.tar.gz
David Sommerseth a095bb
Patch0:         http://people.redhat.com/~dsommers/imapfilter/imapfilter-makefile-fix.patch
4a94e5
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4a94e5
4a94e5
BuildRequires:  openssl-devel lua-devel pcre-devel
4a94e5
4a94e5
%description
4a94e5
IMAPFilter is a mail filtering utility. It connects to remote mail servers
4a94e5
using the Internet Message Access Protocol (IMAP), sends searching queries
4a94e5
to the server and processes mailboxes based on the results. It can be used
4a94e5
to delete, copy, move, flag, etc. messages residing in mailboxes at the
4a94e5
same or different mail servers. The 4rev1 and 4 versions of the IMAP
4a94e5
protocol are supported.
4a94e5
4a94e5
4a94e5
%prep
4a94e5
%setup -q
David Sommerseth a095bb
%patch0
4a94e5
4a94e5
%build
David Sommerseth a095bb
# imapfilter does not have any autotools based ./configure - just a plain Makefile
David Sommerseth a095bb
CFLAGS=$RPM_OPT_FLAGS make %{?_smp_mflags}
4a94e5
4a94e5
4a94e5
%install
4a94e5
rm -rf $RPM_BUILD_ROOT
4a94e5
make install DESTDIR=$RPM_BUILD_ROOT
4a94e5
4a94e5
4a94e5
%clean
4a94e5
rm -rf $RPM_BUILD_ROOT
4a94e5
4a94e5
4a94e5
%files
4a94e5
%defattr(-,root,root,-)
4a94e5
%doc README LICENSE
4a94e5
%{_bindir}/imapfilter
4a94e5
%{_datadir}/imapfilter/
4a94e5
%{_mandir}/man1/imapfilter.1.gz
4a94e5
%{_mandir}/man5/imapfilter_config.5.gz
4a94e5
4a94e5
4a94e5
%changelog
328c01
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-3
328c01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
328c01
a3de70
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-2
a3de70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a3de70
David Sommerseth a095bb
* Mon Feb 27 2012 David Sommerseth <davids@redhat.com> - 2.5-1
David Sommerseth a095bb
- Updated to latest upstream version
David Sommerseth a095bb
- Replaced the configure patch with a makefile patch, as upstream has changed their building methods
David Sommerseth a095bb
bcf64d
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 2.2.2-4
bcf64d
- Rebuild against PCRE 8.30
bcf64d
9e1922
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-3
9e1922
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9e1922
30e6ad
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-2
30e6ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
30e6ad
c3f58b
* Thu Feb 25 2010 David Sommerseth <davids@redhat.com> - 2.2.2-1
c3f58b
- Updated to latest upstream version
c3f58b
4a94e5
* Tue Oct 13 2009 David Sommerseth <davids@redhat.com> - 2.0.11-3
4a94e5
- Apply patch overriding -O optimisation and removed not needed install lines
4a94e5
4a94e5
* Thu Sep 24 2009 David Sommerseth <davids@redhat.com> - 2.0.11-2
4a94e5
- Use $RPM_OPT_FLAGS as CFLAGS
4a94e5
4a94e5
* Wed Sep 23 2009 David Sommerseth <davids@redhat.com> - 2.0.11-1
4a94e5
- Updated to imapfilter-2.0.11 and more clean up in spec rules
4a94e5
4a94e5
* Mon Aug 10 2009 David Sommerseth <davids@redhat.com> - 2.0.10-2
4a94e5
- Cleaned up the spec rules
4a94e5
4a94e5
* Thu Aug  6 2009 David Sommerseth <davids@redhat.com> - 2.0.10-1
4a94e5
- First cut at spec file for imapfilter
4a94e5