From 74d1ba1b5b1c5846ace8f06a6e47d6affa49bd3d Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: May 11 2022 09:36:10 +0000 Subject: Initial packaging of btop --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e860f77 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/btop-1.2.6.tar.gz diff --git a/btop.spec b/btop.spec new file mode 100644 index 0000000..b99cfa6 --- /dev/null +++ b/btop.spec @@ -0,0 +1,37 @@ +Name: btop +Version: 1.2.6 +Release: 1%{?dist} +Summary: A monitor of resources + +# include/robin_hood.h: MIT; include/widechar_width.hpp: CC0 +License: ASL 2.0 and MIT and CC0 +URL: https://github.com/aristocratos/btop +Source0: https://github.com/aristocratos/btop/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: gcc-c++ +BuildRequires: sed + +%description +Resource monitor that shows usage and stats for processor, memory, disks, +network and processes. + +%prep +%autosetup +sed -i '/^\t@sleep/d' Makefile + +%build +%make_build OPTFLAGS="%{optflags}" ADDFLAGS="%{build_ldflags}" + +%install +%make_install PREFIX="/usr" +rm %{buildroot}%{_datadir}/btop/README.md + +%files +%license LICENSE +%doc README.md CHANGELOG.md +%{_bindir}/%{name} +%{_datadir}/%{name} + +%changelog +* Tue May 10 2022 Thomas Schneider - 1.2.6-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..2e025b7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (btop-1.2.6.tar.gz) = 8eeb3dee050b392817747db076fc85d012e3cd528b70d7ef2dae801614d332cef5bab636bca2803904027a1e0ac98e30a95ee1cc8aa34c7c9d093e3accf885c9