Jan Engelhardt 2019-02-18 11:59:55 +00:00 committed by Git OBS Bridge
parent d220776634
commit aef769443a
2 changed files with 14 additions and 11 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 18 11:59:38 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Use %cmake macro
-------------------------------------------------------------------
Sat Feb 16 12:18:45 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package libopenshot-audio
# spec file for package SVT-AV1
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@ -12,7 +12,7 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -27,7 +27,7 @@ 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
Patch1: fix-build.patch
BuildRequires: cmake
BuildRequires: pkg-config
BuildRequires: yasm
@ -61,16 +61,14 @@ 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
# Shitty CMakeLists.txt requires this to be OFF, else it runs into
# undefined reference: coeff_tbl
# ...and yet it still produces shared libs. 'S all good man?
%cmake -DBUILD_SHARED_LIBS:BOOL=OFF
make %{?_smp_mflags}
%install
%make_install
%cmake_install
mkdir -p %buildroot%_docdir/%name
install -m 0644 %{S:1} %buildroot%_docdir/%name