Add loongarch64 support

This commit is contained in:
shaojiansong 2024-05-14 11:36:23 +08:00
parent 32c0218765
commit 30b2609981
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -Naur Text-BibTeX-0.88/Build.PL Text-BibTeX-0.88-change/Build.PL
--- Text-BibTeX-0.88/Build.PL 2019-04-29 23:02:41.000000000 +0800
+++ Text-BibTeX-0.88-change/Build.PL 2024-05-14 11:14:00.561149690 +0800
@@ -88,7 +88,7 @@
}
}
else {
- if ( $Config{archname} =~ /^x86_64|^ppc64|^s390x|^aarch64|^riscv64/ ) {
+ if ( $Config{archname} =~ /^x86_64|^ppc64|^s390x|^aarch64|^riscv64|^loongarch64/ ) {
$libdir =~ s/\bbin\b/lib64/;
if ( !-d $libdir ) {
my $test = $libdir;

View File

@ -1,10 +1,11 @@
Name: perl-Text-BibTeX
Version: 0.88
Release: 1
Release: 2
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
BuildRequires: chrpath
BuildRequires: coreutils
BuildRequires: findutils
@ -51,6 +52,7 @@ entries, as well as other miscellaneous functions.
%prep
%setup -q -n Text-BibTeX-%{version}
%patch1 -p1
chmod a-x scripts/* examples/*
%build
@ -78,5 +80,8 @@ chrpath -d $RPM_BUILD_ROOT%{_bindir}/*
%{_includedir}/btparse.h
%changelog
* Tue May 14 2024 shaojiansong <shaojiansong@kylinos.cn> - 0.88-2
- Add loongarch64 support
* Thu Jun 30 2022 misaka00251 <misaka00251@misakanet.cn> - 0.88-1
- Init package (Thanks to fedora team)