From 2ff9ef80853e065a2272b4554713e3976aa52ca7 Mon Sep 17 00:00:00 2001 From: leigh123linux Date: Tue, 27 Feb 2018 16:18:33 +0000 Subject: [PATCH] Update to 2.7 --- .gitignore | 1 + sources | 2 +- x265-pic.patch | 12 ------------ x265-test-shared.patch | 11 ----------- x265.spec | 37 ++++++++++++++++++++----------------- 5 files changed, 22 insertions(+), 41 deletions(-) delete mode 100644 x265-test-shared.patch diff --git a/.gitignore b/.gitignore index 966f6ce..594d208 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ x265_1.6.tar.gz /x265_2.4.tar.gz /x265_2.5.tar.gz /x265_2.6.tar.gz +/x265_2.7.tar.gz diff --git a/sources b/sources index e9dc3a9..7181119 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4d318be1f19b58985432a144bd054572 x265_2.6.tar.gz +b0d7d20da2a418fa4f53a559946ea079 x265_2.7.tar.gz diff --git a/x265-pic.patch b/x265-pic.patch index 65e89fd..e612f44 100644 --- a/x265-pic.patch +++ b/x265-pic.patch @@ -10,15 +10,3 @@ if(NATIVE_BUILD) if(INTEL_CXX) -diff -up x265_1.8/source/test/checkasm-a.asm.pic x265_1.8/source/test/checkasm-a.asm ---- x265_1.8/source/test/checkasm-a.asm.pic 2015-09-22 10:10:07.000000000 +0200 -+++ x265_1.8/source/test/checkasm-a.asm 2015-10-25 23:23:45.041877640 +0100 -@@ -154,7 +154,7 @@ cglobal checkasm_call, 2,15,16,max_args* - mov r9, rax - mov r10, rdx - lea r0, [error_message] -- call puts -+ call puts wrt ..plt - mov r1, [rsp+max_args*8] - mov dword [r1], 0 - mov rdx, r10 diff --git a/x265-test-shared.patch b/x265-test-shared.patch deleted file mode 100644 index eeebb88..0000000 --- a/x265-test-shared.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- ./source/test/CMakeLists.txt.orig 2016-11-08 00:20:30.255328576 +0000 -+++ ./source/test/CMakeLists.txt 2016-11-08 00:16:38.709703855 +0000 -@@ -44,7 +44,7 @@ add_executable(TestBench ${YASM_SRC} - ipfilterharness.cpp ipfilterharness.h - intrapredharness.cpp intrapredharness.h) - --target_link_libraries(TestBench x265-static ${PLATFORM_LIBS}) -+target_link_libraries(TestBench x265-shared ${PLATFORM_LIBS}) - if(LINKER_OPTIONS) - if(EXTRA_LIB) - list(APPEND LINKER_OPTIONS "-L..") diff --git a/x265.spec b/x265.spec index f390ad0..4673eca 100644 --- a/x265.spec +++ b/x265.spec @@ -1,8 +1,8 @@ -%global _so_version 146 +%global _so_version 151 Summary: H.265/HEVC encoder Name: x265 -Version: 2.6 +Version: 2.7 Release: 1%{?dist} URL: http://x265.org/ # source/Lib/TLibCommon - BSD @@ -12,15 +12,14 @@ License: GPLv2+ and BSD Source0: https://bitbucket.org/multicoreware/%{name}/downloads/%{name}_%{version}.tar.gz -# link test binaries with shared library -Patch1: x265-test-shared.patch # fix building as PIC -Patch2: x265-pic.patch -Patch3: x265-high-bit-depth-soname.patch -Patch4: x265-detect_cpu_armhfp.patch +Patch0: x265-pic.patch +Patch1: x265-high-bit-depth-soname.patch +Patch2: x265-detect_cpu_armhfp.patch -BuildRequires: cmake -BuildRequires: yasm +BuildRequires: cmake3 +BuildRequires: nasm +BuildRequires: ninja-build %ifnarch armv7hl armv7hnl s390 s390x BuildRequires: numactl-devel @@ -55,7 +54,7 @@ performance on a wide variety of hardware platforms. This package contains the shared library development files. %prep -%autosetup -p1 -n %{name}_v%{version} +%autosetup -p1 -n %{name}_%{version} %build # High depth libraries (from source/h265.h): @@ -66,14 +65,14 @@ This package contains the shared library development files. # 10bit: libx265_main10.so build() { -%cmake -G "Unix Makefiles" \ +%cmake3 -G "Ninja" \ -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON \ -DCMAKE_SKIP_RPATH:BOOL=YES \ -DENABLE_PIC:BOOL=ON \ -DENABLE_TESTS:BOOL=ON \ $* \ ../source -%make_build +%ninja_build } # High depth 10/12 bit libraries are supported only on 64 bit. They require @@ -97,7 +96,7 @@ popd for i in 8 10 12; do if [ -d ${i}bit ]; then pushd ${i}bit - %make_install + %ninja_install # Remove unversioned library, should not be linked to rm -f %{buildroot}%{_libdir}/libx265_main${i}.so popd @@ -110,14 +109,12 @@ find %{buildroot} -name "*.a" -delete for i in 8 10 12; do if [ -d ${i}bit ]; then pushd ${i}bit - LD_LIBRARY_PATH=%{buildroot}%{_libdir} test/TestBench || : + test/TestBench || : popd fi done -%post libs -p /sbin/ldconfig - -%postun libs -p /sbin/ldconfig +%ldconfig_scriptlets libs %files %{_bindir}/x265 @@ -138,6 +135,12 @@ done %{_libdir}/pkgconfig/x265.pc %changelog +* Tue Feb 27 2018 Leigh Scott - 2.7-1 +- update to 2.7 +- Drop shared test patch as it causes nasm build to fail +- Fix scriptlets +- Use ninja to build + * Sat Dec 30 2017 Sérgio Basto - 2.6-1 - Update x265 to 2.6