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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define sover 6
|
|
|
|
Name: SVT-AV1
|
|
|
|
Version: 0.1.6
|
|
|
|
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 10:37:16 +01:00
|
|
|
Patch1: fix-lib64.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
|
|
|
|
|
|
|
|
%package -n libSvtAv1Enc
|
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
|
|
|
|
|
|
|
|
%description -n libSvtAv1Enc
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}%{sover} = %{version}
|
|
|
|
|
|
|
|
%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
|
|
|
|
sed -i -e 's, -fstack-protector-strong / /' CMakeLists.txt
|
|
|
|
%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
|
|
|
|
|
|
|
|
%post -n libSvtAv1Enc -p /sbin/ldconfig
|
|
|
|
%postun -n libSvtAv1Enc -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libSvtAv1Enc
|
|
|
|
%license LICENSE.md
|
2019-02-05 10:37:16 +01:00
|
|
|
%{_libdir}/libSvtAv1Enc.so
|
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 10:37:16 +01:00
|
|
|
%_libdir/pkgconfig
|
|
|
|
%_includedir/*
|
2019-02-05 10:00:05 +01:00
|
|
|
|
|
|
|
%changelog
|