]> git.pld-linux.org Git - packages/ctop.git/blame - ctop.spec
new
[packages/ctop.git] / ctop.spec
CommitLineData
e421590d
JP
1%define vendor_version 0.7.7
2
3Summary: Top-like interface for container metrics
4Name: ctop
5Version: 0.7.7
6Release: 1
7License: MIT
8Group: Applications/System
9Source0: https://github.com/bcicen/ctop/archive/v%{version}/%{name}-%{version}.tar.gz
10# Source0-md5: 9221f9bd69952392c47b8570d2ba25eb
11Source1: %{name}-vendor-%{vendor_version}.tar.xz
12# Source1-md5: 66c94eb62c9a648fb69a2a95cbafa3c3
13URL: https://ctop.sh
14BuildRequires: golang >= 1.15
15BuildRequires: rpmbuild(macros) >= 2.009
16BuildRequires: tar >= 1:1.22
17BuildRequires: xz
18ExclusiveArch: %go_arches
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%define _debugsource_packages 0
22
23%description
24ctop provides a concise and condensed overview of real-time metrics
25for multiple containers as well as a single container view for
26inspecting a specific container.
27
28ctop comes with built-in support for Docker and runC.
29
30%prep
31%setup -q -a1
32
33%{__mv} ctop-%{vendor_version}/vendor .
34
35%{__mkdir} .go-cache
36
37%build
38%__go build -v -mod=vendor -o target/%{name}
39
40%install
41rm -rf $RPM_BUILD_ROOT
42
43install -d $RPM_BUILD_ROOT%{_bindir}
44
45cp -p target/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49%files
50%defattr(644,root,root,755)
51%doc README.md
52%attr(755,root,root) %{_bindir}/%{name}
This page took 0.535239 seconds and 4 git commands to generate.