Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69fd29a48c |
6 changed files with 64 additions and 91 deletions
18
.gitignore
vendored
18
.gitignore
vendored
|
|
@ -15,21 +15,3 @@
|
|||
/vultr-cli-2.19.0.tar.gz
|
||||
/vultr-cli-2.20.0.tar.gz
|
||||
/vultr-cli-2.21.0.tar.gz
|
||||
/vultr-cli-2.22.0.tar.gz
|
||||
/vultr-cli-3.0.0.tar.gz
|
||||
/vultr-cli-3.0.3.tar.gz
|
||||
/vultr-cli-3.1.0.tar.gz
|
||||
/vultr-cli-3.2.0.tar.gz
|
||||
/vultr-cli-3.3.0.tar.gz
|
||||
/vultr-cli-3.3.1.tar.gz
|
||||
/vultr-cli-3.4.0.tar.gz
|
||||
/vultr-cli-3.5.0.tar.gz
|
||||
/vultr-cli-3.5.0-vendor.tar.bz2
|
||||
/vultr-cli-3.6.0.tar.gz
|
||||
/vultr-cli-3.6.0-vendor.tar.bz2
|
||||
/vultr-cli-3.7.0.tar.gz
|
||||
/vultr-cli-3.7.0-vendor.tar.bz2
|
||||
/vultr-cli-3.8.0.tar.gz
|
||||
/vultr-cli-3.8.0-vendor.tar.bz2
|
||||
/vultr-cli-3.9.2.tar.gz
|
||||
/vultr-cli-3.9.2-vendor.tar.bz2
|
||||
|
|
|
|||
45
.packit.yaml
45
.packit.yaml
|
|
@ -7,29 +7,28 @@ upstream_tag_template: v{version}
|
|||
specfile_path: vultr-cli.spec
|
||||
|
||||
jobs:
|
||||
- job: propose_downstream
|
||||
trigger: release
|
||||
dist_git_branches:
|
||||
- fedora-all
|
||||
|
||||
- job: pull_from_upstream
|
||||
trigger: release
|
||||
dist_git_branches:
|
||||
- rawhide
|
||||
- job: pull_from_upstream
|
||||
trigger: release
|
||||
dist_git_branches:
|
||||
- fedora-all
|
||||
|
||||
- job: koji_build
|
||||
trigger: commit
|
||||
dist_git_branches:
|
||||
- rawhide
|
||||
- job: koji_build
|
||||
trigger: commit
|
||||
dist_git_branches:
|
||||
- fedora-all
|
||||
allowed_pr_authors:
|
||||
- packit
|
||||
- mhayden
|
||||
allowed_committers:
|
||||
- packit
|
||||
- mhayden
|
||||
|
||||
actions:
|
||||
post-modifications:
|
||||
# https://fedora.gitlab.io/sigs/go/go-vendor-tools/scenarios/#manual-update
|
||||
- |
|
||||
sh -xeuc "
|
||||
cd $PACKIT_DOWNSTREAM_REPO
|
||||
export GOTOOLCHAIN=auto
|
||||
go_vendor_archive create --config go-vendor-tools.toml vultr-cli.spec
|
||||
go_vendor_license \
|
||||
--config go-vendor-tools.toml \
|
||||
--path vultr-cli.spec \
|
||||
report \
|
||||
--verify-spec
|
||||
"
|
||||
create_sync_note: false
|
||||
- job: bodhi_update
|
||||
trigger: commit
|
||||
dist_git_branches:
|
||||
- fedora-branched
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
This repository is maintained by packit.
|
||||
https://packit.dev/
|
||||
The file was generated using packit 1.11.0.post1.dev7+gfdcdf3a32.
|
||||
The file was generated using packit 0.87.0.
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
[archive]
|
||||
|
||||
[licensing]
|
||||
detector = "askalono"
|
||||
[[licensing.licenses]]
|
||||
path = "vendor/go.yaml.in/yaml/v3/LICENSE"
|
||||
sha256sum = "d18f6323b71b0b768bb5e9616e36da390fbd39369a81807cca352de4e4e6aa0b"
|
||||
expression = "MIT AND (MIT AND Apache-2.0)"
|
||||
|
||||
[[licensing.licenses]]
|
||||
path = "vendor/gopkg.in/yaml.v3/LICENSE"
|
||||
sha256sum = "d18f6323b71b0b768bb5e9616e36da390fbd39369a81807cca352de4e4e6aa0b"
|
||||
expression = "MIT AND (MIT AND Apache-2.0)"
|
||||
3
sources
3
sources
|
|
@ -1,2 +1 @@
|
|||
SHA512 (vultr-cli-3.9.2.tar.gz) = 6247c4fe303601d81704b1a7a2f3a0cc919e6b7d4fc2fd5a9f83badd8d5bd5f9a2663b1a9c998e0f7fdeb019757248e2bdd41a70b49dfd211fd48f5983df77ee
|
||||
SHA512 (vultr-cli-3.9.2-vendor.tar.bz2) = 95119651e360d56bdaf4be01fcc5c4b9fce4ccff233cc3093f4112da7602787e3d48aa5ea49d7cecc3ee102ec51e86ebc2b86d040c0a2a0363499c56c57ae823
|
||||
SHA512 (vultr-cli-2.21.0.tar.gz) = d78e119c9fbaf08ffd5450c95ea7f86a37bd80005e12404d472202ef59dc299075834d214289dd9333c661752ecec592f19d1878ba974d3fd2c306392f4a28a8
|
||||
|
|
|
|||
|
|
@ -1,42 +1,39 @@
|
|||
# Generated by go2rpm 1.17.1
|
||||
%bcond check 1
|
||||
%bcond_without check
|
||||
|
||||
# https://github.com/vultr/vultr-cli
|
||||
%global goipath github.com/vultr/vultr-cli/v3
|
||||
Version: 3.9.2
|
||||
%global goipath github.com/vultr/vultr-cli
|
||||
Version: 2.21.0
|
||||
|
||||
%gometa -L -f
|
||||
%gometa
|
||||
|
||||
%global common_description %{expand:
|
||||
Official command line tool for Vultr services.}
|
||||
|
||||
%global golicenses LICENSE
|
||||
%global godocs CHANGELOG.md CONTRIBUTING.md README.md
|
||||
|
||||
Name: vultr-cli
|
||||
Release: %autorelease
|
||||
Summary: Official command line tool for Vultr services
|
||||
|
||||
# Generated by go-vendor-tools
|
||||
License: Apache-2.0 AND BSD-3-Clause AND MIT AND MPL-2.0
|
||||
# Upstream license specification: Apache-2.0
|
||||
License: Apache-2.0
|
||||
URL: %{gourl}
|
||||
Source0: %{gosource}
|
||||
# Generated by go-vendor-tools
|
||||
Source1: %{archivename}-vendor.tar.bz2
|
||||
Source2: go-vendor-tools.toml
|
||||
|
||||
BuildRequires: go-vendor-tools
|
||||
|
||||
ExcludeArch: ppc64le s390x
|
||||
BuildRequires: go-rpm-macros
|
||||
|
||||
%description
|
||||
Official command line tool for Vultr services.
|
||||
%{common_description}
|
||||
|
||||
%gopkg
|
||||
|
||||
%prep
|
||||
%goprep -A
|
||||
%setup -q -T -D -a1 %{forgesetupargs}
|
||||
%autopatch -p1
|
||||
%goprep
|
||||
|
||||
%generate_buildrequires
|
||||
%go_vendor_license_buildrequires -c %{S:2}
|
||||
%go_generate_buildrequires
|
||||
|
||||
%build
|
||||
%global gomodulesmode GO111MODULE=on
|
||||
%gobuild -o %{gobuilddir}/bin/vultr-cli %{goipath}
|
||||
|
||||
# Build shell completions.
|
||||
|
|
@ -44,30 +41,39 @@ for SHELL in bash fish zsh; do
|
|||
VULTR_API_KEY=null %{gobuilddir}/bin/%{name} completion $SHELL > %{name}.${SHELL}
|
||||
done
|
||||
|
||||
|
||||
%install
|
||||
%go_vendor_license_install -c %{S:2}
|
||||
%gopkginstall
|
||||
install -m 0755 -vd %{buildroot}%{_bindir}
|
||||
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
||||
|
||||
# Install shell completions.
|
||||
install -Dp %{name}.bash %{buildroot}%{bash_completions_dir}/%{name}
|
||||
install -Dp %{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish
|
||||
install -Dp %{name}.zsh %{buildroot}%{zsh_completions_dir}/_%{name}
|
||||
install -Dp %{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
||||
install -Dp %{name}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
||||
install -Dp %{name}.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
|
||||
|
||||
|
||||
%check
|
||||
%go_vendor_license_check -c %{S:2}
|
||||
%if %{with check}
|
||||
%gotest ./...
|
||||
%check
|
||||
%gocheck
|
||||
%endif
|
||||
|
||||
%files -f %{go_vendor_license_filelist}
|
||||
%license vendor/modules.txt
|
||||
%doc CHANGELOG.md CONTRIBUTING.md README.md
|
||||
%{_bindir}/vultr-cli
|
||||
%{bash_completions_dir}/%{name}
|
||||
%{fish_completions_dir}/%{name}.fish
|
||||
%{zsh_completions_dir}/_%{name}
|
||||
|
||||
%files
|
||||
%license %{golicenses}
|
||||
%doc %{godocs}
|
||||
%{_bindir}/*
|
||||
%{_datadir}/bash-completion/completions/%{name}
|
||||
%dir %{_datadir}/bash-completion
|
||||
%dir %{_datadir}/bash-completion/completions
|
||||
%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
||||
%dir %{_datadir}/fish
|
||||
%dir %{_datadir}/fish/vendor_completions.d
|
||||
%{_datadir}/zsh/site-functions/_%{name}
|
||||
%dir %{_datadir}/zsh
|
||||
%dir %{_datadir}/zsh/site-functions
|
||||
|
||||
%gopkgfiles
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue