fix rpmbuild missing patches due to different arch
(cherry picked from commit 2089e7834a641d99193b952b0e20c68a20cf3905)
This commit is contained in:
parent
a86a4111d3
commit
6a9f3dac80
13
qpdf.spec
13
qpdf.spec
@ -1,15 +1,13 @@
|
||||
Name: qpdf
|
||||
Version: 8.4.2
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: A command-line program to transform PDF files
|
||||
License: (Artistic 2.0 or ASL 2.0) and MIT
|
||||
URL: http://qpdf.sourceforge.net/
|
||||
Source0: http://downloads.sourceforge.net/sourceforge/qpdf/qpdf-%{version}.tar.gz
|
||||
|
||||
Patch0000: qpdf-doc.patch
|
||||
%ifarch aarch64
|
||||
Patch0001: qpdf-erase-tests-with-generated-object-stream.patch
|
||||
%endif
|
||||
|
||||
BuildRequires: gcc gcc-c++ zlib-devel libjpeg-turbo-devel pcre-devel
|
||||
BuildRequires: perl-interpreter perl-generators perl(Digest::MD5)
|
||||
@ -42,7 +40,11 @@ Obsoletes: %{name}-doc < %{version}-%{release}
|
||||
This package contains some man help and other files for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
%setup
|
||||
%patch0000 -p1
|
||||
%ifarch aarch64
|
||||
%patch0001 -p1
|
||||
%endif
|
||||
|
||||
sed -i '1c#!/usr/bin/perl' qpdf/fix-qdf
|
||||
|
||||
@ -83,6 +85,9 @@ make check
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Wed Dec 15 2019 caodongxia <caodongxia@huawei.com> - 8.4.2-3
|
||||
- fix rpmbuild missing patches due to different arch
|
||||
|
||||
* Wed Dec 16 2019 catastrowings <jianghuhao1994@163.com> - 8.4.2-2
|
||||
- fix build fail
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user