|
|
@ -1,12 +1,12 @@
|
|
|
|
# Use old cmake macro
|
|
|
|
# Use old cmake macro
|
|
|
|
%global __cmake_in_source_build 1
|
|
|
|
%global __cmake_in_source_build 1
|
|
|
|
|
|
|
|
|
|
|
|
%global _so_version 199
|
|
|
|
%global _so_version 209
|
|
|
|
|
|
|
|
|
|
|
|
Summary: H.265/HEVC encoder
|
|
|
|
Summary: H.265/HEVC encoder
|
|
|
|
Name: x265
|
|
|
|
Name: x265
|
|
|
|
Version: 3.5
|
|
|
|
Version: 3.6
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 3%{?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
|
|
|
@ -17,13 +17,13 @@ Source0: https://bitbucket.org/multicoreware/%{name}_git/downloads/%{name}_%{
|
|
|
|
# fix building as PIC
|
|
|
|
# fix building as PIC
|
|
|
|
Patch0: x265-pic.patch
|
|
|
|
Patch0: x265-pic.patch
|
|
|
|
Patch1: x265-high-bit-depth-soname.patch
|
|
|
|
Patch1: x265-high-bit-depth-soname.patch
|
|
|
|
Patch2: x265-detect_cpu_armhfp.patch
|
|
|
|
Patch2: x265-pkgconfig_path_fix.patch
|
|
|
|
Patch3: x265-arm-cflags.patch
|
|
|
|
# https://bitbucket.org/multicoreware/x265_git/pull-requests/10
|
|
|
|
Patch4: x265-pkgconfig_path_fix.patch
|
|
|
|
Patch3: https://bitbucket.org/harlancc/x265_git/commits/8454caf458c5f5d20cce711ff8ea8de55ec1ae50/raw#/x265-sei-length-crash-fix.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: cmake3
|
|
|
|
BuildRequires: cmake
|
|
|
|
%{?el7:BuildRequires: epel-rpm-macros}
|
|
|
|
%{?el7:BuildRequires: epel-rpm-macros}
|
|
|
|
BuildRequires: nasm
|
|
|
|
BuildRequires: nasm
|
|
|
|
BuildRequires: ninja-build
|
|
|
|
BuildRequires: ninja-build
|
|
|
@ -72,7 +72,7 @@ This package contains the shared library development files.
|
|
|
|
# 10bit: libx265_main10.so
|
|
|
|
# 10bit: libx265_main10.so
|
|
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
build() {
|
|
|
|
%cmake3 -Wno-dev -G "Ninja" \
|
|
|
|
%cmake -Wno-dev -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 \
|
|
|
@ -82,7 +82,7 @@ build() {
|
|
|
|
-DCMAKE_ASM_NASM_FLAGS=-w-macro-params-legacy \
|
|
|
|
-DCMAKE_ASM_NASM_FLAGS=-w-macro-params-legacy \
|
|
|
|
$* \
|
|
|
|
$* \
|
|
|
|
../source
|
|
|
|
../source
|
|
|
|
%cmake3_build
|
|
|
|
%cmake_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
|
|
|
@ -113,7 +113,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
|
|
|
|
%cmake3_install
|
|
|
|
%cmake_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
|
|
|
@ -154,6 +154,24 @@ done
|
|
|
|
%{_libdir}/pkgconfig/x265.pc
|
|
|
|
%{_libdir}/pkgconfig/x265.pc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Dec 25 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 3.6-3
|
|
|
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 02 2024 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 3.6-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 16 2024 Dominik Mierzejewski <rpm@greysector.net> - 3.6-2
|
|
|
|
|
|
|
|
- Backport a fix for crashes when encoding with variable length SEI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Apr 06 2024 Leigh Scott <leigh123linux@gmail.com> - 3.6-1
|
|
|
|
|
|
|
|
- Update to 3.6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Feb 04 2024 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 3.5-7
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 02 2023 RPM Fusion Release Engineering <sergiomb@rpmfusion.org> - 3.5-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Dec 29 2022 Nicolas Chauvet <kwizart@gmail.com> - 3.5-5
|
|
|
|
* Thu Dec 29 2022 Nicolas Chauvet <kwizart@gmail.com> - 3.5-5
|
|
|
|
- Enable ENABLE_HDR10_PLUS everywhere rfbz#6454
|
|
|
|
- Enable ENABLE_HDR10_PLUS everywhere rfbz#6454
|
|
|
|
|
|
|
|
|