diff --git a/_service b/_service
index 2c888bd..304138b 100644
--- a/_service
+++ b/_service
@@ -2,7 +2,7 @@
git
https://github.com/mr-karan/doggo.git
- v0.5.7
+ v1.0.2
*
v(\d+\.\d+\.\d+)
@PARENT_TAG@
diff --git a/_servicedata b/_servicedata
index 45c596b..e151ad1 100644
--- a/_servicedata
+++ b/_servicedata
@@ -1,4 +1,4 @@
https://github.com/mr-karan/doggo.git
- c72c2ef9ec99053e33808bc03fee80d57ea017cb
\ No newline at end of file
+ a63ff6e88ac6abf711cb7e8a0948c5efdb545886
\ No newline at end of file
diff --git a/doggo-1.0.2.obscpio b/doggo-1.0.2.obscpio
new file mode 100644
index 0000000..a999eb8
--- /dev/null
+++ b/doggo-1.0.2.obscpio
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7674e4e5ed86d1cd9a723d17f040b718459fe16f02ee1239e448c33322079173
+size 1150988
diff --git a/doggo.changes b/doggo.changes
index ff9fca3..c869feb 100644
--- a/doggo.changes
+++ b/doggo.changes
@@ -1,3 +1,18 @@
+-------------------------------------------------------------------
+Tue Jul 02 10:43:52 UTC 2024 - eyadlorenzo@gmail.com
+
+- Update to version 1.0.2:
+ * refactor: move main package to cmd/doggo for proper binary naming
+
+- Update to version 1.0.1
+
+- Update to version 1.0.0:
+ * feat: add bash completion support
+ * feat: add completions command
+ * Fix syntax error in ZSH completion
+ * Update ZSH completion to include all current options
+ * added tls client configuration for doh and doq
+
-------------------------------------------------------------------
Mon Oct 23 09:36:30 UTC 2023 - Eyad Issa
diff --git a/doggo.obsinfo b/doggo.obsinfo
index 8dbe514..57e46c5 100644
--- a/doggo.obsinfo
+++ b/doggo.obsinfo
@@ -1,4 +1,4 @@
name: doggo
-version: 0.5.7
-mtime: 1691988406
-commit: c72c2ef9ec99053e33808bc03fee80d57ea017cb
+version: 1.0.2
+mtime: 1719894930
+commit: a63ff6e88ac6abf711cb7e8a0948c5efdb545886
diff --git a/doggo.spec b/doggo.spec
index c98e473..fcb81dc 100644
--- a/doggo.spec
+++ b/doggo.spec
@@ -1,7 +1,7 @@
#
# spec file for package doggo
#
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,13 @@
Name: doggo
-Version: 0.5.7
+Version: 1.0.2
Release: 0
Summary: CLI tool and API server DNS client implemented in Go
-License: GPL-3.0
+License: GPL-3.0-only
URL: https://github.com/mr-karan/doggo
-Source0: %{name}-%{version}.tar
-Source1: vendor.tar.xz
+Source0: %{name}-%{version}.tar
+Source1: vendor.tar.xz
BuildRequires: golang(API) >= 1.20
Suggests: %{name}-fish-completion
Suggests: %{name}-zsh-completion
@@ -33,6 +33,15 @@ doggo is a modern command-line DNS client (like dig) implemented in Go.
It outputs information in a neat concise manner and supports protocols
like DoH, DoT, DoQ, and DNSCrypt as well.
+%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}
+
%package fish-completion
Summary: fish completion for %{name}
Group: System/Shells
@@ -59,31 +68,38 @@ zsh completion scripts for %{name}
export GOFLAGS="-buildmode=pie"
%endif
go build ./cmd/%{name}
-go build ./cmd/api
%install
install -d %{buildroot}%{_bindir}
install -D %{name} %{buildroot}%{_bindir}/%{name}
-install -D api %{buildroot}%{_bindir}/%{name}-api
-install -Dm644 completions/%{name}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
-install -Dm644 completions/%{name}.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
+
+# 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}
%files
%license LICENSE
%doc README.md
%doc config-api-sample.toml
%{_bindir}/%{name}
-%{_bindir}/%{name}-api
-
-%dir %{_datadir}/fish
-%dir %{_datadir}/fish/vendor_completions.d
-%dir %{_datadir}/zsh
-%dir %{_datadir}/zsh/site-functions
%files fish-completion
+%dir %{_datadir}/fish
+%dir %{_datadir}/fish/vendor_completions.d
%{_datadir}/fish/vendor_completions.d/%{name}.fish
%files zsh-completion
+%dir %{_datadir}/zsh
+%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_%{name}
+%files bash-completion
+%dir %{_datadir}/bash-completions
+%dir %{_datadir}/bash-completions/completions
+%{_datadir}/bash-completions/completions/%{name}
+
%changelog
diff --git a/vendor.tar.xz b/vendor.tar.xz
index ad9aefa..b001360 100644
--- a/vendor.tar.xz
+++ b/vendor.tar.xz
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:bca2aa8afc7f4fed722c51bd51263e7d4ce28e8f04778665cf5778aab9586ea0
-size 5255032
+oid sha256:ff6642f82fd5cb7221362268a660300c46386e3d2f7dd449f6f99baea03464e8
+size 1514948