2019-02-05 10:00:05 +01:00
|
|
|
#
|
|
|
|
# spec file for package libopenshot-audio
|
|
|
|
#
|
|
|
|
# Copyright (c) 2018 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-02-05 11:47:07 +01:00
|
|
|
%define sover 0
|
2019-02-05 10:00:05 +01:00
|
|
|
Name: SVT-AV1
|
2019-02-05 10:38:37 +01:00
|
|
|
Version: 0.0~pre.1549319082.2a52193
|
2019-02-05 10:00:05 +01:00
|
|
|
Release: 0
|
2019-02-05 10:37:16 +01:00
|
|
|
Summary: SVT-AV1 Encoder
|
2019-02-05 10:00:05 +01:00
|
|
|
License: GPL-3.0-or-later
|
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
Url: https://github.com/OpenVisualCloud/SVT-AV1
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
Source1: svt-av1_encoder_user_guide.pdf
|
2019-02-05 11:47:07 +01:00
|
|
|
Patch1: fix-build.patch
|
2019-02-05 10:00:05 +01:00
|
|
|
BuildRequires: cmake
|
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-05 11:47:07 +01:00
|
|
|
%package -n libSvtAv1Enc%{sover}
|
2019-02-05 10:37:16 +01:00
|
|
|
Summary: Library for the AV1 encoder
|
2019-02-05 10:00:05 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2019-02-05 11:47:07 +01:00
|
|
|
%description -n libSvtAv1Enc%{sover}
|
2019-02-05 10:00:05 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
2019-02-05 11:47:07 +01:00
|
|
|
Requires: libSvtAv1Enc%{sover} = %{version}
|
2019-02-05 10:00:05 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2019-02-05 10:37:16 +01:00
|
|
|
%patch1 -p1
|
2019-02-05 10:06:42 +01:00
|
|
|
%if 0%{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
|
|
|
|
cmake . \
|
2019-02-05 10:37:16 +01:00
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
|
|
|
|
-DLIB_SUFFIX=64 \
|
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2019-02-05 10:00:05 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2019-02-05 10:37:16 +01:00
|
|
|
DESTDIR=%{buildroot} make install
|
2019-02-05 10:00:05 +01:00
|
|
|
mkdir -p %buildroot%_docdir/%name
|
|
|
|
install -m 0644 %{S:1} %buildroot%_docdir/%name
|
|
|
|
|
2019-02-05 11:47:07 +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-02-05 11:47:07 +01:00
|
|
|
%files -n libSvtAv1Enc%{sover}
|
2019-02-05 10:00:05 +01:00
|
|
|
%license LICENSE.md
|
2019-02-05 11:47:07 +01:00
|
|
|
%{_libdir}/libSvtAv1Enc.so.%{sover}*
|
2019-02-05 10:00:05 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md NOTICES.md
|
|
|
|
%doc %_docdir/%name/svt-av1_encoder_user_guide.pdf
|
|
|
|
%_bindir/*
|
|
|
|
|
|
|
|
%files devel
|
2019-02-05 11:47:07 +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
|