!4 [sync] PR-2: x264:修复编译失败问题

From: @openeuler-sync-bot 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2023-09-19 02:56:19 +00:00 committed by Gitee
commit e7d8c1b587
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -7,13 +7,17 @@
%global gver .%{gitdate}git%{gitversion}
%global branch stable
%global _with_bootstrap 1
# The marco defination logic as below:
# _with_bootstrap to 1
# ==> set _without_* to 1
# ==> Don't require gpac/zlib/*-devel
%define _with_bootstrap 1
%{?_with_bootstrap:
%global _without_gpac 1
%global _without_libavformat 1
%global _without_libswscale 1
}
%if %{_with_bootstrap}
%define _without_gpac 1
%define _without_libavformat 1
%define _without_libswscale 1
%endif
#Whitelist of arches with dedicated ASM code
%global asmarch x86_64 armv7hl armv7hnl ppc64le aarch64
# list of arches where ASM must be optional
@ -31,7 +35,7 @@
Summary: H264/AVC video streams encoder
Name: x264
Version: 0.%{api}
Release: 12%{?gver}%{?_with_bootstrap:_bootstrap}
Release: 13%{?gver}%{?_with_bootstrap:_bootstrap}
License: GPLv2+
URL: https://www.videolan.org/developers/x264.html
Source0: %{name}-0.%{api}-%{snapshot}.tar.bz2
@ -207,5 +211,8 @@ install -pm644 generic/{AUTHORS,COPYING} %{buildroot}%{_pkgdocdir}/
%endif
%changelog
* Tue Dec 21 2021 - Chenxi Mao <chenxi.mao@suse.com> - 0.157-13
- x264: fix build error
* Fri May 07 2021 weidong <weidong@uniontech.com> - 0.157-12.20190717git34c06d1
- Initial package.