0d4cf6391d
Initial submission OBS-URL: https://build.opensuse.org/request/show/1118637 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/doggo?expand=0&rev=1
67 lines
2.0 KiB
RPMSpec
67 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package doggo
|
|
#
|
|
# Copyright (c) 2023 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: doggo
|
|
Version: 0.5.7
|
|
Release: 0
|
|
Summary: Command-line DNS Client for Humans. Written in Golang
|
|
License: GPL-3.0
|
|
URL: https://github.com/mr-karan/doggo
|
|
Source0: %{name}-%{version}.tar
|
|
Source1: vendor.tar.xz
|
|
BuildRequires: golang(API) >= 1.20
|
|
|
|
%description
|
|
doggo is a modern command-line DNS client (like dig) written in Golang.
|
|
It outputs information in a neat concise manner and supports protocols
|
|
like DoH, DoT, DoQ, and DNSCrypt as well.
|
|
|
|
%prep
|
|
%autosetup -a1
|
|
|
|
%build
|
|
export GOFLAGS="$GOFLAGS -buildmode=pie -mod=vendor"
|
|
|
|
for BINARY in doggo api
|
|
do
|
|
go build -trimpath -ldflags "-s -w -X main.buildVersion=%{version}" -o "bin/" -v "./cmd/${BINARY}/..."
|
|
done
|
|
|
|
%install
|
|
install -d %{buildroot}%{_bindir}
|
|
install -D bin/doggo %{buildroot}%{_bindir}/%{name}
|
|
install -D bin/api %{buildroot}%{_bindir}/%{name}-api
|
|
install -Dm644 completions/%{name}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}
|
|
install -Dm644 completions/%{name}.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/doggo
|
|
%{_bindir}/doggo-api
|
|
|
|
%dir %{_datadir}/fish
|
|
%dir %{_datadir}/fish/vendor_completions.d
|
|
%dir %{_datadir}/zsh
|
|
%dir %{_datadir}/zsh/site-functions
|
|
|
|
%{_datadir}/fish/vendor_completions.d/%{name}
|
|
%{_datadir}/zsh/site-functions/_%{name}
|
|
|
|
%changelog
|