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