diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c78dd9f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/svt-av1-0.6.0.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..6053fe8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (svt-av1-0.6.0.tar.gz) = e58c86a1c87de832aeebc8537734318f3fc9f1b250ffb414d67af447703d2d69f95405efdf161c8a54c4b76fe6d6cbfb38d2d1a87de35d80f8e4ad88afe9d04a diff --git a/svt-av1.spec b/svt-av1.spec new file mode 100644 index 0000000..11e2296 --- /dev/null +++ b/svt-av1.spec @@ -0,0 +1,103 @@ +%global _description %{expand: +The Scalable Video Technology for AV1 Encoder (SVT-AV1 Encoder) is an +AV1-compliant encoder library core. The SVT-AV1 development is a +work-in-progress targeting performance levels applicable to both VOD and Live +encoding / transcoding video applications.} + +Name: svt-av1 +Version: 0.6.0 +Release: 1%{?dist} +Summary: Scalable Video Technology for AV1 Encoder + +# Main library: BSD-2-Clause-Patent +# Source/Lib/Common/Codec/EbHmCode.c: BSD +# Source/App/EncApp/EbAppString.* +# Source/Lib/Common/Codec/EbString.* +# Source/Lib/Common/Codec/vector.*: MIT +# Source/Lib/Common/ASM_SSE2/x86inc.asm: ISC +# Source/App/DecApp/EbMD5Utility.*: PublicDomain +License: BSD-2-Clause-Patent and BSD and MIT and ISC and Public Domain +URL: https://github.com/OpenVisualCloud/SVT-AV1 +Source0: %url/archive/v%{version}/%{name}-%{version}.tar.gz + +# 64Bits, 5th Generation Intel® Core™ processor only +ExclusiveArch: x86_64 + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: cmake +BuildRequires: yasm +BuildRequires: help2man + +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description %_description + +%package libs +Summary: SVT-AV1 libraries + +%description libs %_description + +This package contains SVT-AV1 libraries. + +%package devel +Summary: Development files for SVT-AV1 +Requires: %{name}-libs = %{version}-%{release} + +%description devel %_description. + +This package contains the development files for SVT-AV1. + +%prep +%autosetup -p1 -n SVT-AV1-%{version} + +%build +mkdir _build +cd _build +%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DCMAKE_INSTALL_LIBDIR=%{_lib} \ + -DCMAKE_ASM_NASM_COMPILER=yasm \ + -DCMAKE_SKIP_INSTALL_RPATH=ON \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_TESTING=OFF \ + -DNATIVE=OFF \ + .. +%make_build + +%install +cd _build +%make_install +rm -f %{buildroot}%{_libdir}/*.{a,la} + +mkdir -p %{buildroot}/%{_mandir}/man1 +export PATH=$PATH:%{buildroot}%{_bindir} +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir} +help2man -N --help-option=-help --version-string=%{version} SvtAv1DecApp > %{buildroot}%{_mandir}/man1/SvtAv1DecApp.1 +help2man -N --help-option=-help --version-string=%{version} SvtAv1EncApp > %{buildroot}%{_mandir}/man1/SvtAv1EncApp.1 + +%files +%{_bindir}/SvtAv1DecApp +%{_bindir}/SvtAv1EncApp +%{_mandir}/man1/SvtAv1DecApp.1* +%{_mandir}/man1/SvtAv1EncApp.1* + +%files libs +%license LICENSE.md +%doc Docs CHANGELOG.md NOTICES.md README.md STYLE.md +%{_libdir}/libSvtAv1Dec.so.0* +%{_libdir}/libSvtAv1Enc.so.0* + +%files devel +%{_includedir}/%{name} +%{_libdir}/libSvtAv1Dec.so +%{_libdir}/libSvtAv1Enc.so +%{_libdir}/pkgconfig/SvtAv1Dec.pc +%{_libdir}/pkgconfig/SvtAv1Enc.pc + +%changelog +* Fri Jul 05 18:37:55 CEST 2019 Robert-André Mauchin - 0.6.0-1 +- Release 0.6.0 + +* Thu Jun 20 20:36:24 CEST 2019 Robert-André Mauchin - 0.5.0-1.20190620gitcc2ee45 +- Initial release