From ad48eef0f704ed8272d9a30e47cc127285429466161d2a9f93ebfe85a36d1276 Mon Sep 17 00:00:00 2001 From: Alexander Naumov Date: Sat, 31 Mar 2018 20:07:40 +0000 Subject: [PATCH] Accepting request 592619 from home:mnhauke - Fix build for Leap15 and Tumbleweed OBS-URL: https://build.opensuse.org/request/show/592619 OBS-URL: https://build.opensuse.org/package/show/network:utilities/horst?expand=0&rev=3 --- horst.changes | 5 +++++ horst.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/horst.changes b/horst.changes index 815d03b..f9146e5 100644 --- a/horst.changes +++ b/horst.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 30 11:33:59 UTC 2018 - mardnh@gmx.de + +- Fix build for Leap15 and Tumbleweed + ------------------------------------------------------------------- Mon Feb 5 15:06:50 UTC 2018 - astieger@suse.com diff --git a/horst.spec b/horst.spec index 79fde28..737da4c 100644 --- a/horst.spec +++ b/horst.spec @@ -25,11 +25,15 @@ License: GPL-2.0 Group: Productivity/Networking/Diagnostic URL: http://br1.einfach.org/tech/horst/ Source: https://github.com/br101/horst/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz -BuildRequires: ncurses-devel BuildRequires: pkgconfig BuildRequires: pkgconfig(libnl-3.0) BuildRequires: pkgconfig(libnl-genl-3.0) Recommends: iw +%if 0%{?suse_version} < 1500 +BuildRequires: ncurses-devel +%else +BuildRequires: ncurses5-devel +%endif %description horst is a small, lightweight IEEE802.11 WLAN analyzer with a text interface. @@ -51,7 +55,8 @@ sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" *.c sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" *.c %build -export CFLAGS="%{optflags}" +export CFLAGS="%{optflags} `ncursesw5-config --cflags`" +export LDFLAGS="`ncursesw5-config --libs`" make %{?_smp_mflags} %install