Files
hut/hut.spec
JL K 90f5299ccb - Update to version 0.7.0:
* Added:
    + git webhook handling
    + git setup command that configures a repository for "git send-email" via 
      the project config file
    + pages ACL handling
    + "Update" command for multiple resources
    + "count" flag for all list commands. The number of items that should be 
       fetched by hut can now be specified. This is especially useful when 
       redirecting "stdout" and not using the interactive pager.
  * Changed:
    + Some list commands, like ticket list and patchset list, support filtering
      by status now and will only show actionable items by default (proposed 
      patches, open tickets)
    + hut will check all git remotes now instead of just origin

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/hut?expand=0&rev=13
2025-11-02 11:57:43 +00:00

94 lines
2.3 KiB
RPMSpec

#
# spec file for package hut
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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: hut
Version: 0.7.0
Release: 0
Summary: A CLI tool for sr.ht
License: AGPL-3.0-or-later
Group: Development/Tools/Navigators
URL: https://sr.ht/~xenrox/hut
Source0: https://git.sr.ht/~xenrox/hut/archive/v%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: go >= 1.17
BuildRequires: golang-packaging
BuildRequires: scdoc
%{go_nostrip}
%description
hut is a CLI companion utility to interact with sr.ht.
%package bash-completion
Summary: Bash Completion for %{name}
Group: System/Shells
Requires: bash-completion
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description bash-completion
The official bash completion script for hut.
%package fish-completion
Summary: Fish Completion for %{name}
Group: System/Shells
Requires: fish
Supplements: (%{name} and fish)
BuildArch: noarch
%description fish-completion
The official fish completion script for hut.
%package zsh-completion
Summary: ZSH Completion for %{name}
Group: System/Shells
Requires: zsh
Supplements: (%{name} and zsh)
BuildArch: noarch
%description zsh-completion
The official zsh completion script for hut.
%prep
%autosetup -p1 -a1 -n %{name}-v%{version}
%build
make GOFLAGS='-mod=vendor -buildmode=pie -ldflags=-s'
%install
%make_install PREFIX=%{_prefix}
%check
go test -v
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%_mandir/man1/%{name}.1%{?ext_man}
%files bash-completion
%{_datadir}/bash-completion
%files fish-completion
%{_datadir}/fish
%files zsh-completion
%{_datadir}/zsh
%changelog