From 8c135c8a4cb84fd31a98372ab9709cfd14e93652 Mon Sep 17 00:00:00 2001 From: zhangshaoning Date: Tue, 25 Feb 2025 16:53:35 +0800 Subject: [PATCH] Add sw_64 and mips64 support --- ...-BibTeX-add-sw_64-and-mips64-support.patch | 25 +++++++++++++++++++ perl-Text-BibTeX.spec | 7 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 perl-Text-BibTeX-add-sw_64-and-mips64-support.patch diff --git a/perl-Text-BibTeX-add-sw_64-and-mips64-support.patch b/perl-Text-BibTeX-add-sw_64-and-mips64-support.patch new file mode 100644 index 0000000..bc706fc --- /dev/null +++ b/perl-Text-BibTeX-add-sw_64-and-mips64-support.patch @@ -0,0 +1,25 @@ +From 3d11627bd5a07560c878eddbdb18d3cff26c8517 Mon Sep 17 00:00:00 2001 +From: maqi +Date: Wed, 11 Dec 2024 18:11:45 +0800 +Subject: [PATCH] add sw_64 and mips64 support + +--- + Build.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Build.PL b/Build.PL +index 7ff1928..7d8f487 100644 +--- a/Build.PL ++++ b/Build.PL +@@ -88,7 +88,7 @@ if ( $^O =~ /mswin32/i ) { + } + } + else { +- if ( $Config{archname} =~ /^x86_64|^ppc64|^s390x|^aarch64|^riscv64|^loongarch64/ ) { ++ if ( $Config{archname} =~ /^x86_64|^ppc64|^s390x|^aarch64|^riscv64|^loongarch64|^mips64|^sw_64/ ) { + $libdir =~ s/\bbin\b/lib64/; + if ( !-d $libdir ) { + my $test = $libdir; +-- +2.39.3 + diff --git a/perl-Text-BibTeX.spec b/perl-Text-BibTeX.spec index 732816c..faeb75e 100644 --- a/perl-Text-BibTeX.spec +++ b/perl-Text-BibTeX.spec @@ -1,11 +1,12 @@ Name: perl-Text-BibTeX Version: 0.88 -Release: 2 +Release: 3 Summary: Interface to read and parse BibTeX files License: GPL+ or Artistic URL: https://metacpan.org/release/Text-BibTeX Source0: https://cpan.metacpan.org/authors/id/A/AM/AMBS/Text-BibTeX-%{version}.tar.gz Patch1: add-loongarch64-support.patch +Patch2: perl-Text-BibTeX-add-sw_64-and-mips64-support.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} %patch1 -p1 +%patch2 -p1 chmod a-x scripts/* examples/* %build @@ -80,6 +82,9 @@ chrpath -d $RPM_BUILD_ROOT%{_bindir}/* %{_includedir}/btparse.h %changelog +* Tue Feb 25 2025 zhangshaoning - 0.88-3 +- Add sw_64 support + * Tue May 14 2024 shaojiansong - 0.88-2 - Add loongarch64 support