SHA256
1
0
forked from pool/cheat
Files
cheat/cheat.spec
Michael Vetter 7087e87f5d - Security:
* Replace golang.org/x/crypto=golang.org/x/crypto@v0.45.0
    Fixes CVE-2025-47913 (bsc#1253593),
          CVE-2025-58181 (bsc#1253922),
          CVE-2025-47914 (bsc#1254051)

OBS-URL: https://build.opensuse.org/package/show/utilities/cheat?expand=0&rev=14
2025-11-26 17:55:12 +00:00

54 lines
1.6 KiB
RPMSpec

#
# spec file for package cheat
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: cheat
Version: 4.4.2
Release: 0
Summary: Allows you to create and view interactive cheatsheets on the command-line
License: MIT
Group: Productivity/Other
URL: https://github.com/cheat/cheat
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: golang(API) >= 1.24
%description
cheat allows you to create and view interactive cheatsheets on the command-line. It was designed to help remind *nix system administrators of options for commands that they use frequently, but not frequently enough to remember.
%prep
%autosetup -a 1
%build
%ifnarch ppc64
export GOFLAGS="-buildmode=pie"
%endif
go build ./cmd/%{name}
%check
./%{name} --help
%install
install -D -m0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm644 "doc/%{name}.1" -t "%{buildroot}%{_mandir}/man1/"
%files
%{_bindir}/%{name}
%{_mandir}/man1/cheat.1%{?ext_man}
%changelog