diff --git a/btop-1.3.0.tar.gz b/btop-1.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..466006061e9873fbd2ae0135b3b99d0cd4ee4cb0 Binary files /dev/null and b/btop-1.3.0.tar.gz differ diff --git a/btop.spec b/btop.spec new file mode 100644 index 0000000000000000000000000000000000000000..ba299f69db6a6b3468c2412718c548b4aba5368a --- /dev/null +++ b/btop.spec @@ -0,0 +1,66 @@ +Name: btop +Version: 1.3.0 +Release: 1 +Summary: Modern and colorful command line resource monitor that shows usage and stats + + +License: Apache-2.0 and MIT and Public Domain +URL: https://github.com/aristocratos/btop +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: desktop-file-utils +BuildRequires: gcc-c++ +BuildRequires: make +BuildRequires: dos2unix +%if 0%{?el8} || 0%{?el9} +BuildRequires: gcc-toolset-12-gcc-c++ +BuildRequires: gcc-toolset-12-annobin-plugin-gcc +BuildRequires: gcc-toolset-12-binutils +%endif + + +%if 0%{?fedora} +BuildRequires: rocm-smi-devel +%endif + +Requires: hicolor-icon-theme + + +Provides: bundled(widecharwidth) +Provides: bundled(robin-hood-hashing) = 3.11.5 + +%description +Resource monitor that shows usage and stats for processor, +memory, disks, network and processes. + +C++ version and continuation of bashtop and bpytop. + +%prep +%autosetup + +%build +%{?el8:. /opt/rh/gcc-toolset-12/enable} +%{?el9:. /opt/rh/gcc-toolset-12/enable} + +# to build debuginfo +export CXXFLAGS="${CXXFLAGS} -g" +%make_build + +%install +%make_install PREFIX=%{_prefix} +rm -f %{buildroot}%{_datadir}/btop/README.md +dos2unix %{buildroot}%{_datadir}/applications/btop.desktop +desktop-file-validate %{buildroot}%{_datadir}/applications/btop.desktop + + +%files +%license LICENSE +%doc README.md CHANGELOG.md +%{_bindir}/%{name} +%{_datadir}/applications/btop.desktop +%{_datadir}/btop +%{_datadir}/icons/hicolor/*/apps/btop.* + +%changelog +* Tue Feb 20 2024 wyxhjr - 1.3.0-1 +- Init package diff --git a/btop.yaml b/btop.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cdaaec9da9591062f3119ce18bd2e15b21be6488 --- /dev/null +++ b/btop.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: strukturag/btop +tag_prefix: "^v" +separator: "."