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
This commit is contained in:
Alexander Naumov 2018-03-31 20:07:40 +00:00 committed by Git OBS Bridge
parent dff2ac92d5
commit ad48eef0f7
2 changed files with 12 additions and 2 deletions

View File

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

View File

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