Skip to content

Instantly share code, notes, and snippets.

@astra137
Created January 3, 2023 12:00
Show Gist options
  • Save astra137/16090cb8c1519b81b423557c9ce7fbea to your computer and use it in GitHub Desktop.
Save astra137/16090cb8c1519b81b423557c9ce7fbea to your computer and use it in GitHub Desktop.
sbctl rpm package spec
Name: sbctl
Version: 0.10
Release: 1%{?dist}
Summary: Secure Boot key manager
License: MIT
URL: https://github.com/Foxboron/sbctl
Source0: https://github.com/Foxboron/sbctl/releases/download/%{version}/sbctl-%{version}.tar.gz
Requires: util-linux binutils
BuildRequires: go gcc-go asciidoc
%description
Unofficial hand-made private distribution of sbctl.
%prep
%setup -q
%install
%{make_install} PREFIX=%{_prefix} GOFLAGS="-gccgoflags=-Wl,--build-id=sha1 -buildmode=pie -trimpath"
%files
%license LICENSE
%{_bindir}/sbctl
%{_prefix}/lib/kernel/install.d/91-sbctl.install
%{_datadir}/bash-completion/completions/sbctl
%{_datadir}/zsh/site-functions/_sbctl
%{_datadir}/fish/vendor_completions.d/sbctl.fish
%{_mandir}/man8/sbctl.8.gz
%changelog
* Sun Dec 11 2022 @astra137 <maccelerated@gmail.com> - 0.10-1
- Initial attempt at building my first rpm package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment