[packages/perl-Text-BibTeX] - added libdir patch to fix libdir (mainly on x32); release 2

qboosh qboosh at pld-linux.org
Sun Jun 2 11:24:41 CEST 2019


commit 9cff03b1a91e1592843315729e8f83e0f2262561
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Jun 2 11:25:34 2019 +0200

    - added libdir patch to fix libdir (mainly on x32); release 2

 perl-Text-BibTeX-libdir.patch | 14 ++++++++++++++
 perl-Text-BibTeX.spec         |  5 ++++-
 2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/perl-Text-BibTeX.spec b/perl-Text-BibTeX.spec
index 69a9fe6..175826d 100644
--- a/perl-Text-BibTeX.spec
+++ b/perl-Text-BibTeX.spec
@@ -9,13 +9,14 @@ Summary:	Text::BibTeX - Perl library for reading, parsing and processing BibTeX
 Summary(pl.UTF-8):	Text::BibTeX - biblioteka Perla do odczytu, analizy i przetwarzania plików BibTeXa
 Name:		perl-Text-BibTeX
 Version:	0.88
-Release:	1
+Release:	2
 # same as perl
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	361aad5cf400764e35d1ade3b609bb60
 Patch0:		%{name}-mansect.patch
+Patch1:		%{name}-libdir.patch
 URL:		http://www.gerg.ca/software/btOOL/
 BuildRequires:	perl-Capture-Tiny >= 0.06
 BuildRequires:	perl-Config-AutoConf >= 0.16
@@ -78,8 +79,10 @@ Pliki nagłówkowe biblioteki btparse.
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
+LIBDIR=%{_libdir} \
 %{__perl} Build.PL \
 	--config cc="%{__cc}" \
 	--config optimize="%{rpmcflags}" \
diff --git a/perl-Text-BibTeX-libdir.patch b/perl-Text-BibTeX-libdir.patch
new file mode 100644
index 0000000..cdf8db2
--- /dev/null
+++ b/perl-Text-BibTeX-libdir.patch
@@ -0,0 +1,14 @@
+--- Text-BibTeX-0.88/Build.PL.orig	2019-04-29 17:02:41.000000000 +0200
++++ Text-BibTeX-0.88/Build.PL	2019-06-02 11:10:32.060438085 +0200
+@@ -88,7 +88,10 @@
+     }
+ }
+ else {
+-    if ( $Config{archname} =~ /^x86_64|^ppc64|^s390x|^aarch64|^riscv64/ ) {
++    if (exists $ENV{LIBDIR}) {
++        $libdir = $ENV{LIBDIR}
++    }
++    elsif ( $Config{archname} =~ /^x86_64|^ppc64|^s390x|^aarch64|^riscv64/ ) {
+         $libdir =~ s/\bbin\b/lib64/;
+         if ( !-d $libdir ) {
+             my $test = $libdir;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Text-BibTeX.git/commitdiff/9cff03b1a91e1592843315729e8f83e0f2262561



More information about the pld-cvs-commit mailing list