Files
packages/anda/apps/wavemon/wavemon.spec
T
Raboneko 33701f9ba3 add: wavemon (#12422) (#12454)
(cherry picked from commit d37c95a33e)

Signed-off-by: Owen-sz <owen@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
2026-05-21 16:32:26 +08:00

49 lines
1.1 KiB
RPMSpec

Name: wavemon
Version: 0.9.7
Release: 1%{?dist}
Summary: ncurses-based monitoring application for wireless network devices on Linux
License: GPL-3.0-or-later
URL: https://github.com/uoaerg/wavemon
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
Packager: Owen Zimmerman <owen@fyralabs.com>
BuildRequires: gcc
BuildRequires: ncurses-devel
BuildRequires: pkgconfig(libnl-3.0)
BuildRequires: autoconf
BuildRequires: automake
%description
%{summary}.
%prep
%autosetup
sed -e '/^CFLAGS=/d' -i configure.ac
sed -r 's|\?=|=|g' -i Makefile.in
autoreconf -fiv
%conf
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
%build
%make_build
%install
%make_install
# Delete wrong placed readme and license
rm -rf %{buildroot}%{_datadir}/%{name}/*
%files
%doc README.md
%license LICENSE
%{_mandir}/man*/%{name}*.*
%{_bindir}/%{name}
%changelog
* Tue May 19 2026 Owen Zimmerman <owen@fyralabs.com>
- Initial commit