0f857b6
%global forgeurl https://github.com/lefcha/imapfilter/
0f857b6
0f857b6
4a94e5f
Name:           imapfilter
cf0f1c1
Version:        2.8.2
cf0f1c1
Release:        1%{?dist}
4a94e5f
Summary:        A flexible client side mail filtering utility for IMAP servers
4a94e5f
0f857b6
%forgemeta
4a94e5f
Group:          Applications/Internet
4a94e5f
License:        MIT
aa49722
URL:            %forgeurl
aa49722
Source0:        %forgesource
0f857b6
# Fix paths for MANDIR, SSLCAFILE and keep existing CFLAGS
a409c4b
Patch0:         imapfilter-makefile-fix.patch
4a94e5f
0f857b6
BuildRequires:  gcc, make
0f857b6
BuildRequires:  openssl-devel
0f857b6
BuildRequires:  lua-devel
0f857b6
BuildRequires:  pcre2-devel
0f857b6
4a94e5f
4a94e5f
%description
4a94e5f
IMAPFilter is a mail filtering utility. It connects to remote mail servers
4a94e5f
using the Internet Message Access Protocol (IMAP), sends searching queries
4a94e5f
to the server and processes mailboxes based on the results. It can be used
4a94e5f
to delete, copy, move, flag, etc. messages residing in mailboxes at the
4a94e5f
same or different mail servers. The 4rev1 and 4 versions of the IMAP
4a94e5f
protocol are supported.
4a94e5f
4a94e5f
4a94e5f
%prep
aa49722
%forgeautosetup -p1
4a94e5f
0f857b6
4a94e5f
%build
David Sommerseth a095bb4
# imapfilter does not have any autotools based ./configure - just a plain Makefile
a409c4b
CFLAGS=$RPM_OPT_FLAGS make PREFIX=%{_prefix} %{?_smp_mflags}
4a94e5f
4a94e5f
4a94e5f
%install
4a94e5f
rm -rf $RPM_BUILD_ROOT
a409c4b
make install PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT
4a94e5f
4a94e5f
4a94e5f
%files
26f5356
%doc README AUTHORS NEWS
26f5356
%license LICENSE
4a94e5f
%{_bindir}/imapfilter
4a94e5f
%{_datadir}/imapfilter/
4a94e5f
%{_mandir}/man1/imapfilter.1.gz
4a94e5f
%{_mandir}/man5/imapfilter_config.5.gz
4a94e5f
4a94e5f
4a94e5f
%changelog
cf0f1c1
* Thu Jan 04 2024 Sandro <devel@penguinpee.nl> - 2.8.2-1
cf0f1c1
- Update to 2.8.2
cf0f1c1
d9ddfbc
* Sun Oct 29 2023 Sandro <devel@penguinpee.nl> - 2.8.1-4
d9ddfbc
- Add Packit config
d9ddfbc
d9ddfbc
* Sun Oct 29 2023 Sandro <devel@penguinpee.nl> - 2.8.1-3
d9ddfbc
- Fix doc files
d9ddfbc
d9ddfbc
* Sun Oct 29 2023 Sandro <devel@penguinpee.nl> - 2.8.1-2
d9ddfbc
- Use forge macros consistently
d9ddfbc
0f857b6
* Sun Jul 02 2023 Sandro <devel@penguinpee.nl> - 2.8.1-1
0f857b6
- Update to 2.8.1 (RHBZ#2079180)
0f857b6
Andrea Veri bbf2728
* Thu Nov 14 2019 Andrea Veri <averi@fedoraproject.org> - 2.6.15-1
Andrea Veri bbf2728
- New upstream release. (Fixes CVE-2016-10937)
Andrea Veri bbf2728
Andrea Veri 04acfa5
* Mon May 27 2019 Andrea Veri <averi@fedoraproject.org> - 2.6.12-1
Andrea Veri 04acfa5
- New upstream release. (This release introduces SNI support, fixes
Andrea Veri 04acfa5
  RH BZ #1713160)
Andrea Veri 04acfa5
a409c4b
* Thu Aug 03 2017 Matěj Cepl <mcepl@redhat.com> - 2.6.10-2
a409c4b
- add PREFIX to %%build make as well
a409c4b
a409c4b
* Thu Aug 03 2017 Matěj Cepl <mcepl@redhat.com> - 2.6.10-1
a409c4b
- Update to the latest upstream release.
a409c4b
ecb3f39
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.6-8
ecb3f39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ecb3f39
024af6e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.6-7
024af6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
024af6e
fcd614b
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.6-6
fcd614b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fcd614b
0a455ad
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.6-5
0a455ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0a455ad
6178603
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.6-4
6178603
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6178603
dae3de7
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.6-3
dae3de7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
dae3de7
d3f2b83
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.6-2
d3f2b83
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d3f2b83
Andrea Veri 01340c2
* Tue Dec 24 2013 Andrea Veri <averi@fedoraproject.org> - 2.5.6-1
Andrea Veri 01340c2
- New upstream release.
Andrea Veri 01340c2
- Make use of the patch file available on the git repository itself,
Andrea Veri 01340c2
  update Patch0 accordingly.
Andrea Veri 01340c2
e483f47
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.5-2
e483f47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e483f47
David Sommerseth c211c49
* Tue Jul  2 2013 David Sommerseth <davids@redhat.com> - 2.5.5-1
David Sommerseth c211c49
- Updated to upstream imapfilter-2.5.5
David Sommerseth c211c49
- Updated download URL and generally cleaned up spec file
David Sommerseth c211c49
328c017
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-3
328c017
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
328c017
a3de70a
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-2
a3de70a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a3de70a
David Sommerseth a095bb4
* Mon Feb 27 2012 David Sommerseth <davids@redhat.com> - 2.5-1
David Sommerseth a095bb4
- Updated to latest upstream version
David Sommerseth a095bb4
- Replaced the configure patch with a makefile patch, as upstream has changed their building methods
David Sommerseth a095bb4
bcf64db
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 2.2.2-4
bcf64db
- Rebuild against PCRE 8.30
bcf64db
9e19220
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-3
9e19220
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9e19220
30e6ade
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.2-2
30e6ade
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
30e6ade
c3f58be
* Thu Feb 25 2010 David Sommerseth <davids@redhat.com> - 2.2.2-1
c3f58be
- Updated to latest upstream version
c3f58be
4a94e5f
* Tue Oct 13 2009 David Sommerseth <davids@redhat.com> - 2.0.11-3
4a94e5f
- Apply patch overriding -O optimisation and removed not needed install lines
4a94e5f
4a94e5f
* Thu Sep 24 2009 David Sommerseth <davids@redhat.com> - 2.0.11-2
4a94e5f
- Use $RPM_OPT_FLAGS as CFLAGS
4a94e5f
4a94e5f
* Wed Sep 23 2009 David Sommerseth <davids@redhat.com> - 2.0.11-1
4a94e5f
- Updated to imapfilter-2.0.11 and more clean up in spec rules
4a94e5f
4a94e5f
* Mon Aug 10 2009 David Sommerseth <davids@redhat.com> - 2.0.10-2
4a94e5f
- Cleaned up the spec rules
4a94e5f
4a94e5f
* Thu Aug  6 2009 David Sommerseth <davids@redhat.com> - 2.0.10-1
4a94e5f
- First cut at spec file for imapfilter
4a94e5f