a16bd29
%global forgeurl https://github.com/lefcha/imapfilter/
a16bd29
a16bd29
4a94e5f
Name:           imapfilter
Packit d137e20
Version:        2.8.2
1b20297
Release:        %autorelease
4a94e5f
Summary:        A flexible client side mail filtering utility for IMAP servers
a16bd29
%forgemeta
4a94e5f
License:        MIT
d24fd03
URL:            %forgeurl
d24fd03
Source0:        %forgesource
a16bd29
# Fix paths for MANDIR, SSLCAFILE and keep existing CFLAGS
a409c4b
Patch0:         imapfilter-makefile-fix.patch
4a94e5f
a16bd29
BuildRequires:  gcc, make
a16bd29
BuildRequires:  openssl-devel
a16bd29
BuildRequires:  lua-devel
a16bd29
BuildRequires:  pcre2-devel
a16bd29
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
d24fd03
%forgeautosetup -p1
4a94e5f
a16bd29
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
22b9faa
%doc README AUTHORS NEWS
22b9faa
%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
1b20297
%autochangelog