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
|
2024-10-03 20:48:18 +02:00
|
|
|
Version: 0.8.0+git.1725552198.b0cc690
|
2022-10-17 16:02:55 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Distributed, offline-first bug tracker embedded in git, with bridges
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/MichaelMure/git-bug
|
2024-05-29 11:14:59 +02:00
|
|
|
# Source0: https://github.com/MichaelMure/%%{name}/archive/refs/tags/v%%{version}.tar.gz#/git-bug-%%{version}.tar.gz
|
|
|
|
Source0: git-bug-%{version}.tar.gz
|
2024-08-03 17:27:38 +02:00
|
|
|
# PATCH-FIX-UPSTREAM remote-config.patch gh#MichaelMure/git-bug!1076 mcepl@suse.com
|
|
|
|
# try reading git-bug.remote config value before defaulting to 'origin' when no explicit REMOTE argument
|
|
|
|
Patch0: remote-config.patch
|
2022-10-31 00:48:51 +01:00
|
|
|
Source1: vendor.tar.gz
|
2024-05-29 11:14:59 +02:00
|
|
|
# # PATCH-FEATURE-UPSTREAM 501-export.patch gh#MichaelMure/git-bug!501 mcepl@suse.com
|
|
|
|
# # add a command to export bugs as raw operations
|
|
|
|
# Patch0: 501-export.patch
|
2022-11-03 15:15:33 +01:00
|
|
|
BuildRequires: golang-packaging
|
2024-10-03 20:48:18 +02:00
|
|
|
BuildRequires: golang(API) = 1.22
|
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
|
2022-10-17 21:10:32 +02:00
|
|
|
Supplements: (git-bug and bash-completion)
|
2022-10-17 16:02:55 +02:00
|
|
|
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
|
2022-11-03 14:59:33 +01:00
|
|
|
%autosetup -p1 -a1
|
2022-10-17 16:02:55 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2024-05-29 11:14:59 +02:00
|
|
|
%check
|
|
|
|
go test -v -s TestValidateUsername -mod=vendor -bench=. ./...
|
|
|
|
|
2022-10-17 16:02:55 +02:00
|
|
|
%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
|