forked from pool/SVT-AV1
Adrian Schröter
0c29d0eebe
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/SVT-AV1?expand=0&rev=3
85 lines
2.3 KiB
RPMSpec
85 lines
2.3 KiB
RPMSpec
#
|
|
# 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
|
|
Summary: SVT-AV1 encoder
|
|
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
|
|
BuildRequires: cmake
|
|
BuildRequires: yasm
|
|
ExclusiveArch: x86_64
|
|
|
|
%description
|
|
|
|
%package -n libSvtAv1Enc
|
|
Summary: library for the AV1 encoder
|
|
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
|
|
%if 0%{suse_version} < 1500
|
|
sed -i -e 's, -fstack-protector-strong / /' CMakeLists.txt
|
|
%endif
|
|
|
|
%build
|
|
cmake . \
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
mkdir -p %buildroot%_bindir
|
|
mkdir -p %buildroot%_libdir
|
|
install -m 0644 Bin/Release/SvtAv1Enc* %buildroot%_bindir/
|
|
install -m 0644 Bin/Release/libSvtAv1Enc.so %buildroot%_libdir/libSvtAv1Enc.so.%soversion
|
|
ln -s libSvtAv1Enc.so.%soversion %buildroot%_libdir/libSvtAv1Enc.so
|
|
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
|
|
%{_libdir}/libSvtAv1Enc.so.*
|
|
|
|
%files
|
|
%doc README.md NOTICES.md
|
|
%doc %_docdir/%name/svt-av1_encoder_user_guide.pdf
|
|
%_bindir/*
|
|
|
|
%files devel
|
|
%{_libdir}/libSvtAv1Enc.so
|
|
|
|
|
|
%changelog
|