diff --git a/add-loongarch64-support.patch b/add-loongarch64-support.patch new file mode 100644 index 0000000..1fc8514 --- /dev/null +++ b/add-loongarch64-support.patch @@ -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; diff --git a/perl-Text-BibTeX.spec b/perl-Text-BibTeX.spec index 6e14dbf..732816c 100644 --- a/perl-Text-BibTeX.spec +++ b/perl-Text-BibTeX.spec @@ -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 - 0.88-2 +- Add loongarch64 support + * Thu Jun 30 2022 misaka00251 - 0.88-1 - Init package (Thanks to fedora team)