File fdm.spec of Package fdm
#
# spec file for package fdm
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: fdm
Version: 2.0
Release: 0
Summary: Mail Fetching, Filtering, And Delivery Program
License: ISC
Group: Productivity/Networking/Email/Utilities
URL: https://github.com/nicm/fdm
Source: https://github.com/nicm/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: libtool
BuildRequires: libopenssl-devel
BuildRequires: libtdb-devel
BuildRequires: make
BuildRequires: openssl
BuildRequires: pkgconfig(zlib)
%description
Fetch and deliver mail is a simple, lightweight replacement for mail fetching,
filtering, and delivery programs such as fetchmail and procmail. It can
fetch using POP3, POP3S, IMAP, IMAPS, or stdin, and deliver to a pipe, file,
maildir, mbox, or SMTP server, based on a set of regexps. It can be used
for both single user and multiuser setups, and is designed with privilege
separation when running as root.
%prep
%autosetup
%build
autoreconf -ifs
%configure
%make_build PREFIX=%{_prefix}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install PREFIX="%{_prefix}"
install -Dm0755 fdm-sanitize %{buildroot}%{_sbindir}/fdm-sanitize
%files
%doc README
%{_bindir}/fdm
%{_sbindir}/fdm-sanitize
%{_mandir}/man1/fdm.1%{?ext_man}
%{_mandir}/man5/fdm.conf.5%{?ext_man}
%changelog