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
This commit is contained in:
Dirk Mueller 2019-12-20 08:28:12 +00:00 committed by Git OBS Bridge
parent c1d6ec879c
commit efebb20a5c
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Dec 8 09:18:44 UTC 2019 - Martin Liška <mliska@suse.cz>
- Use %make_build and recpect %optflags.
-------------------------------------------------------------------
Wed Oct 30 15:38:12 UTC 2019 - Dirk Mueller <dmueller@suse.com>

View File

@ -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