File amavisd-milter.spec of Package amavisd-milter

# spec file for package amavisd-milter
# Copyright (c) 2022 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

Name:           amavisd-milter
Version:        1.7.2
Release:        0
Summary:        Sendmail milter for amavisd-new using the AM.PDP protocol
License:        BSD-3-Clause
Group:          Productivity/Networking/Security
Source1:        %{name}.service
BuildRequires:  sendmail-devel >= 8.12.0
Requires:       amavisd-new
Supplements:    (amavisd-new and sendmail)
Conflicts:      %{name} < %{version}

The amavisd-milter is a sendmail milter (mail filter) for amavisd-new
2.4.3 (and above) and sendmail 8.12 (and above) which use the new AM.PDP

%setup -q

%configure --localstatedir=%{_localstatedir}/spool/amavis

mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
ln -s service %{buildroot}%{_sbindir}/rc%{name}

%service_add_pre %{name}.service

%service_del_preun %{name}.service

%service_add_post %{name}.service

%service_del_postun %{name}.service

%license LICENSE

openSUSE Build Service is sponsored by