# # spec file for package git-bug # # Copyright (c) 2022 SUSE LLC # # 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: git-bug Version: 0.7.2+git.1665512451.0eef9391 Release: 0 Summary: Distributed, offline-first bug tracker embedded in git, with bridges License: MIT URL: https://github.com/MichaelMure/git-bug #!RemoteAssetUrl: git+https://github.com/MichaelMure/git-bug.git Source1: vendor.tar.xz BuildRequires: golang(API) = 1.18 BuildRequires: golang-packaging %description git-bug is a bug tracker that: * is fully embedded in git: you only need your git repository to have a bug tracker * is distributed: use your normal git remote to collaborate, push and pull your bugs! * works offline: in a plane or under the sea? Keep reading and writing bugs! * prevents vendor lock-in: your usual service is down or went bad? You already have a full backup. * is fast: listing bugs or opening them is a matter of milliseconds * doesn't pollute your project: no files are added in your project * integrates with your tooling: use the UI you like (CLI, terminal, web) or integrate with your existing tools through the CLI or the GraphQL API * bridges to other bug trackers: use bridges to import and export to other trackers. %package bash-completion Summary: Bash completion for git-bug Requires: bash-completion Supplements: (git-bug and bash-completion) BuildArch: noarch %description bash-completion Bash shell completions for git-bug %package fish-completion Summary: Fish completion for git-bug Requires: fish Supplements: (git-bug and fish) BuildArch: noarch %description fish-completion Fish shell completions for git-bug %package zsh-completion Summary: ZSH completion for git-bug Group: Productivity/File utilities Supplements: (git-bug and zsh) BuildArch: noarch %description zsh-completion zsh shell completions for git-bug %prep %setup -q -n git-bug -c -T -a1 cp -a %{_sourcedir}/git-bug/* . %build go build -v -x -mod=vendor -buildmode=pie %install install -Dm755 git-bug %{buildroot}%{_bindir}/git-bug install -Dm644 -t %{buildroot}%{_mandir}/man1/ doc/man/* # shell completions install -Dm0644 misc/completion/bash/git-bug \ %{buildroot}%{_datadir}/bash-completion/completions/git-bug install -Dm0644 misc/completion/fish/git-bug \ %{buildroot}%{_datadir}/fish/vendor_completions.d/git-bug.fish install -Dm0644 misc/completion/zsh/git-bug \ %{buildroot}%{_sysconfdir}/zsh_completion.d/git-bug %files %license LICENSE %doc README.md %{_bindir}/git-bug %{_mandir}/man1/git*.1%{?ext_man} %files bash-completion %{_datadir}/bash-completion/completions/git-bug %files fish-completion %dir %{_datadir}/fish %dir %{_datadir}/fish/vendor_completions.d %{_datadir}/fish/vendor_completions.d/git-bug.fish %files zsh-completion %dir %{_sysconfdir}/zsh_completion.d %config %{_sysconfdir}/zsh_completion.d/git-bug %changelog