From aef769443a42e40aa19690b8d84457ca8d5218368c5cba165aaa894a82da5843 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 18 Feb 2019 11:59:55 +0000 Subject: [PATCH] - Use %cmake macro OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/SVT-AV1?expand=0&rev=12 --- SVT-AV1.changes | 5 +++++ SVT-AV1.spec | 20 +++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/SVT-AV1.changes b/SVT-AV1.changes index 07aab4e..0e783bf 100644 --- a/SVT-AV1.changes +++ b/SVT-AV1.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 18 11:59:38 UTC 2019 - Jan Engelhardt + +- Use %cmake macro + ------------------------------------------------------------------- Sat Feb 16 12:18:45 UTC 2019 - Jan Engelhardt diff --git a/SVT-AV1.spec b/SVT-AV1.spec index 05b3552..a913323 100644 --- a/SVT-AV1.spec +++ b/SVT-AV1.spec @@ -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