Update to 2.7

el8
leigh123linux 7 years ago
parent fd9b4d23ce
commit 2ff9ef8085

1
.gitignore vendored

@ -5,3 +5,4 @@ x265_1.6.tar.gz
/x265_2.4.tar.gz /x265_2.4.tar.gz
/x265_2.5.tar.gz /x265_2.5.tar.gz
/x265_2.6.tar.gz /x265_2.6.tar.gz
/x265_2.7.tar.gz

@ -1 +1 @@
4d318be1f19b58985432a144bd054572 x265_2.6.tar.gz b0d7d20da2a418fa4f53a559946ea079 x265_2.7.tar.gz

@ -10,15 +10,3 @@
if(NATIVE_BUILD) if(NATIVE_BUILD)
if(INTEL_CXX) 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

@ -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..")

@ -1,8 +1,8 @@
%global _so_version 146 %global _so_version 151
Summary: H.265/HEVC encoder Summary: H.265/HEVC encoder
Name: x265 Name: x265
Version: 2.6 Version: 2.7
Release: 1%{?dist} Release: 1%{?dist}
URL: http://x265.org/ URL: http://x265.org/
# source/Lib/TLibCommon - BSD # source/Lib/TLibCommon - BSD
@ -12,15 +12,14 @@ License: GPLv2+ and BSD
Source0: https://bitbucket.org/multicoreware/%{name}/downloads/%{name}_%{version}.tar.gz 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 # fix building as PIC
Patch2: x265-pic.patch Patch0: x265-pic.patch
Patch3: x265-high-bit-depth-soname.patch Patch1: x265-high-bit-depth-soname.patch
Patch4: x265-detect_cpu_armhfp.patch Patch2: x265-detect_cpu_armhfp.patch
BuildRequires: cmake BuildRequires: cmake3
BuildRequires: yasm BuildRequires: nasm
BuildRequires: ninja-build
%ifnarch armv7hl armv7hnl s390 s390x %ifnarch armv7hl armv7hnl s390 s390x
BuildRequires: numactl-devel BuildRequires: numactl-devel
@ -55,7 +54,7 @@ performance on a wide variety of hardware platforms.
This package contains the shared library development files. This package contains the shared library development files.
%prep %prep
%autosetup -p1 -n %{name}_v%{version} %autosetup -p1 -n %{name}_%{version}
%build %build
# High depth libraries (from source/h265.h): # High depth libraries (from source/h265.h):
@ -66,14 +65,14 @@ This package contains the shared library development files.
# 10bit: libx265_main10.so # 10bit: libx265_main10.so
build() { build() {
%cmake -G "Unix Makefiles" \ %cmake3 -G "Ninja" \
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON \ -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON \
-DCMAKE_SKIP_RPATH:BOOL=YES \ -DCMAKE_SKIP_RPATH:BOOL=YES \
-DENABLE_PIC:BOOL=ON \ -DENABLE_PIC:BOOL=ON \
-DENABLE_TESTS:BOOL=ON \ -DENABLE_TESTS:BOOL=ON \
$* \ $* \
../source ../source
%make_build %ninja_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
@ -97,7 +96,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
%make_install %ninja_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
@ -110,14 +109,12 @@ find %{buildroot} -name "*.a" -delete
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
LD_LIBRARY_PATH=%{buildroot}%{_libdir} test/TestBench || : test/TestBench || :
popd popd
fi fi
done done
%post libs -p /sbin/ldconfig %ldconfig_scriptlets libs
%postun libs -p /sbin/ldconfig
%files %files
%{_bindir}/x265 %{_bindir}/x265
@ -138,6 +135,12 @@ done
%{_libdir}/pkgconfig/x265.pc %{_libdir}/pkgconfig/x265.pc
%changelog %changelog
* Tue Feb 27 2018 Leigh Scott <leigh123linux@googlemail.com> - 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 <sergio@serjux.com> - 2.6-1 * Sat Dec 30 2017 Sérgio Basto <sergio@serjux.com> - 2.6-1
- Update x265 to 2.6 - Update x265 to 2.6

Loading…
Cancel
Save