2019-02-05 10:00:05 +01:00
|
|
|
#
|
2019-02-18 12:59:55 +01:00
|
|
|
# spec file for package SVT-AV1
|
2019-02-05 10:00:05 +01:00
|
|
|
#
|
2019-02-18 12:59:55 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2019-02-05 10:00:05 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-02-18 12:59:55 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2019-02-05 10:00:05 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-07-08 08:37:46 +02:00
|
|
|
%define sover suse1
|
2019-02-05 10:00:05 +01:00
|
|
|
Name: SVT-AV1
|
2019-07-08 08:37:46 +02:00
|
|
|
Version: 0.0~pre.1556042178.b4ca700
|
2019-02-05 10:00:05 +01:00
|
|
|
Release: 0
|
2019-02-18 10:50:29 +01:00
|
|
|
Summary: The "Scalable Video Technology for AV1" Encoder
|
2019-02-05 11:59:45 +01:00
|
|
|
License: BSD-2-Clause-Patent
|
2019-02-05 10:00:05 +01:00
|
|
|
Group: Productivity/Multimedia/Other
|
2019-02-18 10:50:29 +01:00
|
|
|
URL: https://github.com/OpenVisualCloud/SVT-AV1
|
|
|
|
Source0: %name-%version.tar.xz
|
|
|
|
Source9: %name-rpmlintrc
|
2019-02-18 12:59:55 +01:00
|
|
|
Patch1: fix-build.patch
|
2019-02-05 10:00:05 +01:00
|
|
|
BuildRequires: cmake
|
2019-07-08 08:37:46 +02:00
|
|
|
BuildRequires: gcc-c++
|
2019-02-05 10:37:16 +01:00
|
|
|
BuildRequires: pkg-config
|
2019-02-05 10:00:05 +01:00
|
|
|
BuildRequires: yasm
|
2019-02-05 10:06:42 +01:00
|
|
|
ExclusiveArch: x86_64
|
2019-02-05 10:00:05 +01:00
|
|
|
|
|
|
|
%description
|
2019-02-18 10:50:29 +01:00
|
|
|
An AV1 encoder for video streams from Intel.
|
2019-02-05 10:00:05 +01:00
|
|
|
|
2019-07-08 08:37:46 +02:00
|
|
|
%package -n libSvtAv1Dec-%sover
|
|
|
|
Summary: The "Scalable Video Technology for AV1" Decoder
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libSvtAv1Dec-%sover
|
|
|
|
An AV1 decoder for video streams from Intel.
|
|
|
|
|
2019-02-18 10:50:29 +01:00
|
|
|
%package -n libSvtAv1Enc-%sover
|
|
|
|
Summary: The "Scalable Video Technology for AV1" Encoder
|
2019-02-05 10:00:05 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2019-02-18 10:50:29 +01:00
|
|
|
%description -n libSvtAv1Enc-%sover
|
|
|
|
An AV1 encoder for video streams from Intel.
|
2019-02-05 10:00:05 +01:00
|
|
|
|
|
|
|
%package devel
|
2019-02-18 10:50:29 +01:00
|
|
|
Summary: Development files for %name
|
2019-02-05 10:00:05 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-07-08 08:37:46 +02:00
|
|
|
Requires: libSvtAv1Dec-%sover = %version
|
2019-02-18 10:50:29 +01:00
|
|
|
Requires: libSvtAv1Enc-%sover = %version
|
2019-02-05 10:00:05 +01:00
|
|
|
|
|
|
|
%description devel
|
2019-02-18 10:50:29 +01:00
|
|
|
An AV1 encoder for video streams from Intel.
|
|
|
|
|
|
|
|
This package contains the header files for svt-av1.
|
2019-02-05 10:00:05 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2019-02-05 10:37:16 +01:00
|
|
|
%patch1 -p1
|
2019-02-18 10:50:29 +01:00
|
|
|
%if 00%{?suse_version} < 1500
|
2019-02-05 10:43:19 +01:00
|
|
|
sed -i -e 's, -fstack-protector-strong , ,' CMakeLists.txt
|
2019-02-05 10:06:42 +01:00
|
|
|
%endif
|
2019-02-05 10:00:05 +01:00
|
|
|
|
|
|
|
%build
|
2019-02-18 12:59:55 +01:00
|
|
|
# Shitty CMakeLists.txt requires this to be OFF, else it runs into
|
|
|
|
# undefined reference: coeff_tbl
|
|
|
|
# ...and yet it still produces shared libs. 'S all good man?
|
|
|
|
%cmake -DBUILD_SHARED_LIBS:BOOL=OFF
|
2019-02-05 10:00:05 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2019-02-18 12:59:55 +01:00
|
|
|
%cmake_install
|
2019-07-08 08:37:46 +02:00
|
|
|
# drop internal test lib
|
|
|
|
rm %buildroot%_libdir/libgtest_all.so
|
|
|
|
|
|
|
|
%post -n libSvtAv1Dec-%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libSvtAv1Dec-%sover -p /sbin/ldconfig
|
2019-02-05 10:00:05 +01:00
|
|
|
|
2019-02-18 10:50:29 +01:00
|
|
|
%post -n libSvtAv1Enc-%sover -p /sbin/ldconfig
|
|
|
|
%postun -n libSvtAv1Enc-%sover -p /sbin/ldconfig
|
2019-02-05 10:00:05 +01:00
|
|
|
|
2019-07-08 08:37:46 +02:00
|
|
|
%files -n libSvtAv1Dec-%sover
|
|
|
|
%license LICENSE.md
|
|
|
|
%_libdir/libSvtAv1Dec.so.%{sover}*
|
|
|
|
|
2019-02-18 10:50:29 +01:00
|
|
|
%files -n libSvtAv1Enc-%sover
|
2019-02-05 10:00:05 +01:00
|
|
|
%license LICENSE.md
|
2019-02-18 10:50:29 +01:00
|
|
|
%_libdir/libSvtAv1Enc.so.%{sover}*
|
2019-02-05 10:00:05 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md NOTICES.md
|
2019-07-08 08:37:46 +02:00
|
|
|
%doc Docs
|
2019-02-05 10:00:05 +01:00
|
|
|
%_bindir/*
|
|
|
|
|
|
|
|
%files devel
|
2019-07-08 08:37:46 +02:00
|
|
|
%_libdir/libSvtAv1Dec.so
|
2019-02-18 10:50:29 +01:00
|
|
|
%_libdir/libSvtAv1Enc.so
|
2019-02-05 10:37:16 +01:00
|
|
|
%_libdir/pkgconfig
|
|
|
|
%_includedir/*
|
2019-02-05 10:00:05 +01:00
|
|
|
|
|
|
|
%changelog
|