|
@@ -2,12 +2,12 @@
|
|
|
%define pdir Mail
|
|
|
%define pnam SpamAssassin
|
|
|
|
|
|
-%define version 3.4.4
|
|
|
-%define real_version 3.4.4
|
|
|
+%define version 3.4.5
|
|
|
+%define real_version 3.4.5
|
|
|
%global saversion 3.004004
|
|
|
%define release 1%{?_dist_release}
|
|
|
%define cfdate 20151119
|
|
|
-%define rules_release r1873061
|
|
|
+%define rules_release r1887800
|
|
|
%define name spamassassin
|
|
|
%define _initrddir /etc/rc.d/init.d
|
|
|
%define initdir %{_initrddir}
|
|
@@ -16,12 +16,15 @@
|
|
|
|
|
|
Summary: a spam filter for email which can be invoked from mail delivery agents
|
|
|
Summary(ja): MDA から起動できる spam email filter
|
|
|
-Group: Applications/Internet
|
|
|
Name: %{name}
|
|
|
Version: %{version}
|
|
|
Release: %{release}
|
|
|
+Group: internet,security
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
License: Apache License 2.0
|
|
|
-URL: http://spamassassin.org/
|
|
|
+URL: https://spamassassin.org/
|
|
|
Source0: https://www-eu.apache.org/dist/spamassassin/source/Mail-SpamAssassin-%{real_version}.tar.bz2
|
|
|
Source1: https://www-eu.apache.org/dist/spamassassin/source/Mail-SpamAssassin-rules-%{real_version}.%{rules_release}.tgz
|
|
|
|
|
@@ -37,7 +40,7 @@ Source11: spamassassin-official.conf
|
|
|
Source12: sought.conf
|
|
|
Patch0: spamassassin-3.1.7_rules.patch
|
|
|
|
|
|
-Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
Requires(pre): /sbin/chkconfig
|
|
|
Requires(pre): perl-Mail-SpamAssassin = %{version}-%{release}
|
|
|
Requires(pre): spamassassin-tools = %{version}-%{release}
|
|
@@ -57,9 +60,6 @@ BuildRequires: perl(Encode::Detect)
|
|
|
BuildRequires: curl
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
-
|
|
|
%description
|
|
|
SpamAssassin provides you with a way to reduce if not completely eliminate
|
|
|
Unsolicited Commercial Email (spam) from your incoming email. It can
|
|
@@ -87,10 +87,11 @@ SpamAssassin は、スパムメッセージを識別するために遺伝的ア
|
|
|
日本語のスパムメール用の local.cf を含めています。
|
|
|
/usr/doc/spamassassin-*/sample-japanese-local.conf を見てください。
|
|
|
|
|
|
+
|
|
|
%package tools
|
|
|
Summary: Miscellaneous tools for SpamAssassin
|
|
|
Summary(ja): SpamAssassin 向けの各種ツール
|
|
|
-Group: Applications/Internet
|
|
|
+Group: internet
|
|
|
Requires(pre): perl-Mail-SpamAssassin = %{version}-%{release}
|
|
|
Requires: perl >= 2:5.26.2
|
|
|
Requires: curl
|
|
@@ -99,9 +100,10 @@ Requires: curl
|
|
|
Miscellaneous tools from various authors, distributed with SpamAssassin.
|
|
|
See /usr/share/doc/SpamAssassin-tools-*/.
|
|
|
|
|
|
+
|
|
|
%package -n perl-Mail-SpamAssassin
|
|
|
Summary: %{pdir}::%{pnam} -- SpamAssassin e-mail filter Perl modules
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: perl >= 2:5.26.2
|
|
|
Requires: perl(Pod::Usage) perl(HTML::Parser)
|
|
|
Requires: perl(Archive::Tar)
|
|
@@ -121,6 +123,10 @@ wide range of heuristic tests on mail headers and body text to identify
|
|
|
mail can then be optionally tagged as spam for later filtering using the
|
|
|
user's own mail user-agent application.
|
|
|
|
|
|
+
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep -q
|
|
|
%setup -q -n %{pdir}-%{pnam}-%{real_version}
|
|
|
# %setup -D -a 1 -T -n %{pdir}-%{pnam}-%{real_version}
|
|
@@ -138,6 +144,7 @@ cp -p %{SOURCE8} .
|
|
|
# change README filename
|
|
|
cp spamd/README spamd/README.spamd
|
|
|
|
|
|
+
|
|
|
%build
|
|
|
CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null
|
|
@@ -145,6 +152,7 @@ CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
|
|
|
%{__make}
|
|
|
%{__make} spamd/libspamc.so
|
|
|
|
|
|
+
|
|
|
%install
|
|
|
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
|
|
|
|
@@ -192,8 +200,8 @@ mkdir -m 0755 %{buildroot}%{_sysconfdir}/mail/spamassassin/channel
|
|
|
install -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/mail/spamassassin/channel.d/
|
|
|
install -m 0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/mail/spamassassin/channel.d/
|
|
|
|
|
|
-%clean
|
|
|
-[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
|
|
+chmod u+w %{buildroot}%{_bindir}/spamc
|
|
|
+
|
|
|
|
|
|
%post
|
|
|
# install
|
|
@@ -248,6 +256,7 @@ if [ $1 = 0 ]; then
|
|
|
/sbin/chkconfig --del spamassassin
|
|
|
fi
|
|
|
|
|
|
+
|
|
|
%files
|
|
|
%defattr(-,root,root)
|
|
|
%license LICENSE
|
|
@@ -282,7 +291,11 @@ fi
|
|
|
%{_datadir}/spamassassin
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
+
|
|
|
%changelog
|
|
|
+* Sat Mar 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.4.5-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Sat Feb 01 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.4.4-1
|
|
|
- new upstream release.
|
|
|
|