Add sw_64 and mips64 support

(cherry picked from commit 8c135c8a4cb84fd31a98372ab9709cfd14e93652)
This commit is contained in:
zhangshaoning 2025-02-25 16:53:35 +08:00 committed by openeuler-sync-bot
parent ec601d96c9
commit 51e2da83ff
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 3d11627bd5a07560c878eddbdb18d3cff26c8517 Mon Sep 17 00:00:00 2001
From: maqi <maqi@uniontech.com>
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

View File

@ -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 <zhangshaoning@uniontech.com> - 0.88-3
- Add sw_64 support
* Tue May 14 2024 shaojiansong <shaojiansong@kylinos.cn> - 0.88-2
- Add loongarch64 support