amavisd-milter/amavisd-milter.spec

65 lines
1.5 KiB
RPMSpec
Raw Normal View History

Name: amavisd-milter
Version: 1.7.2
Release: 1mamba
Summary: Milter interface for the amavis spam filter engine
Group: System/Servers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/prehor/amavisd-milter
Source: https://github.com/prehor/amavisd-milter/releases/download/%{version}/amavisd-milter-%{version}.tar.gz
#Source: https://github.com/prehor/amavisd-milter.git/%{version}/amavisd-milter-%{version}.tar.bz2
Source1: amavisd-milter.service
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: libmilter-devel
Requires: amavisd-new
%description
Milter interface for the amavis spam filter engine.
%debug_package
%prep
%setup -q
%build
%configure \
--localstatedir=/var/amavis
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m0755 %{SOURCE1} %{buildroot}%{_unitdir}/amavisd-milter.service
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%preun
%systemd_preun amavisd-milter
:
%post
%systemd_post amavisd-milter
:
%postun
%systemd_postun_with_restart amavisd-milter
:
%files
%defattr(-,root,root)
%{_sbindir}/amavisd-milter
%{_unitdir}/amavisd-milter.service
%{_mandir}/man8/amavisd-milter.8*
%doc LICENSE
%changelog
* Sat Jan 28 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.2-1mamba
- package created using the webbuild interface