%global forgeurl https://github.com/uoaerg/wavemon %global version %(date +%Y%m%d) %global commit 0bfc3e4c605afd01e378e5e2a501cc3f032c1d0a %global _forgeversionsuffix %{scm}%(printf %.7s %{commit}) %global source_date_epoch_from_changelog 0 %forgemeta %undefine _hardened_build Name: wavemon Version: %{forgeversion} Release: %{autorelease} Summary: Ncurses-based monitoring application for wireless network devices # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later URL: %{forgeurl} Source0: %{forgesource} BuildRequires: make BuildRequires: gcc BuildRequires: ncurses-devel BuildRequires: libpcap-devel BuildRequires: libnl3-devel BuildRequires: autoconf BuildRequires: automake %description wavemon is a wireless device monitoring application that allows you to watch all important information like device configuration, encryption, and power management parameters and network information at once. Adaptive level bargraphs for link quality, signal/noise strength and signal-to-noise ratio. The customizeable "level alarm" feature that notices the user of changes in signal level strength audibly and/or visually. wavemon is able to list of access points in range and shows full-screen level histogram displaying signal/noise levels and SNR. %prep %forgeautosetup sed -e '/^CFLAGS=/d' -i configure.ac sed -r 's|\?=|=|g' -i Makefile.in autoreconf -fiv %build CFLAGS="$RPM_OPT_FLAGS -fPIC -pie -Wl,-z,relro -Wl,-z,now" CXXFLAGS="$RPM_OPT_FLAGS -fPIC -pie -Wl,-z,relro -Wl,-z,now" export CFLAGS export CXXFLAGS %configure make %{?_smp_mflags} %install %make_install # Delete wrong placed doc files rm -rf %{buildroot}%{_datadir}/%{name}/* %files %doc README.md %license LICENSE %{_mandir}/man*/%{name}*.* %{_bindir}/%{name}