Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:MaxxedSUSE:Python-15.6
x265
x265.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File x265.spec of Package x265
# # spec file for package x265 # # Copyright (c) 2020 Packman Team <packman@links2linux.de> # Copyright (c) 2014 Torsten Gruner <t.gruner@katodev.de> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.links2linux.org/ # # turn off the generation of debuginfo rpm (RH9) ?? #global debug_package %{nil} # grep 'X265_BUILD' source/CMakeLists.txt %define sover 209 %define libname lib%{name} %define libsoname %{libname}-%{sover} Name: x265 Version: 3.5~+159~git20240401.7f67d23c1 Release: 0 Summary: A free h265/HEVC encoder - encoder binary License: GPL-2.0-or-later Group: Productivity/Multimedia/Video/Editors and Convertors URL: https://bitbucket.org/multicoreware/x265_git Source0: %{name}-%{version}.tar.xz Patch: x265_fix-install.patch BuildRequires: binutils-gold BuildRequires: cmake >= 2.8.8 BuildRequires: gcc-c++ BuildRequires: nasm >= 2.13 BuildRequires: pkgconfig BuildRequires: pkgconfig(libvmaf) BuildRequires: xz BuildRequires: libnuma-devel >= 2.0.9 %description x265 is a free library for encoding next-generation H265/HEVC video streams. %package -n %{libsoname} Summary: A free H265/HEVC encoder - encoder binary Group: Productivity/Multimedia/Video/Editors and Convertors %description -n %{libsoname} x265 is a free library for encoding next-generation H265/HEVC video streams. %package -n %{libname}-devel Summary: Libraries and include file for the %{libname} encoder Group: Development/Libraries/C and C++ Requires: %{libsoname} = %{version}-%{release} Provides: %{name}-devel = %{version} Obsoletes: %{name}-devel < %{version} %description -n %{libname}-devel x265 is a free library for encoding next-generation H265/HEVC video streams. %prep %autosetup -p1 sed -i -e "s:libdir=${exec_prefix}/@LIB_INSTALL_DIR@:libdir=@LIB_INSTALL_DIR@:g" source/x265.pc.in sed -i -e "/X265_LATEST_TAG/s:0.0:%{sover}.0:g" \ -e "/X265_VERSION/s:unknown:%{version}:g" \ source/cmake/*ersion.cmake %build export CFLAGS="%{optflags} -fPIC -O3 -ftree-parallelize-loops=4 -ftree-vectorize -fvect-cost-model=cheap -fsimd-cost-model=cheap -fpredictive-commoning" export CXXFLAGS="${CFLAGS} -fpermissive" export LD=ld.gold export LDFLAGS="${LDFLAGS} -fPIC -fuse-ld=gold -lvmaf -Wl,--sort-common -Wl,-O1 -Wl,--icf=safe -Wl,--gc-sections" cd source # crutches and snots # -DCMAKE_BUILD_TYPE="None" \ # -DEXTRA_LIB="vmaf" \ # -DLINKED_8BIT=1 \ # -DLINKED_10BIT=1 \ # -DLINKED_12BIT=1 \ # this crap is broken with newer versions now # -DENABLE_LIBVMAF=OFF \ %cmake \ -DUSE_PCH=OFF -DENABLE_PCH=OFF \ -DENABLE_PRECOMPILED_HEADERS=OFF \ -DSKIP_PRECOMPILE_HEADERS=ON \ -DUSE_PRECOMPILED_HEADERS=OFF \ -DCMAKE_SKIP_RPATH=OFF \ -DCMAKE_INSTALL_RPATH="" \ -DCMAKE_LINKER="${LD}" \ -DCMAKE_C_FLAGS="${CFLAGS} ${LDFLAGS}" \ -DCMAKE_CXX_FLAGS="${CXXFLAGS} ${LDFLAGS}" \ -DCMAKE_LD_FLAGS="${LDFLAGS}" \ -DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \ -DCMAKE_EXE_LINKER_FLAGS="${LDLAGS}" \ -DCMAKE_MODULE_LINKER_FLAGS="${LDLAGS}" \ -DCMAKE_SHARED_LINKER_FLAGS="${LDLAGS}" \ -DEXTRA_LINK_FLAGS="${LDLAGS}" \ -DENABLE_TESTS=OFF \ -DENABLE_PIC=ON \ -DENABLE_CLI=ON \ -DENABLE_SHARED=ON \ -DX265_VERSION="%{version}" \ -DX265_LATEST_TAG="%{sover}.0" \ %ifarch i586 -DENABLE_ASSEMBLY=OFF \ %else -DENABLE_ASSEMBLY=ON \ %endif -DHIGH_BIT_DEPTH=ON \ -DMAIN12=ON \ -DENABLE_HDR10_PLUS=ON \ -DENABLE_LIBVMAF=OFF \ || cat build/CMakeFiles/CMakeError.log make %{?_smp_mflags} %install cd source %cmake_install #mkdir -p %{buildroot}%{_libdir}/pkgconfig #mv -v build*/libx265.so* %{buildroot}%{_libdir}/ #mv -v {build*,.}/x265.pc %{buildroot}%{_libdir}/pkgconfig/ find %{buildroot} -name "*.a" -delete echo "%{libname}-%{sover}" > %{_sourcedir}/baselibs.conf %post -n %{libsoname} -p /sbin/ldconfig %postun -n %{libsoname} -p /sbin/ldconfig %files -n %{libsoname} %{_libdir}/*.so.%{sover}* %files %{_bindir}/%{name} %files -n %{libname}-devel %license COPYING %doc readme.rst %{_includedir}/*.h %{_libdir}/pkgconfig/*.pc %{_libdir}/*.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor