commit 6868b5eeec5fb9863cb43db48cd561ef69af309b Author: Dan Horák <dan@xxxxxxxx> Date: Sat Dec 13 12:03:45 2014 +0100 - fix build on non-x86 64-bit arches perl-Text-BibTeX-secondary.patch | 12 ++++++++++++ perl-Text-BibTeX.spec | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletions(-) --- diff --git a/perl-Text-BibTeX-secondary.patch b/perl-Text-BibTeX-secondary.patch new file mode 100644 index 0000000..27bc703 --- /dev/null +++ b/perl-Text-BibTeX-secondary.patch @@ -0,0 +1,12 @@ +diff -up Text-BibTeX-0.70/Build.PL.secondary Text-BibTeX-0.70/Build.PL +--- Text-BibTeX-0.70/Build.PL.secondary 2014-12-13 11:46:40.000000000 +0100 ++++ Text-BibTeX-0.70/Build.PL 2014-12-13 11:47:27.000000000 +0100 +@@ -79,7 +79,7 @@ if ($^O =~ /mswin32/i) { + unlink catfile($libdir, $target); + } + } else { +- if ($Config{archname} =~ /^x86_64/) { ++ if ($Config{archname} =~ /^x86_64|^ppc64|^s390x|^aarch64/) { + $libdir =~ s/\bbin\b/lib64/; + if (!-d $libdir) { + my $test = $libdir; diff --git a/perl-Text-BibTeX.spec b/perl-Text-BibTeX.spec index 35e8ecb..1c9af2c 100644 --- a/perl-Text-BibTeX.spec +++ b/perl-Text-BibTeX.spec @@ -1,11 +1,13 @@ Name: perl-Text-BibTeX Version: 0.70 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Interface to read and parse BibTeX files License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Text-BibTeX/ Source0: http://www.cpan.org/authors/id/A/AM/AMBS/Text-BibTeX-%{version}.tar.gz +# fix build on non-x86 64-bit arches +Patch0: perl-Text-BibTeX-secondary.patch BuildRequires: perl BuildRequires: perl(base) BuildRequires: perl(lib) @@ -44,6 +46,7 @@ entries, as well as other miscellaneous functions. %prep %setup -q -n Text-BibTeX-%{version} +%patch0 -p1 -b .secondary sed -ri 's#/usr/local/bin/perl5?#%{__perl}#' scripts/* examples/* chmod a-x scripts/* examples/* @@ -70,6 +73,9 @@ chrpath -d $RPM_BUILD_ROOT%{_bindir}/* %{_libdir}/*.so %changelog +* Sat Dec 13 2014 Dan Horák <dan[at]danny.cz> 0.70-4 +- fix build on non-x86 64-bit arches + * Sat Nov 22 2014 Colin B. Macdonald <cbm@xxxxxxxxx> 0.70-3 - install faq file. - no need to split out btparse (used to be a standalone library but is -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel