From b122a23b985808fce5cd6dd244b20152bc76e089 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Fri, 22 Jun 2018 22:31:36 +0200 Subject: [PATCH] Use lib64 for riscv64 Signed-off-by: David Abdurachmanov --- Text-BibTeX-0.85-lib64-riscv64.patch | 13 +++++++++++++ perl-Text-BibTeX.spec | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 Text-BibTeX-0.85-lib64-riscv64.patch diff --git a/Text-BibTeX-0.85-lib64-riscv64.patch b/Text-BibTeX-0.85-lib64-riscv64.patch new file mode 100644 index 0000000..34677d3 --- /dev/null +++ b/Text-BibTeX-0.85-lib64-riscv64.patch @@ -0,0 +1,13 @@ +diff --git a/Build.PL b/Build.PL +index ab9ddba..75ac683 100644 +--- a/Build.PL ++++ b/Build.PL +@@ -86,7 +86,7 @@ if ( $^O =~ /mswin32/i ) { + } + } + else { +- if ( $Config{archname} =~ /^x86_64|^ppc64|^s390x|^aarch64/ ) { ++ if ( $Config{archname} =~ /^x86_64|^ppc64|^s390x|^aarch64|^riscv64/ ) { + $libdir =~ s/\bbin\b/lib64/; + if ( !-d $libdir ) { + my $test = $libdir; diff --git a/perl-Text-BibTeX.spec b/perl-Text-BibTeX.spec index 3b48172..032b4a3 100644 --- a/perl-Text-BibTeX.spec +++ b/perl-Text-BibTeX.spec @@ -1,11 +1,12 @@ Name: perl-Text-BibTeX Version: 0.85 -Release: 2%{?dist} +Release: 2.0.riscv64%{?dist} Summary: Interface to read and parse BibTeX files License: GPL+ or Artistic Group: Development/Libraries URL: https://metacpan.org/release/Text-BibTeX Source0: https://cpan.metacpan.org/authors/id/A/AM/AMBS/Text-BibTeX-%{version}.tar.gz +Patch0: Text-BibTeX-0.85-lib64-riscv64.patch BuildRequires: chrpath BuildRequires: coreutils BuildRequires: findutils @@ -53,6 +54,7 @@ entries, as well as other miscellaneous functions. %prep %setup -q -n Text-BibTeX-%{version} +%patch0 -p1 -b .lib64_riscv64~ chmod a-x scripts/* examples/* %build @@ -78,6 +80,9 @@ chrpath -d $RPM_BUILD_ROOT%{_bindir}/* %{_libdir}/*.so %changelog +* Fri Jun 22 2018 David Abdurachmanov - 0.85-2.0.riscv64 +- Use lib64 for riscv64 + * Fri Feb 09 2018 Fedora Release Engineering - 0.85-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild