Adrian Schröter 2019-02-05 09:37:16 +00:00 committed by Git OBS Bridge
parent 9d90434ea0
commit 3c06944682
2 changed files with 15 additions and 12 deletions

View File

@ -20,20 +20,22 @@
Name: SVT-AV1
Version: 0.1.6
Release: 0
Summary: SVT-AV1 encoder
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
Patch1: fix-lib64.patch
BuildRequires: cmake
BuildRequires: pkg-config
BuildRequires: yasm
ExclusiveArch: x86_64
%description
%package -n libSvtAv1Enc
Summary: library for the AV1 encoder
Summary: Library for the AV1 encoder
Group: System/Libraries
%description -n libSvtAv1Enc
@ -47,21 +49,22 @@ Requires: %{name}%{sover} = %{version}
%prep
%setup -q
%patch1 -p1
%if 0%{suse_version} < 1500
sed -i -e 's, -fstack-protector-strong / /' CMakeLists.txt
%endif
%build
cmake . \
-DCMAKE_BUILD_TYPE=Release
-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
mkdir -p %buildroot%_bindir
mkdir -p %buildroot%_libdir
install -m 0755 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
DESTDIR=%{buildroot} make install
mkdir -p %buildroot%_docdir/%name
install -m 0644 %{S:1} %buildroot%_docdir/%name
@ -70,7 +73,7 @@ install -m 0644 %{S:1} %buildroot%_docdir/%name
%files -n libSvtAv1Enc
%license LICENSE.md
%{_libdir}/libSvtAv1Enc.so.*
%{_libdir}/libSvtAv1Enc.so
%files
%doc README.md NOTICES.md
@ -78,7 +81,7 @@ install -m 0644 %{S:1} %buildroot%_docdir/%name
%_bindir/*
%files devel
%{_libdir}/libSvtAv1Enc.so
%_libdir/pkgconfig
%_includedir/*
%changelog

Binary file not shown.