Fix building on Perl without '.' in @INC

This commit is contained in:
Jitka Plesnikova 2017-05-18 13:59:49 +02:00
parent 25e3497801
commit 4b1f75ed10
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up Mail-SpamAssassin-3.4.1/spamc/configure.pl.orig Mail-SpamAssassin-3.4.1/spamc/configure.pl
--- Mail-SpamAssassin-3.4.1/spamc/configure.pl.orig 2017-05-18 13:53:34.340378346 +0200
+++ Mail-SpamAssassin-3.4.1/spamc/configure.pl 2017-05-18 13:52:55.950537948 +0200
@@ -66,7 +66,7 @@ print join(' ', $Config{'perlpath'}, "ve
# Do the same thing as for the preprocessor below.
package version_h;
my $Z = $0;
- local $0 = "version.h.pl";
+ local $0 = "./version.h.pl";
local @ARGV = ();
# Got to check for defined because the script returns shell error level!
unless (defined do $0) {

View File

@ -63,7 +63,7 @@ Summary: Spam filter for email which can be invoked from mail delivery agents
Name: spamassassin
Version: 3.4.1
#Release: 0.8.%{prerev}%{?dist}
Release: 12%{?dist}
Release: 13%{?dist}
License: ASL 2.0
Group: Applications/Internet
URL: http://spamassassin.apache.org/
@ -99,6 +99,7 @@ Patch100: spamassassin-3.4.1-netdns.patch
# Openssl 1.1.x support
# https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7361
Patch101: CRYPTO_malloc.patch
Patch102: spamassassin-3.4.1-Fix-building-on-Perl-without-dot-in-INC.patch
# end of patches
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -183,6 +184,7 @@ To filter spam for all users, add that line to /etc/procmailrc
# Patches 100+ are SVN backports (DO NOT REUSE!)
%patch100 -p1
%patch101 -p1
%patch102 -p1
# end of patches
echo "RHEL=%{rhel} FEDORA=%{fedora}"
@ -359,6 +361,9 @@ exit 0
%endif
%changelog
* Thu May 18 2017 Jitka Plesnikova <jplesnik@redhat.com> - 3.4.1-13
- Fix building on Perl without '.' in @INC
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild