-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsasqwatch.spec
41 lines (33 loc) · 1.25 KB
/
sasqwatch.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
%define __spec_install_post %{nil}
%define debug_package %{nil}
Summary: A modern take on the classic watch command for Linux
Name: sasqwatch
Version: 0.2.5
Release: 6
License: MIT
URL: https://github.com/fabio42/sasqwatch
Source0: https://github.com/fabio42/sasqwatch/archive/refs/tags/v%{version}.tar.gz
BuildRequires: golang
BuildRequires: git
BuildRequires: upx
Requires: procps-ng
%description
Sasqwatch is a modern take on the classic watch command for Linux. It periodically executes a command and displays the output in a clear and concise manner.
%prep
%setup -q
%build
GO111MODULE=on CGO_ENABLED=0 go build -ldflags="-s -w -X 'github.com/fabio42/sasqwatch/cmd.Version=%{version}'" -o %{name}
strip %{name}
upx %{name}
%install
%{__install} -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
%files
%{_bindir}/%{name}
%changelog
* Fri Dec 20 2024 Danie de Jager <[email protected]> - 0.2.5-6
* Mon Sep 30 2024 Danie de Jager <[email protected]> - 0.2.5-5
* Mon Jun 10 2024 Danie de Jager <[email protected]> - 0.2.5-4
* Fri Jul 28 2023 Danie de Jager <[email protected]> - 0.2.5-2
- Improved printing of version information
* Tue Jun 20 2023 Danie de Jager <[email protected]> - 0.2.5-1
- Initial package release