]> git.pld-linux.org Git - packages/perl-Text-BibTeX.git/commitdiff
- added libdir patch to fix libdir (mainly on x32); release 2 auto/th/perl-Text-BibTeX-0.88-2
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 2 Jun 2019 09:25:34 +0000 (11:25 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 2 Jun 2019 09:25:34 +0000 (11:25 +0200)
perl-Text-BibTeX-libdir.patch [new file with mode: 0644]
perl-Text-BibTeX.spec

diff --git a/perl-Text-BibTeX-libdir.patch b/perl-Text-BibTeX-libdir.patch
new file mode 100644 (file)
index 0000000..cdf8db2
--- /dev/null
@@ -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;
index 69a9fe63263a69f24e54930f9b2d5956fbaf56dd..175826d65b94fff7526dcbb79f417b291d229f50 100644 (file)
@@ -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}" \
This page took 0.104605 seconds and 4 git commands to generate.