From efebb20a5c9a22e5a73b29c34101664ebfb18362fc66f1ca20e6a3573a9b1774 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 20 Dec 2019 08:28:12 +0000 Subject: [PATCH] Accepting request 755044 from home:marxin:branches:Base:System - Use %make_build and recpect %optflags. OBS-URL: https://build.opensuse.org/request/show/755044 OBS-URL: https://build.opensuse.org/package/show/Base:System/dtc?expand=0&rev=48 --- dtc.changes | 5 +++++ dtc.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/dtc.changes b/dtc.changes index 1a08ba6..5603423 100644 --- a/dtc.changes +++ b/dtc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Dec 8 09:18:44 UTC 2019 - Martin Liška + +- Use %make_build and recpect %optflags. + ------------------------------------------------------------------- Wed Oct 30 15:38:12 UTC 2019 - Dirk Mueller diff --git a/dtc.spec b/dtc.spec index 74f1d51..2af4a9b 100644 --- a/dtc.spec +++ b/dtc.spec @@ -1,7 +1,7 @@ # # spec file for package dtc # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -73,7 +73,8 @@ Python binding part. %setup -q %build -make %{?_smp_mflags} V=1 NO_PYTHON=1 +export EXTRA_CFLAGS="%{optflags}" +%make_build NO_PYTHON=1 cd pylibfdt python3 setup.py build_ext %py3_build @@ -86,7 +87,8 @@ cd pylibfdt %python3_install %check -make %{?_smp_mflags} check +export EXTRA_CFLAGS="%{optflags}" +%make_build check %files %license README.license