# # spec file for package SVT-AV1 # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # 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.opensuse.org/ # %define sover 0 Name: SVT-AV1 Version: 0.8.5 Release: 0 Summary: An AV1 decoder/encoder for video streams License: BSD-2-Clause-Patent Group: Productivity/Multimedia/Other URL: https://github.com/AOMediaCodec/SVT-AV1 Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source9: %{name}-rpmlintrc # # https://github.com/AOMediaCodec/SVT-AV1/pull/1568 Patch0: 1568-backport.patch # BuildRequires: cmake BuildRequires: help2man BuildRequires: gcc-c++ BuildRequires: pkg-config BuildRequires: yasm ExclusiveArch: x86_64 %description The Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) is an AV1-compliant encoder/decoder library core. The SVT-AV1 encoder development is a work-in-progress targeting performance levels applicable to both VOD and Live encoding / transcoding video applications. The SVT-AV1 decoder implementation is targeting future codec research activities. %package -n libSvtAv1Dec%{sover} Summary: An AV1 decoder/encoder for video streams Group: System/Libraries Obsoletes: libSvtAv1Dec-suse1 < %{version} Provides: libSvtAv1Dec-suse1 = %{version} %description -n libSvtAv1Dec%{sover} The Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) is an AV1-compliant encoder/decoder library core. The SVT-AV1 encoder development is a work-in-progress targeting performance levels applicable to both VOD and Live encoding / transcoding video applications. The SVT-AV1 decoder implementation is targeting future codec research activities. %package -n libSvtAv1Enc%{sover} Summary: An AV1 decoder/encoder for video streams Group: System/Libraries Obsoletes: libSvtAv1Enc-suse1 < %{version} Provides: libSvtAv1Enc-suse1 = %{version} %description -n libSvtAv1Enc%{sover} The Scalable Video Technology for AV1 (SVT-AV1 Encoder and Decoder) is an AV1-compliant encoder/decoder library core. The SVT-AV1 encoder development is a work-in-progress targeting performance levels applicable to both VOD and Live encoding / transcoding video applications. The SVT-AV1 decoder implementation is targeting future codec research activities. %package devel Summary: Development files for %{name} Group: Development/Libraries/C and C++ Requires: libSvtAv1Dec%{sover} = %{version} Requires: libSvtAv1Enc%{sover} = %{version} %description devel An AV1 encoder for video streams from Intel. This package contains the header files for svt-av1. %prep %autosetup -p1 %build %cmake %cmake_build %install %cmake_install # Generate manpages install -d -m0755 %{buildroot}/%{_mandir}/man1 LD_LIBRARY_PATH="%{buildroot}%{_libdir}" \ help2man -N --help-option=-help --version-string=%{version} %{buildroot}%{_bindir}/SvtAv1DecApp > %{buildroot}%{_mandir}/man1/SvtAv1DecApp.1 LD_LIBRARY_PATH="%{buildroot}%{_libdir}" \ help2man -N --help-option=-help --version-string=%{version} --no-discard-stderr %{buildroot}%{_bindir}/SvtAv1EncApp > %{buildroot}%{_mandir}/man1/SvtAv1EncApp.1 %post -n libSvtAv1Dec%{sover} -p /sbin/ldconfig %postun -n libSvtAv1Dec%{sover} -p /sbin/ldconfig %post -n libSvtAv1Enc%{sover} -p /sbin/ldconfig %postun -n libSvtAv1Enc%{sover} -p /sbin/ldconfig %files -n libSvtAv1Dec%{sover} %license LICENSE.md %{_libdir}/libSvtAv1Dec.so.%{sover}* %files -n libSvtAv1Enc%{sover} %license LICENSE.md %{_libdir}/libSvtAv1Enc.so.%{sover}* %files %doc README.md %doc Docs %{_bindir}/SvtAv1DecApp %{_bindir}/SvtAv1EncApp %{_mandir}/man1/SvtAv1DecApp.1* %{_mandir}/man1/SvtAv1EncApp.1* %files devel %{_libdir}/libSvtAv1Dec.so %{_libdir}/libSvtAv1Enc.so %{_libdir}/pkgconfig/SvtAv1Dec.pc %{_libdir}/pkgconfig/SvtAv1Enc.pc %{_includedir}/svt-av1/ %changelog