[packages/Razor] - fix man5 install on perl 5.22 - rel 11

baggins baggins at pld-linux.org
Sun Dec 27 11:41:32 CET 2015


commit c5a1e3d72279cb855e98c1ecb626ccc3d909ed3a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Dec 27 11:41:12 2015 +0100

    - fix man5 install on perl 5.22
    - rel 11

 Razor.spec      |  4 +++-
 man-build.patch | 14 ++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/Razor.spec b/Razor.spec
index 40fe3cd..194f1c8 100644
--- a/Razor.spec
+++ b/Razor.spec
@@ -8,12 +8,13 @@ Summary:	Collection of files for checking, reporting, and revoking spam
 Summary(pl.UTF-8):	Zbiór plików do sprawdzania, raportowania i odrzucania spamu
 Name:		Razor
 Version:	2.85
-Release:	10
+Release:	11
 License:	Artistic
 Group:		Applications/Mail
 Source0:	http://dl.sourceforge.net/razor/razor-agents-%{version}.tar.bz2
 # Source0-md5:	014d08db40187cb1316482191566b012
 URL:		http://razor.sourceforge.net/
+Patch0:		man-build.patch
 %if %{with autodeps}
 BuildRequires:	perl-Class-Fields
 BuildRequires:	perl-Digest-Nilsimsa
@@ -51,6 +52,7 @@ Moduły Perla dla Razora, klasa Razor2::.
 
 %prep
 %setup -q -n razor-agents-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/man-build.patch b/man-build.patch
new file mode 100644
index 0000000..6128e9e
--- /dev/null
+++ b/man-build.patch
@@ -0,0 +1,14 @@
+--- razor-agents-2.85/Makefile.PL.orig	2007-05-09 00:47:53.000000000 +0200
++++ razor-agents-2.85/Makefile.PL	2015-12-27 11:40:10.000000000 +0100
+@@ -140,9 +140,9 @@
+   my $inherited = $self->SUPER::install(@_);
+ 
+   my $man5 = q{ \\
+-		$(INST_MAN5DIR) $(INSTALLMAN5DIR)};
++		"$(INST_MAN5DIR)" "$(INSTALLMAN5DIR)"};
+ 
+-  $inherited =~ s/(\$\((?:DEST)?INSTALL\w*MAN1DIR\))/$1$man5/gm;
++  $inherited =~ s/(\$\((?:DEST)?INSTALL\w*MAN3DIR\)")/$1$man5/gm;
+ 
+   return $inherited;
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Razor.git/commitdiff/c5a1e3d72279cb855e98c1ecb626ccc3d909ed3a



More information about the pld-cvs-commit mailing list