# # spec file for package horst # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2016, Martin Hauke # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # 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/ # Name: horst Version: 5.1 Release: 0 Summary: Lightweight IEEE802.11 wireless LAN analyzer 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: 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. Its basic function is similar to tcpdump, Wireshark or Kismet, but it's much smaller and shows different, aggregated information which is not easily available from other tools. It is made for debugging wireless LANs with a focus on getting a quick overview instead of deep packet inspection and has special features for Ad-hoc (IBSS) mode and mesh networks. It can be useful to get a quick overview of what's going on on all wireless LAN channels and to identify problems. %prep %setup -q # Remove build time references so build-compare can do its work FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M:%%S') sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" *.c sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" *.c %build export CFLAGS="%{optflags} `ncursesw5-config --cflags`" export LDFLAGS="`ncursesw5-config --libs`" make %{?_smp_mflags} %install install -Dpm0755 horst %{buildroot}/%{_bindir}/horst install -Dpm0644 horst.conf %{buildroot}/%{_sysconfdir}/horst.conf install -Dpm0644 horst.8 %{buildroot}/%{_mandir}/man1/horst.8 install -Dpm0644 horst.conf.5 %{buildroot}/%{_mandir}/man5/horst.conf.5 %files %doc LICENSE README.md %{_bindir}/horst %config %{_sysconfdir}/horst.conf %{_mandir}/man*/* %changelog