mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(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>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "wavemon.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(gh("uoaerg/wavemon"));
|
||||
@@ -0,0 +1,48 @@
|
||||
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
|
||||
Reference in New Issue
Block a user