2023-10-18 20:46:50 +02:00
|
|
|
#
|
|
|
|
# spec file for package doggo
|
|
|
|
#
|
2024-07-02 15:22:53 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2023-10-18 20:46:50 +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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: doggo
|
2024-07-02 15:22:53 +02:00
|
|
|
Version: 1.0.2
|
2023-10-18 20:46:50 +02:00
|
|
|
Release: 0
|
2023-10-20 05:42:49 +02:00
|
|
|
Summary: CLI tool and API server DNS client implemented in Go
|
2024-07-02 15:22:53 +02:00
|
|
|
License: GPL-3.0-only
|
2023-10-18 20:46:50 +02:00
|
|
|
URL: https://github.com/mr-karan/doggo
|
2024-07-02 15:22:53 +02:00
|
|
|
Source0: %{name}-%{version}.tar
|
|
|
|
Source1: vendor.tar.xz
|
2023-10-18 20:46:50 +02:00
|
|
|
BuildRequires: golang(API) >= 1.20
|
2023-10-20 05:42:49 +02:00
|
|
|
Suggests: %{name}-fish-completion
|
|
|
|
Suggests: %{name}-zsh-completion
|
2023-10-18 20:46:50 +02:00
|
|
|
|
|
|
|
%description
|
2023-10-20 05:42:49 +02:00
|
|
|
doggo is a modern command-line DNS client (like dig) implemented in Go.
|
2023-10-18 20:46:50 +02:00
|
|
|
It outputs information in a neat concise manner and supports protocols
|
|
|
|
like DoH, DoT, DoQ, and DNSCrypt as well.
|
|
|
|
|
2024-07-02 15:22:53 +02:00
|
|
|
%package bash-completion
|
|
|
|
Summary: bash completion for %{name}
|
|
|
|
Group: System/Shells
|
|
|
|
Supplements: (%{name} and bash)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description bash-completion
|
|
|
|
bash completion scripts for %{name}
|
|
|
|
|
2023-10-20 05:42:49 +02:00
|
|
|
%package fish-completion
|
|
|
|
Summary: fish completion for %{name}
|
|
|
|
Group: System/Shells
|
2023-10-23 13:55:24 +02:00
|
|
|
Supplements: (%{name} and fish)
|
2023-10-20 05:42:49 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description fish-completion
|
|
|
|
fish completion scripts for %{name}
|
|
|
|
|
|
|
|
%package zsh-completion
|
|
|
|
Summary: zsh completion for %{name}
|
|
|
|
Group: System/Shells
|
2023-10-23 13:55:24 +02:00
|
|
|
Supplements: (%{name} and zsh)
|
2023-10-20 05:42:49 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description zsh-completion
|
|
|
|
zsh completion scripts for %{name}
|
|
|
|
|
2023-10-18 20:46:50 +02:00
|
|
|
%prep
|
|
|
|
%autosetup -a1
|
|
|
|
|
|
|
|
%build
|
2023-10-20 05:42:49 +02:00
|
|
|
%ifnarch ppc64
|
|
|
|
export GOFLAGS="-buildmode=pie"
|
|
|
|
%endif
|
|
|
|
go build ./cmd/%{name}
|
2023-10-18 20:46:50 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -d %{buildroot}%{_bindir}
|
2023-10-20 05:42:49 +02:00
|
|
|
install -D %{name} %{buildroot}%{_bindir}/%{name}
|
2024-07-02 15:22:53 +02:00
|
|
|
|
|
|
|
# Completions
|
|
|
|
./%{name} completions fish > %{name}.fish
|
|
|
|
install -Dm644 %{name}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
|
|
|
./%{name} completions zsh > %{name}.zsh
|
|
|
|
install -Dm644 %{name}.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
|
|
|
|
./%{name} completions bash > %{name}.bash
|
|
|
|
install -Dm644 %{name}.bash %{buildroot}%{_datadir}/bash-completions/completions/%{name}
|
2023-10-18 20:46:50 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2023-10-20 05:42:49 +02:00
|
|
|
%doc config-api-sample.toml
|
|
|
|
%{_bindir}/%{name}
|
2023-10-18 20:46:50 +02:00
|
|
|
|
2024-07-02 15:22:53 +02:00
|
|
|
%files fish-completion
|
2023-10-18 20:46:50 +02:00
|
|
|
%dir %{_datadir}/fish
|
|
|
|
%dir %{_datadir}/fish/vendor_completions.d
|
2023-10-23 13:55:24 +02:00
|
|
|
%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
2023-10-20 05:42:49 +02:00
|
|
|
|
|
|
|
%files zsh-completion
|
2024-07-02 15:22:53 +02:00
|
|
|
%dir %{_datadir}/zsh
|
|
|
|
%dir %{_datadir}/zsh/site-functions
|
2023-10-18 20:46:50 +02:00
|
|
|
%{_datadir}/zsh/site-functions/_%{name}
|
|
|
|
|
2024-07-02 15:22:53 +02:00
|
|
|
%files bash-completion
|
|
|
|
%dir %{_datadir}/bash-completions
|
|
|
|
%dir %{_datadir}/bash-completions/completions
|
|
|
|
%{_datadir}/bash-completions/completions/%{name}
|
|
|
|
|
2023-10-18 20:46:50 +02:00
|
|
|
%changelog
|