File macgeiger.spec of Package macgeiger
#
# spec file for package macgeiger
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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: macgeiger
Version: 0.0.1.git1513720215.4db6efa
Release: 0
Summary: A tool to track down the location of WIFI APs with sound
License: GPL-3.0
Group: Productivity/Networking/Diagnostic
URL: https://github.com/rofl0r/MacGeiger
#Git-Clone: https://github.com/rofl0r/MacGeiger.git
Source0: %{name}-%{version}.tar.xz
#Git-Clone: https://github.com/rofl0r/concol.git
Source1: concol.tar.bz2
BuildRequires: libpcap-devel
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ao)
%if 0%{?suse_version} > 1320
BuildRequires: gcc
BuildRequires: gcc-c++
%else
BuildRequires: gcc7
BuildRequires: gcc7-c++
#!BuildIgnore: gcc48
#!BuildIgnore: gcc48-c++
%endif
%description
MacGeiger - a WIFI AP locator utility.
This tool puts your wireless card into monitor mode, then processes beacon
frames from APs to create a list, in which you can navigate with the cursor
keys, then select one AP with ENTER. The AP will open in detail view and
start to beep. the faster it beeps, the better is the signal of the AP.
%prep
%setup -q
tar xjf %{SOURCE1}
mv dist/Makefile.dist Makefile
sed -i 's@"../concol/@"concol/@g' macgeiger.c
%build
%if 0%{?suse_version} <= 1320
export NCURSES_LIBS=$(ncurses5-config --libs)
export CC="gcc-7"
export CXX="g++-7"
%endif
export CFLAGS='%{optflags}'
make %{?_smp_mflags}
%install
%make_install prefix=/usr
%files
%doc README.md COPYING
%{_bindir}/macgeiger
%changelog