[perl-XML-LibXSLT] Do not link against perl extension libraries
Petr Pisar
ppisar at fedoraproject.org
Thu Jan 8 15:48:37 UTC 2015
commit acbcb027501ef72ce51b699aa8b79661546629f7
Author: Petr Písař <ppisar at redhat.com>
Date: Thu Jan 8 16:41:40 2015 +0100
Do not link against perl extension libraries
...not-link-against-perl-extension-libraries.patch | 31 ++++++++++++++++++++
perl-XML-LibXSLT.spec | 10 +++++-
2 files changed, 39 insertions(+), 2 deletions(-)
---
diff --git a/XML-LibXSLT-1.92-Do-not-link-against-perl-extension-libraries.patch b/XML-LibXSLT-1.92-Do-not-link-against-perl-extension-libraries.patch
new file mode 100644
index 0000000..4ad8f1d
--- /dev/null
+++ b/XML-LibXSLT-1.92-Do-not-link-against-perl-extension-libraries.patch
@@ -0,0 +1,31 @@
+From f1b7d486cbb1fb62f0e5c141f3012a38278a90bf Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Thu, 8 Jan 2015 16:37:23 +0100
+Subject: [PATCH] Do not link against perl extension libraries
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+CPAN RT #83028
+
+Signed-off-by: Petr Písař <ppisar at redhat.com>
+---
+ Makefile.PL | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index ce33f36..dd8468f 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -192,7 +192,7 @@ if (have_library($::is_Win32 ? "libexslt" : "exslt")) {
+ $config{DEFINE} .= " -DHAVE_EXSLT"
+ }
+
+-$config{LIBS}.=' '.$Config{libs};
++$config{LIBS}.=' '.$Config{perllibs};
+
+ if ($DEBUG) {
+ print "LIBS: $config{LIBS}\n";
+--
+1.9.3
+
diff --git a/perl-XML-LibXSLT.spec b/perl-XML-LibXSLT.spec
index e3dc6e7..2de259a 100644
--- a/perl-XML-LibXSLT.spec
+++ b/perl-XML-LibXSLT.spec
@@ -1,12 +1,14 @@
Name: perl-XML-LibXSLT
# NOTE: also update perl-XML-LibXML to a compatible version. See below why.
Version: 1.92
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Perl module for interfacing to GNOME's libxslt
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/XML-LibXSLT/
Source0: http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML-LibXSLT-%{version}.tar.gz
+# Do not link against perl extension libraries, CPAN RT#83028
+Patch0: XML-LibXSLT-1.92-Do-not-link-against-perl-extension-libraries.patch
BuildRequires: perl
BuildRequires: perl(Carp)
BuildRequires: perl(Config)
@@ -25,7 +27,7 @@ BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
-BuildRequires: libxslt-devel >= 1.1.28, gdbm-devel, libgcrypt-devel, libgpg-error-devel
+BuildRequires: libxslt-devel >= 1.1.28
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# the package shares code with perl-XML-LibXML, we have to require a compatible version
# see https://bugzilla.redhat.com/show_bug.cgi?id=469480
@@ -46,6 +48,7 @@ that you can find at http://www.xmlsoft.org/XSLT/
%prep
%setup -q -n XML-LibXSLT-%{version}
+%patch0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
@@ -67,6 +70,9 @@ make test
%{_mandir}/man3/*.3*
%changelog
+* Thu Jan 08 2015 Petr Pisar <ppisar at redhat.com> - 1.92-5
+- Do not link against perl extension libraries
+
* Fri Aug 29 2014 Jitka Plesnikova <jplesnik at redhat.com> - 1.92-4
- Perl 5.20 rebuild
More information about the perl-devel
mailing list