SHA256
1
0
forked from pool/SVT-AV1
SVT-AV1/SVT-AV1.spec
Tomáš Chvátal d220776634 Accepting request 676973 from home:jengelh:branches:multimedia:libs
- Update descriptions, make it fit for Factory.
- Use the same macro style everywhere.
- Edit fix-build.patch to conform to SLPP.

with rpmlintrc

OBS-URL: https://build.opensuse.org/request/show/676973
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/SVT-AV1?expand=0&rev=11
2019-02-18 09:50:29 +00:00

95 lines
2.6 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 suse0
Name: SVT-AV1
Version: 0.0~pre.1549319082.2a52193
Release: 0
Summary: The "Scalable Video Technology for AV1" Encoder
License: BSD-2-Clause-Patent
Group: Productivity/Multimedia/Other
URL: https://github.com/OpenVisualCloud/SVT-AV1
Source0: %name-%version.tar.xz
Source1: svt-av1_encoder_user_guide.pdf
Source9: %name-rpmlintrc
Patch1: fix-build.patch
BuildRequires: cmake
BuildRequires: pkg-config
BuildRequires: yasm
ExclusiveArch: x86_64
%description
An AV1 encoder for video streams from Intel.
%package -n libSvtAv1Enc-%sover
Summary: The "Scalable Video Technology for AV1" Encoder
Group: System/Libraries
%description -n libSvtAv1Enc-%sover
An AV1 encoder for video streams from Intel.
%package devel
Summary: Development files for %name
Group: Development/Libraries/C and C++
Requires: libSvtAv1Enc-%sover = %version
%description devel
An AV1 encoder for video streams from Intel.
This package contains the header files for svt-av1.
%prep
%setup -q
%patch1 -p1
%if 00%{?suse_version} < 1500
sed -i -e 's, -fstack-protector-strong , ,' CMakeLists.txt
%endif
%build
cmake . \
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
-DLIB_SUFFIX=64 \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make %{?_smp_mflags}
%install
%make_install
mkdir -p %buildroot%_docdir/%name
install -m 0644 %{S:1} %buildroot%_docdir/%name
%post -n libSvtAv1Enc-%sover -p /sbin/ldconfig
%postun -n libSvtAv1Enc-%sover -p /sbin/ldconfig
%files -n libSvtAv1Enc-%sover
%license LICENSE.md
%_libdir/libSvtAv1Enc.so.%{sover}*
%files
%doc README.md NOTICES.md
%doc %_docdir/%name/svt-av1_encoder_user_guide.pdf
%_bindir/*
%files devel
%_libdir/libSvtAv1Enc.so
%_libdir/pkgconfig
%_includedir/*
%changelog