Browse Source

spamassassin-3.4.5-1

Tomohiro "Tomo-p" KATO 3 years ago
parent
commit
03aadedf19
1 changed files with 26 additions and 13 deletions
  1. 26 13
      s/spamassassin/spamassassin-vl.spec

+ 26 - 13
s/spamassassin/spamassassin-vl.spec

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