2022-10-17 16:02:55 +02:00
|
|
|
#
|
|
|
|
# spec file for package git-bug
|
|
|
|
#
|
2022-10-17 16:05:29 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2022-10-17 16:02:55 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2022-10-17 16:05:29 +02:00
|
|
|
|
2022-10-17 16:02:55 +02:00
|
|
|
Name: git-bug
|
|
|
|
Version: 0.7.2+git.1665512451.0eef939
|
|
|
|
Release: 0
|
|
|
|
Summary: Distributed, offline-first bug tracker embedded in git, with bridges
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/MichaelMure/git-bug
|
|
|
|
# Source0: https://github.com/MichaelMure/%%{name}/archive/refs/tags/v%%{version}.tar.gz
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
Source1: vendor.tar.gz
|
2022-10-17 16:05:29 +02:00
|
|
|
BuildRequires: golang(API) = 1.18
|
|
|
|
# BuildRequires: golang-packaging
|
2022-10-17 16:02:55 +02:00
|
|
|
|
|
|
|
%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?
|
2022-10-17 16:05:29 +02:00
|
|
|
You already have a full backup.
|
2022-10-17 16:02:55 +02:00
|
|
|
* 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)
|
|
|
|
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
|
|
|
|
%autosetup -p1 -a1
|
|
|
|
|
|
|
|
%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
|
2022-10-17 16:05:29 +02:00
|
|
|
%license LICENSE
|
2022-10-17 16:02:55 +02:00
|
|
|
%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
|