update libjpeg-turbo.spec.

Signed-off-by: dpd <doupengda@loongson.cn>
(cherry picked from commit 6749ceb6e5ad61494b27a50035035ff2f8a70c22)
This commit is contained in:
dpd 2023-03-01 08:24:59 +00:00 committed by openeuler-sync-bot
parent 437cf8c3ba
commit df01b37787

View File

@ -5,7 +5,9 @@ Summary: MMX/SSE2/SIMD accelerated libjpeg-compatible JPEG codec library
License: IJG
URL: http://sourceforge.net/projects/libjpeg-turbo
Source0: http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-%{version}.tar.gz
%ifarch loongarch64
Patch0001: Add-loongarch64.patch
%endif
BuildRequires: gcc cmake libtool nasm
@ -58,9 +60,6 @@ manipulate JPEG files using the TurboJPEG library.
%prep
%autosetup -n %{name}-%{version} -p1
%ifnarch loongarch64
%patch0001 -R -p1
%endif
%build
%{cmake} -DCMAKE_SKIP_RPATH:BOOL=YES -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES -DENABLE_STATIC:BOOL=NO .