From 071ba3125ab0c89909cea3b363bdfce4dbdc5b23 Mon Sep 17 00:00:00 2001 From: sadlerm4 Date: Wed, 18 Dec 2024 01:45:09 +1100 Subject: [PATCH] clean up macro syntax and add packager: --- anda/devs/tmon/tmon.spec | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/anda/devs/tmon/tmon.spec b/anda/devs/tmon/tmon.spec index a93496302f..eef7872b53 100644 --- a/anda/devs/tmon/tmon.spec +++ b/anda/devs/tmon/tmon.spec @@ -9,7 +9,7 @@ Release: 1%{?dist} Summary: A tiny system monitor for Linux License: GPL-3.0-only -URL: https://github.com/pondda/tmon +URL: https://github.com/pondda/%{name} Source0: %{url}/archive/%{commit}.tar.gz Requires: lm_sensors @@ -19,8 +19,10 @@ Suggests: nerd-fonts BuildRequires: make gcc-c++ ncurses-devel +Packager: sadlerm + %description -%{summary} +%{summary}. %prep %autosetup -n %{name}-%{commit} @@ -29,16 +31,16 @@ BuildRequires: make gcc-c++ ncurses-devel %make_build %install -install -m 0755 -vd %{buildroot}/%{_bindir} -install -m 0755 -vp tmon %{buildroot}/%{_bindir}/tmon -install -m 0755 -vd %{buildroot}/%{_sysconfdir}/tmon -install -m 0644 -vp default.conf %{buildroot}/%{_sysconfdir}/tmon/ +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{name} %{buildroot}%{_bindir}/%{name} +install -m 0755 -vd %{buildroot}%{_sysconfdir}/%{name} +install -m 0644 -vp default.conf %{buildroot}%{_sysconfdir}/%{name}/ %files %license LICENSE %doc README.md -%{_bindir}/tmon -%{_sysconfdir}/tmon/default.conf +%{_bindir}/%{name} +%{_sysconfdir}/%{name}/default.conf %changelog * Tue Dec 17 2024 sadlerm