!20 [sync] PR-19: fix missing patch when get src package from x86 architecture

From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2022-11-29 07:49:34 +00:00 committed by Gitee
commit eb503dd1e6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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,8 +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
%build
@ -83,6 +84,9 @@ make check
%{_mandir}/man1/*
%changelog
* Tue Nov 29 2022 Ge Wang <wangge20@h-partners.com> - 8.4.2-3
- fix missing patch when get src package from x86 architecture
* Wed Dec 16 2019 catastrowings <jianghuhao1994@163.com> - 8.4.2-2
- fix build fail