Skip to content

Instantly share code, notes, and snippets.

@jcrd
Created February 5, 2023 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcrd/5651377a5441a8c74807901ff5e8a197 to your computer and use it in GitHub Desktop.
Save jcrd/5651377a5441a8c74807901ff5e8a197 to your computer and use it in GitHub Desktop.
toolboxcutter rpkg spec template for blog post
%global cli_cmd tb
Name: {{{ git_cwd_name name="toolboxcutter" }}}
Version: {{{ git_cwd_version lead="$(git tag | sed -n 's/^v//p' | sort --version-sort -r | head -n1)" }}}
Release: 1%{?dist}
Summary: A script to automate use of toolbox
License: MIT
URL: https://github.com/jcrd/toolboxcutter
VCS: {{{ git_cwd_vcs }}}
Source0: {{{ git_cwd_pack }}}
BuildArch: noarch
BuildRequires: perl
Requires: bash
Requires: dnf
Requires: toolbox
%global debug_package %{nil}
%description
toolboxcutter automates use of toolbox using per-project Dockerfiles.
%prep
{{{ git_cwd_setup_macro }}}
%build
%make_build PREFIX=/usr
%install
%make_install PREFIX=/usr
%files
%license LICENSE
%doc README.md
/usr/bin/%{cli_cmd}
/usr/share/man/man1/%{cli_cmd}.1.gz
%changelog
{{{ git_cwd_changelog }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment