A new user interface for you! Read more...

File wavemon.spec of Package wavemon

#
# spec file for package wavemon
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#


Name:           wavemon
Version:        0.9.0
Release:        0
Summary:        An ncurses monitoring application for wireless network devices
License:        GPL-2.0-or-later
Group:          Productivity/Networking/Diagnostic
Url:            https://github.com/uoaerg/wavemon
Source:         https://github.com/uoaerg/wavemon/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  libcap-devel
BuildRequires:  ncurses-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libnl-3.0)
BuildRequires:  pkgconfig(libnl-genl-3.0)

%description
wavemon is a wireless device monitoring application that allows you to
watch signal and noise levels, packet statistics, device configuration
and network parameters of your wireless network hardware. It has
currently only been tested with the Lucent Orinoco series of cards,
although it *should* work (though with varying features) with all
devices supported by the wireless kernel extensions by Jean Tourrilhes.

%prep
%setup -q

%build
if [ -n "$SOURCE_DATE_EPOCH" ] ; then
  export BUILD_DATE=`date -d@$SOURCE_DATE_EPOCH`
fi
export CFLAGS="%{optflags} `pkg-config --cflags libnl-3.0` -D_REENTRANT -pthread"
%configure \
  --docdir=%{_docdir}/%{name}
make %{?_smp_mflags}

%install
%make_install
mkdir -p %{buildroot}%{_docdir}
mv %{buildroot}%{_datadir}/%{name} %{buildroot}%{_docdir}/

%files
%defattr(-,root,root,-)
%{_bindir}/wavemon
%{_mandir}/man1/wavemon.1%{ext_man}
%{_mandir}/man5/wavemonrc.5%{ext_man}
%{_docdir}/%{name}

%changelog