Add loongarch64 support
This commit is contained in:
parent
32c0218765
commit
30b2609981
12
add-loongarch64-support.patch
Normal file
12
add-loongarch64-support.patch
Normal 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;
|
||||||
@ -1,10 +1,11 @@
|
|||||||
Name: perl-Text-BibTeX
|
Name: perl-Text-BibTeX
|
||||||
Version: 0.88
|
Version: 0.88
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Interface to read and parse BibTeX files
|
Summary: Interface to read and parse BibTeX files
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/Text-BibTeX
|
URL: https://metacpan.org/release/Text-BibTeX
|
||||||
Source0: https://cpan.metacpan.org/authors/id/A/AM/AMBS/Text-BibTeX-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/A/AM/AMBS/Text-BibTeX-%{version}.tar.gz
|
||||||
|
Patch1: add-loongarch64-support.patch
|
||||||
BuildRequires: chrpath
|
BuildRequires: chrpath
|
||||||
BuildRequires: coreutils
|
BuildRequires: coreutils
|
||||||
BuildRequires: findutils
|
BuildRequires: findutils
|
||||||
@ -51,6 +52,7 @@ entries, as well as other miscellaneous functions.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Text-BibTeX-%{version}
|
%setup -q -n Text-BibTeX-%{version}
|
||||||
|
%patch1 -p1
|
||||||
chmod a-x scripts/* examples/*
|
chmod a-x scripts/* examples/*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -78,5 +80,8 @@ chrpath -d $RPM_BUILD_ROOT%{_bindir}/*
|
|||||||
%{_includedir}/btparse.h
|
%{_includedir}/btparse.h
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Jun 30 2022 misaka00251 <misaka00251@misakanet.cn> - 0.88-1
|
||||||
- Init package (Thanks to fedora team)
|
- Init package (Thanks to fedora team)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user