diff --git a/x264.spec b/x264.spec index c8d7bb1..34dfa8a 100644 --- a/x264.spec +++ b/x264.spec @@ -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 - 0.157-13 +- x264: fix build error + * Fri May 07 2021 weidong - 0.157-12.20190717git34c06d1 - Initial package.