Release 0.14.1
Convert to go-vendor-tools Fix shell completions
This commit is contained in:
@@ -1,2 +1,6 @@
|
||||
|
||||
.idea/
|
||||
|
||||
BUILD/
|
||||
RPMS/
|
||||
SRPMS/
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
[archive]
|
||||
post_commands = [
|
||||
[
|
||||
"touch", "vendor/github.com/go-authgate/sdk-go/LICENSE",
|
||||
]
|
||||
]
|
||||
|
||||
[licensing]
|
||||
detector = "askalono"
|
||||
|
||||
[[licensing.licenses]]
|
||||
path = "vendor/gopkg.in/yaml.v3/LICENSE"
|
||||
sha256sum = "d18f6323b71b0b768bb5e9616e36da390fbd39369a81807cca352de4e4e6aa0b"
|
||||
expression = "MIT AND (MIT AND Apache-2.0)"
|
||||
|
||||
[[licensing.licenses]]
|
||||
path = "vendor/github.com/go-authgate/sdk-go/LICENSE"
|
||||
sha256sum = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
||||
expression = "MIT"
|
||||
[[licensing.licenses]]
|
||||
path = "vendor/github.com/cloudflare/circl/LICENSE"
|
||||
sha256sum = "b0da1764fe4d13d610b695536fc3f2ebc362482d053a1cd258e36975bc6b97a7"
|
||||
expression = "BSD-3-Clause"
|
||||
[[licensing.licenses]]
|
||||
path = "vendor/github.com/emirpasic/gods/LICENSE"
|
||||
sha256sum = "871b440e9b348d6b2485c72e15f1d18f4cf8ee7bb424cbcd854b6a4a772b61d8"
|
||||
expression = "BSD-2-Clause AND ISC"
|
||||
[[licensing.licenses]]
|
||||
path = "vendor/github.com/kevinburke/ssh_config/LICENSE"
|
||||
sha256sum = "a15a6f732df3a033a71853ce1d255bd671f00fbc537fa629b78d71baecda0ace"
|
||||
expression = "MIT"
|
||||
@@ -0,0 +1,3 @@
|
||||
SHA512 (v0.14.1.tar.gz) = 5df1d68614769b4defaa88ac0cca725fdeed360cd63ecc1e2ffae9419747f9d15f5cb0a7301cb3fdfab10c33ceda26712f2117b821c91d39e1671a11a0e3ea6d
|
||||
SHA512 (vendor.tar.bz2) = 3d92c89f254e1de3d9af2bf88ef50e6e6805a995b1bd9165e3a7429ce236b2dd3eac9bd6925cbe62e339e80c3fdd7c4c0bb8a16120e6220288709acd42c715e9
|
||||
SHA512 (go-vendor-tools.toml) = 9e1db5ee5f5869cab4678667f5ee621a2e56009af703efaa406b4b24874888b854e59e63ecbd39314ba96bfd75093ed44ac36dd23995e378303abc1c5bbf4929
|
||||
@@ -1,3 +1,14 @@
|
||||
# Generated by go2rpm 1.19.0
|
||||
%bcond check 1
|
||||
|
||||
# scancode has a lot of dependencies, so it can be disabled for a faster build
|
||||
# or when its deps are unavailable.
|
||||
%if %{defined rhel} || "%{_arch}" == "i386"
|
||||
%global go_vendor_license_check_disable 1
|
||||
%endif
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
%global major_version 0
|
||||
%global minor_version 14
|
||||
%global micro_version 1
|
||||
@@ -5,11 +16,10 @@
|
||||
%global goipath code.gitea.io/tea
|
||||
%global forgeurl https://gitea.com/gitea/tea/
|
||||
%global tag v%{major_version}.%{minor_version}.%{micro_version}
|
||||
%define debug_package %{nil}
|
||||
|
||||
Version: %{major_version}.%{minor_version}.%{micro_version}
|
||||
|
||||
%gometa
|
||||
%gometa -L -f
|
||||
%global _docdir_fmt %{name}
|
||||
%global golicenses DCO LICENSE
|
||||
|
||||
@@ -19,15 +29,20 @@ on one or more Gitea instances and provides local helpers like
|
||||
'tea pull checkout'
|
||||
}
|
||||
|
||||
Name: tea
|
||||
Name: tea
|
||||
Release: %autorelease
|
||||
Summary: The official CLI for Gitea
|
||||
URL: %{gourl}
|
||||
License: MIT
|
||||
Source0: %{gosource}
|
||||
URL: %{gourl}
|
||||
# Generated by go-vendor-tools
|
||||
License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND OFL-1.1
|
||||
|
||||
Source: %{gosource}
|
||||
# Generated by go-vendor-tools
|
||||
Source: vendor.tar.bz2
|
||||
Source: go-vendor-tools.toml
|
||||
|
||||
BuildRequires: go >= 1.26.0
|
||||
BuildRequires: git make go-srpm-macros
|
||||
BuildRequires: git make go-srpm-macros demus-packaging
|
||||
Requires: git
|
||||
|
||||
%description
|
||||
@@ -36,26 +51,45 @@ Requires: git
|
||||
%gopkg
|
||||
|
||||
%prep
|
||||
%goprep
|
||||
%verify_source_checksum
|
||||
%goprep -p1
|
||||
%{__tar} -xf %{S:1}
|
||||
|
||||
%generate_buildrequires
|
||||
%go_vendor_license_buildrequires -c %{S:2}
|
||||
|
||||
|
||||
%build
|
||||
go mod vendor
|
||||
make
|
||||
%global gomodulesmode GO111MODULE=on
|
||||
%gobuild -o %{gobuilddir}/bin/tea
|
||||
%__mkdir_p %{gobuilddir}/generated
|
||||
%{gobuilddir}/bin/%{name} completion bash > %{gobuilddir}/generated/%{name}.bash
|
||||
%{gobuilddir}/bin/%{name} completion zsh > %{gobuilddir}/generated/%{name}.zsh
|
||||
%{gobuilddir}/bin/%{name} completion fish > %{gobuilddir}/generated/%{name}.fish
|
||||
%{gobuilddir}/bin/%{name} man --out %{gobuilddir}/generated/%{name}.1
|
||||
|
||||
%install
|
||||
install -D -m 755 %{name} $RPM_BUILD_ROOT%{_bindir}/%{name}
|
||||
install -D -m 644 contrib/autocomplete.sh $RPM_BUILD_ROOT%{bash_completions_dir}/%{name}
|
||||
install -D -m 644 contrib/autocomplete.zsh $RPM_BUILD_ROOT%{zsh_completions_dir}/_%{name}
|
||||
%go_vendor_license_install -c %{S:2}
|
||||
%{__install} -D -m 0755 %{gobuilddir}/bin/tea %{buildroot}%{_bindir}/tea
|
||||
%{__install} -D -m 0755 %{gobuilddir}/generated/%{name}.bash %{buildroot}%{bash_completions_dir}/%{name}
|
||||
%{__install} -D -m 0755 %{gobuilddir}/generated/%{name}.zsh %{buildroot}%{zsh_completions_dir}/_%{name}
|
||||
%{__install} -D -m 0755 %{gobuilddir}/generated/%{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish
|
||||
%{__install} -D -m 0644 %{gobuilddir}/generated/%{name}.1 %{buildroot}%{_mandir}/1/%{name}.1
|
||||
|
||||
%check
|
||||
make test
|
||||
%dnl make test
|
||||
%go_vendor_license_check -c %{S:2}
|
||||
%if %{with check}
|
||||
%gotest $(go list ./... | grep -v /tests/)
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license %{golicenses}
|
||||
%doc
|
||||
%files -f %{go_vendor_license_filelist}
|
||||
%doc docs CHANGELOG.md CONTRIBUTING.md README.md
|
||||
%{_bindir}/tea
|
||||
%{bash_completions_dir}/%{name}
|
||||
%{zsh_completions_dir}/_%{name}
|
||||
%{fish_completions_dir}/%{name}.fish
|
||||
%{_mandir}/1/%{name}.*
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user