- fix build on non-x86 64-bit arches
This commit is contained in:
parent
5a29b59455
commit
6868b5eeec
|
@ -0,0 +1,12 @@
|
|||
diff -up Text-BibTeX-0.70/Build.PL.secondary Text-BibTeX-0.70/Build.PL
|
||||
--- Text-BibTeX-0.70/Build.PL.secondary 2014-12-13 11:46:40.000000000 +0100
|
||||
+++ Text-BibTeX-0.70/Build.PL 2014-12-13 11:47:27.000000000 +0100
|
||||
@@ -79,7 +79,7 @@ if ($^O =~ /mswin32/i) {
|
||||
unlink catfile($libdir, $target);
|
||||
}
|
||||
} else {
|
||||
- if ($Config{archname} =~ /^x86_64/) {
|
||||
+ if ($Config{archname} =~ /^x86_64|^ppc64|^s390x|^aarch64/) {
|
||||
$libdir =~ s/\bbin\b/lib64/;
|
||||
if (!-d $libdir) {
|
||||
my $test = $libdir;
|
|
@ -1,11 +1,13 @@
|
|||
Name: perl-Text-BibTeX
|
||||
Version: 0.70
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Interface to read and parse BibTeX files
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Text-BibTeX/
|
||||
Source0: http://www.cpan.org/authors/id/A/AM/AMBS/Text-BibTeX-%{version}.tar.gz
|
||||
# fix build on non-x86 64-bit arches
|
||||
Patch0: perl-Text-BibTeX-secondary.patch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(lib)
|
||||
|
@ -44,6 +46,7 @@ entries, as well as other miscellaneous functions.
|
|||
|
||||
%prep
|
||||
%setup -q -n Text-BibTeX-%{version}
|
||||
%patch0 -p1 -b .secondary
|
||||
sed -ri 's#/usr/local/bin/perl5?#%{__perl}#' scripts/* examples/*
|
||||
chmod a-x scripts/* examples/*
|
||||
|
||||
|
@ -70,6 +73,9 @@ chrpath -d $RPM_BUILD_ROOT%{_bindir}/*
|
|||
%{_libdir}/*.so
|
||||
|
||||
%changelog
|
||||
* Sat Dec 13 2014 Dan Horák <dan[at]danny.cz> 0.70-4
|
||||
- fix build on non-x86 64-bit arches
|
||||
|
||||
* Sat Nov 22 2014 Colin B. Macdonald <cbm@m.fsf.org> 0.70-3
|
||||
- install faq file.
|
||||
- no need to split out btparse (used to be a standalone library but is
|
||||
|
|
Loading…
Reference in New Issue