install perl library [release 2.13.0-2mamba;Thu Mar 09 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 20:22:16 +01:00
parent 9270d397a5
commit 596d90be67

View File

@ -2,7 +2,7 @@
%define vscan_gid 65416 %define vscan_gid 65416
Name: amavisd-new Name: amavisd-new
Version: 2.12.2 Version: 2.13.0
Release: 2mamba Release: 2mamba
Summary: An interface between mailer (MTA) and content checkers: virus scanners, and/or SpamAssassin Summary: An interface between mailer (MTA) and content checkers: virus scanners, and/or SpamAssassin
Group: System/Servers Group: System/Servers
@ -11,18 +11,27 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.ijs.si/software/amavisd/ URL: https://www.ijs.si/software/amavisd/
Source: https://gitlab.com/amavis/amavis/-/archive/v%{version}/amavis-v%{version}.tar.bz2 Source: https://gitlab.com/amavis/amavis/-/archive/v%{version}/amavis-v%{version}.tar.bz2
#Source: http://www.ijs.si/software/amavisd/amavisd-new-%{version}.tar.xz
Source1: amavisd-new-service Source1: amavisd-new-service
Patch0: amavisd-new-2.8.1-initscript-no-deprecated-network.patch Patch0: amavisd-new-2.8.1-initscript-no-deprecated-network.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libperl BuildRequires: libperl
BuildRequires: perl-Archive-Zip
BuildRequires: perl-BerkeleyDB
BuildRequires: perl-Crypt-OpenSSL-RSA
BuildRequires: perl-DBI
BuildRequires: perl-IO-Socket-SSL BuildRequires: perl-IO-Socket-SSL
BuildRequires: perl-JSON
BuildRequires: perl-MIME-Tools BuildRequires: perl-MIME-Tools
BuildRequires: perl-Net-LibIDN BuildRequires: perl-Mail-DKIM
BuildRequires: perl-Net-DNS
BuildRequires: perl-Net-LDAP
BuildRequires: perl-Net-Server BuildRequires: perl-Net-Server
BuildRequires: perl-NetSNMP
BuildRequires: perl-Unix-Syslog BuildRequires: perl-Unix-Syslog
BuildRequires: perl-devel BuildRequires: perl-devel
BuildRequires: perl-libwww
BuildRequires: spamassassin
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
Requires(pre): postfix Requires(pre): postfix
Requires(pre): clamd Requires(pre): clamd
@ -30,10 +39,7 @@ Requires: perl-BerkeleyDB
Requires: SpamAssassin Requires: SpamAssassin
Requires: perl-Convert-TNEF Requires: perl-Convert-TNEF
Requires: perl-Convert-UUlib Requires: perl-Convert-UUlib
Requires: perl-Mail-DKIM
Requires: perl-Mail-Tools Requires: perl-Mail-Tools
Requires: perl-MIME-tools
Requires: perl-Archive-Zip
Requires: perl-File-LibMagic Requires: perl-File-LibMagic
Requires: clamav Requires: clamav
Requires: clamd Requires: clamd
@ -67,12 +73,16 @@ amavisd-new is a high-performance interface between mailer (MTA) and content che
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d %{buildroot}/var/amavis/{tmp,var,db,home} install -d %{buildroot}/var/amavis/{tmp,var,db,home}
install -D -m0755 amavisd %{buildroot}%{_sbindir}/amavisd install -d %{buildroot}%{_sbindir}
#install -D -m0755 amavisd_init.sh %{buildroot}%{_initrddir}/amavisd cp bin/amavis* %{buildroot}%{_sbindir}/
install -D -m0640 amavisd.conf %{buildroot}%{_sysconfdir}/amavisd.conf cp contrib/p0f-analyzer.pl %{buildroot}%{_sbindir}/p0f-analyzer.pl
install -D -m0640 conf/amavisd.conf %{buildroot}%{_sysconfdir}/amavisd.conf
install -d %{buildroot}/var/virusmails install -d %{buildroot}/var/virusmails
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/amavisd.service install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/amavisd.service
install -d %{buildroot}%{perl_sitelib}
cp -a lib/* %{buildroot}%{perl_sitelib}/
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -142,13 +152,26 @@ fi
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%attr(0640,root,vscan) %config(noreplace) %{_sysconfdir}/amavisd.conf %attr(0640,root,vscan) %config(noreplace) %{_sysconfdir}/amavisd.conf
%{_sbindir}/amavisd %{_sbindir}/amavisd*
%{_sbindir}/amavis-mc
%{_sbindir}/amavis-services
%{_sbindir}/p0f-analyzer.pl
%{_unitdir}/amavisd.service %{_unitdir}/amavisd.service
%attr(0750,vscan,vscan) /var/virusmails %dir %{perl_sitelib}/Amavis
%{perl_sitelib}/Amavis/*
%{perl_sitelib}/Amavis.pm
%{perl_sitelib}/Mail/SpamAssassin/Logger/Amavislog.pm
%attr(0750,vscan,vscan) /var/virusmails
%attr(0750,vscan,vscan) /var/amavis %attr(0750,vscan,vscan) /var/amavis
%doc LICENSE TODO %doc LICENSE
%changelog %changelog
* Thu Mar 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.13.0-2mamba
- install perl library
* Tue Mar 07 2023 Automatic Build System <autodist@mambasoft.it> 2.13.0-1mamba
- automatic version update by autodist
* Sat Jan 28 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.2-2mamba * Sat Jan 28 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.12.2-2mamba
- fix re-adding duplicated configuration blocks in post script - fix re-adding duplicated configuration blocks in post script