diff --git a/.gitignore b/.gitignore index b0742d9..1da2f7d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /doctl-1.64.0.tar.gz /doctl-1.65.0.tar.gz /doctl-1.66.0.tar.gz +/doctl-1.67.0.tar.gz diff --git a/changelog b/changelog new file mode 100644 index 0000000..4ecef0f --- /dev/null +++ b/changelog @@ -0,0 +1,14 @@ +* Thu Oct 07 2021 Mikel Olasagasti Uranga - 1.66.0-1 +- Update to 1.66.0 (BZ #2019416) + +* Thu Oct 07 2021 Mikel Olasagasti Uranga - 1.65.0-1 +- Update to 1.65.0 (BZ #2011675) + +* Mon Sep 20 2021 Mikel Olasagasti Uranga - 1.64.0-3 +- Add build version flags + +* Sun Sep 05 2021 Mikel Olasagasti Uranga - 1.64.0-2 +- Add bash, fish and zsh completions + +* Fri Sep 03 2021 Mikel Olasagasti Uranga - 1.64.0-1 +- Initial package diff --git a/doctl.spec b/doctl.spec index c8e8854..cc01351 100644 --- a/doctl.spec +++ b/doctl.spec @@ -1,5 +1,5 @@ %global major 1 -%global minor 66 +%global minor 67 %global patchlevel 0 @@ -8,7 +8,7 @@ # https://github.com/digitalocean/doctl %global goipath github.com/digitalocean/doctl -Version: 1.66.0 +Version: 1.67.0 %gometa @@ -19,7 +19,7 @@ The official command line interface for the DigitalOcean API} %global godocs CONTRIBUTING.md CHANGELOG.md README.md Name: doctl -Release: 1%{?dist} +Release: %autorelease Summary: The official command line interface for the DigitalOcean API # Upstream license specification: Apache-2.0 @@ -27,41 +27,7 @@ License: ASL 2.0 URL: %{gourl} Source0: %{gosource} -BuildRequires: golang(github.com/blang/semver) -BuildRequires: golang(github.com/digitalocean/godo) -BuildRequires: golang(github.com/digitalocean/godo/util) -BuildRequires: golang(github.com/docker/cli/cli/config) -BuildRequires: golang(github.com/docker/cli/cli/config/types) -BuildRequires: golang(github.com/dustin/go-humanize) -BuildRequires: golang(github.com/fatih/color) -BuildRequires: golang(github.com/gobwas/glob) -BuildRequires: golang(github.com/golang/mock/gomock) -BuildRequires: golang(github.com/gorilla/websocket) -BuildRequires: golang(github.com/natefinch/pie) -BuildRequires: golang(github.com/shiena/ansicolor) -BuildRequires: golang(github.com/spf13/cobra) -BuildRequires: golang(github.com/spf13/cobra/doc) -BuildRequires: golang(github.com/spf13/viper) -BuildRequires: golang(golang.org/x/crypto/ssh) -BuildRequires: golang(golang.org/x/crypto/ssh/terminal) -BuildRequires: golang(golang.org/x/oauth2) -BuildRequires: golang(gopkg.in/yaml.v2) -BuildRequires: golang(k8s.io/api/core/v1) -BuildRequires: golang(k8s.io/apimachinery/pkg/apis/meta/v1) -BuildRequires: golang(k8s.io/apimachinery/pkg/runtime/serializer/json) -BuildRequires: golang(k8s.io/apimachinery/pkg/util/errors) -BuildRequires: golang(k8s.io/client-go/pkg/apis/clientauthentication/v1beta1) -BuildRequires: golang(k8s.io/client-go/tools/clientcmd) -BuildRequires: golang(k8s.io/client-go/tools/clientcmd/api) -BuildRequires: golang(sigs.k8s.io/yaml) - -%if %{with check} -# Tests -BuildRequires: golang(github.com/google/uuid) -BuildRequires: golang(github.com/stretchr/testify/assert) -BuildRequires: golang(github.com/stretchr/testify/require) -BuildRequires: golang(k8s.io/client-go/kubernetes/scheme) -%endif +BuildRequires: go-rpm-macros %description %{common_description} @@ -71,8 +37,10 @@ BuildRequires: golang(k8s.io/client-go/kubernetes/scheme) %prep %goprep -%build +%generate_buildrequires +%go_generate_buildrequires +%build export LDFLAGS="-X github.com/digitalocean/doctl.Major=%{major} \ -X github.com/digitalocean/doctl.Minor=%{minor} \ -X github.com/digitalocean/doctl.Patch=%{patchlevel} \ @@ -115,18 +83,5 @@ install -Dp %{name}.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name} %gopkgfiles %changelog -* Thu Oct 07 2021 Mikel Olasagasti Uranga - 1.66.0-1 -- Update to 1.66.0 (BZ #2019416) - -* Thu Oct 07 2021 Mikel Olasagasti Uranga - 1.65.0-1 -- Update to 1.65.0 (BZ #2011675) - -* Mon Sep 20 2021 Mikel Olasagasti Uranga - 1.64.0-3 -- Add build version flags - -* Sun Sep 05 2021 Mikel Olasagasti Uranga - 1.64.0-2 -- Add bash, fish and zsh completions - -* Fri Sep 03 2021 Mikel Olasagasti Uranga - 1.64.0-1 -- Initial package +%autochangelog diff --git a/sources b/sources index 737167b..32d3e8c 100644 --- a/sources +++ b/sources @@ -1,3 +1,4 @@ SHA512 (doctl-1.64.0.tar.gz) = a0a104d1bcff7565c707c25986dfa13fab38166aefde30396e841889ffa31a41aa74e91f403a9787a2381194beeb9f7cac608438c96a450aa13e873eba5e6c24 SHA512 (doctl-1.65.0.tar.gz) = 4ed0b9f234d239bb61e0b122e4253edc2813bcb82c11e1a7a2da262188adbe09af00d3094320ee6c9d6ebbdb6cc17a633787f8fe334eab5b912ef75f56c63106 SHA512 (doctl-1.66.0.tar.gz) = 6107faac93f0e1b45a55a571d0448794aedbc472645d39fbe72fe5d039b9f594932461a943e391d52fe259debd79a61b22c9b3822df7f8a524a39de016244973 +SHA512 (doctl-1.67.0.tar.gz) = b257ebab4d9ae4ba545aa34a90e7481d761f7efc248afa998de24d5942848a55dfa56c52cb1e59c4e451c9e0e034fa83dfbac7ab3b7bf2855d046a5e03f0a960