Update to 3.5

el9
Leigh Scott 4 years ago
parent 575d56e274
commit 739e7c0cb3

@ -1 +1 @@
SHA512 (x265_3.4.tar.gz) = 576b18711935e7da8433b2170d24ed159eb12ff1a18399360afa1b2132db33b463145c65ed918f667528ee954bbdfb5c69e5480f1c1df801515cefc592f3206e SHA512 (x265_3.5.tar.gz) = 230e683239c3e262096ba96246c6f67229a1625d163f86647a411733bb1cf349685858aee3017bce818bb6992448d0abaa9241615a5b620561ce47ecb164f997

@ -1,18 +1,18 @@
# Use old cmake macro # Use old cmake macro
%global __cmake_in_source_build 1 %global __cmake_in_source_build 1
%global _so_version 192 %global _so_version 199
Summary: H.265/HEVC encoder Summary: H.265/HEVC encoder
Name: x265 Name: x265
Version: 3.4 Version: 3.5
Release: 5%{?dist} Release: 1%{?dist}
URL: http://x265.org/ URL: http://x265.org/
# source/Lib/TLibCommon - BSD # source/Lib/TLibCommon - BSD
# source/Lib/TLibEncoder - BSD # source/Lib/TLibEncoder - BSD
# everything else - GPLv2+ # everything else - GPLv2+
License: GPLv2+ and BSD License: GPLv2+ and BSD
Source0: https://bitbucket.org/multicoreware/x265_git/get/%{version}.tar.gz#/%{name}_%{version}.tar.gz Source0: https://bitbucket.org/multicoreware/%{name}_git/downloads/%{name}_%{version}.tar.gz
# fix building as PIC # fix building as PIC
Patch0: x265-pic.patch Patch0: x265-pic.patch
@ -22,6 +22,7 @@ Patch3: x265-arm-cflags.patch
Patch4: x265-pkgconfig_path_fix.patch Patch4: x265-pkgconfig_path_fix.patch
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: git
BuildRequires: cmake3 BuildRequires: cmake3
%{?el7:BuildRequires: epel-rpm-macros} %{?el7:BuildRequires: epel-rpm-macros}
BuildRequires: nasm BuildRequires: nasm
@ -77,20 +78,28 @@ build() {
-DENABLE_PIC:BOOL=ON \ -DENABLE_PIC:BOOL=ON \
-DENABLE_SHARED=ON \ -DENABLE_SHARED=ON \
-DENABLE_TESTS:BOOL=ON \ -DENABLE_TESTS:BOOL=ON \
-DCMAKE_ASM_NASM_FLAGS=-w-macro-params-legacy \
$* \ $* \
../source ../source
%ninja_build %cmake3_build
} }
# High depth 10/12 bit libraries are supported only on 64 bit. They require # High depth 10/12 bit libraries are supported only on 64 bit. They require
# disabled AltiVec instructions for building on ppc64/ppc64le. # disabled AltiVec instructions for building on ppc64/ppc64le.
%ifarch x86_64 aarch64 ppc64 ppc64le %ifarch x86_64 aarch64 ppc64 ppc64le
mkdir 10bit; pushd 10bit mkdir 10bit; pushd 10bit
build -DENABLE_CLI=OFF -DENABLE_ALTIVEC=OFF -DHIGH_BIT_DEPTH=ON build \
-DENABLE_CLI=OFF \
-DENABLE_ALTIVEC=OFF \
-DHIGH_BIT_DEPTH=ON
popd popd
mkdir 12bit; pushd 12bit mkdir 12bit; pushd 12bit
build -DENABLE_CLI=OFF -DENABLE_ALTIVEC=OFF -DHIGH_BIT_DEPTH=ON -DMAIN12=ON build \
-DENABLE_CLI=OFF \
-DENABLE_ALTIVEC=OFF \
-DHIGH_BIT_DEPTH=ON \
-DMAIN12=ON
popd popd
%endif %endif
@ -103,7 +112,7 @@ popd
for i in 8 10 12; do for i in 8 10 12; do
if [ -d ${i}bit ]; then if [ -d ${i}bit ]; then
pushd ${i}bit pushd ${i}bit
%ninja_install %cmake3_install
# Remove unversioned library, should not be linked to # Remove unversioned library, should not be linked to
rm -f %{buildroot}%{_libdir}/libx265_main${i}.so rm -f %{buildroot}%{_libdir}/libx265_main${i}.so
popd popd
@ -144,6 +153,9 @@ done
%{_libdir}/pkgconfig/x265.pc %{_libdir}/pkgconfig/x265.pc
%changelog %changelog
* Tue Apr 13 2021 Leigh Scott <leigh123linux@gmail.com> - 3.5-1
- Update to 3.5
* Tue Mar 16 2021 Leigh Scott <leigh123linux@gmail.com> - 3.4-5 * Tue Mar 16 2021 Leigh Scott <leigh123linux@gmail.com> - 3.4-5
- Enable HDR10+. - Enable HDR10+.

Loading…
Cancel
Save