Accepting request 935787 from home:Orville:Devel
GLab is an unoffical command line tools for GitLab works just like Github's gh. OBS-URL: https://build.opensuse.org/request/show/935787 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/glab?expand=0&rev=1
This commit is contained in:
commit
98bd7926ec
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
17
_service
Normal file
17
_service
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<services>
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="url">https://github.com/profclems/glab.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="revision">v1.21.1</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="versionrewrite-pattern">v(.*)</param>
|
||||||
|
<param name="filename">glab</param>
|
||||||
|
<param name="changesgenerate">enable</param>
|
||||||
|
</service>
|
||||||
|
<service name="tar" mode="manual" />
|
||||||
|
<service name="recompress" mode="manual">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="disabled" />
|
||||||
|
</services>
|
3
glab-1.21.1.tar.xz
Normal file
3
glab-1.21.1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5fed6956d28acb83fbb8018d7954ad435bb1efd335e064bcc016e4fb1a35dbc2
|
||||||
|
size 16343016
|
3
glab-vendor.tar.gz
Normal file
3
glab-vendor.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:233377bab355d5d9fab6b6efebc415745236fb3b37cbbd428d03c09b9abfeda6
|
||||||
|
size 6157365
|
24
glab.changes
Normal file
24
glab.changes
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Dec 05 11:42:32 UTC 2021 - Orville Q. Song <orville@anislet.dev>
|
||||||
|
|
||||||
|
- Update to version 1.21.1:
|
||||||
|
* fix debian packaging installer location
|
||||||
|
* auth login use OverridableDefault
|
||||||
|
* Login using default hostname string
|
||||||
|
* Move glinstance to pkg
|
||||||
|
* {go.mod,go.sum}: update dependencies
|
||||||
|
* api: fix wrong comment
|
||||||
|
* fix: error 404 when creating release
|
||||||
|
* Handle paginated response in pipeline.GetPipelineJobs
|
||||||
|
* Update ssh-key.go
|
||||||
|
* feat(cmdutils): Add group milestones to the prompt
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 4 16:39:53 UTC 2021 - Orville Q. Song <orville@anislet.dev>
|
||||||
|
|
||||||
|
- Init glab Package
|
||||||
|
|
||||||
|
An open-source GitLab command line tool bringing GitLab's cool features to your command line.
|
||||||
|
|
||||||
|
Current Version: v1.21.1
|
||||||
|
Commit Hash: 5cb2858d1fb7a5317e89259fc4ac135414e99be2
|
146
glab.spec
Normal file
146
glab.spec
Normal file
@ -0,0 +1,146 @@
|
|||||||
|
# spec file for package glab
|
||||||
|
#
|
||||||
|
# Copyright (c) 2021 Orville Q. Song <orville@anislet.dev>
|
||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
%global build_date %(date +%Y-%m-%d)
|
||||||
|
|
||||||
|
%global provider github
|
||||||
|
%global provider_tld com
|
||||||
|
%global project profclems
|
||||||
|
%global repo glab
|
||||||
|
%global provider_prefix %{provider}.%{provider_tld}/%{project}
|
||||||
|
%global import_path %{provider_prefix}/%{repo}
|
||||||
|
|
||||||
|
Name: glab
|
||||||
|
Version: 1.21.1
|
||||||
|
Release: 0
|
||||||
|
Summary: An open-source GitLab command line tool
|
||||||
|
License: MIT
|
||||||
|
Group: Development/Tools/Other
|
||||||
|
URL: https://github.com/profclems/glab
|
||||||
|
Source0: %{name}-%{version}.tar.xz
|
||||||
|
Source1: %{name}-vendor.tar.gz
|
||||||
|
BuildRequires: golang-packaging
|
||||||
|
BuildRequires: golang(API) >= 1.16
|
||||||
|
BuildRequires: %{python_module Sphinx}
|
||||||
|
Suggests: glab-doc
|
||||||
|
|
||||||
|
%description
|
||||||
|
glab is an open-source GitLab command line tool bringing GitLab's cool features to your command line.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for GLab
|
||||||
|
Group: Documentation/HTML
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
glab is an open-source GitLab command line tool bringing GitLab's cool features to your command line.
|
||||||
|
|
||||||
|
%package bash-completion
|
||||||
|
Summary: Bash completion for %{name}
|
||||||
|
Group: System/Shells
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
Supplements: (%{name} and bash)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description bash-completion
|
||||||
|
Bash command line completion support for %{name}.
|
||||||
|
|
||||||
|
%package fish-completion
|
||||||
|
Summary: Fish completion for %{name}
|
||||||
|
Group: System/Shells
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
Supplements: (%{name} and fish)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description fish-completion
|
||||||
|
Fish command line completion support for %{name}.
|
||||||
|
|
||||||
|
%package zsh-completion
|
||||||
|
Summary: Zsh completion for %{name}
|
||||||
|
Group: System/Shells
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
Supplements: (%{name} and zsh)
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description zsh-completion
|
||||||
|
Zsh command line completion support for %{name}.
|
||||||
|
|
||||||
|
%{go_nostrip}
|
||||||
|
%{go_provides}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-%{version}
|
||||||
|
%setup -a1 %{SOURCE1}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%goprep .
|
||||||
|
mkdir -p vendor/%{provider_prefix}
|
||||||
|
ln -s . vendor/%{import_path}
|
||||||
|
%gobuild -mod=vendor -ldflags "-s -w -X main.version=%{version} -X main.build=%{build_date} -X main.debugMode=false" ./cmd/glab
|
||||||
|
|
||||||
|
# Build HTML docs
|
||||||
|
go run -v -p 4 -x -mod=vendor ./cmd/gen-docs/
|
||||||
|
make -C docs html
|
||||||
|
|
||||||
|
# Build manpages
|
||||||
|
go run -v -p 4 -x -mod=vendor ./cmd/gen-docs/ -m --path ./docs/build/man
|
||||||
|
gzip -r ./docs/build/man
|
||||||
|
|
||||||
|
# Generate completion files
|
||||||
|
go run -v -p 4 -x -mod=vendor ./cmd/glab/ completion -s bash > glab.bash
|
||||||
|
go run -v -p 4 -x -mod=vendor ./cmd/glab/ completion -s zsh > glab.zsh
|
||||||
|
go run -v -p 4 -x -mod=vendor ./cmd/glab/ completion -s fish > glab.fish
|
||||||
|
|
||||||
|
%install
|
||||||
|
%goinstall
|
||||||
|
|
||||||
|
# Install HTML docs
|
||||||
|
for i in $(find ./docs/build/html/ -type f | grep -vE "_source|.buildinfo|objects.inv"); do install -D -m0644 $i %{buildroot}%{_docdir}/%{name}/$(echo $i | sed -e s@^./docs/build/html/@@); done;
|
||||||
|
|
||||||
|
# Install manpages
|
||||||
|
for i in $(find ./docs/build/man/ -type f); do install -D -m0644 $i %{buildroot}%{_mandir}/man1/$(echo $i | sed -e s@^./docs/build/man/@@); done;
|
||||||
|
|
||||||
|
# Install comletion files
|
||||||
|
install -D -m0644 %{name}.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
|
||||||
|
install -D -m0644 %{name}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
||||||
|
install -D -m0644 %{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%{_mandir}/*/*
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_docdir}/%{name}
|
||||||
|
%exclude %{_docdir}/%{name}/README.md
|
||||||
|
|
||||||
|
%files bash-completion
|
||||||
|
%dir %{_datadir}/bash-completion/
|
||||||
|
%{_datadir}/bash-completion/completions/
|
||||||
|
|
||||||
|
%files fish-completion
|
||||||
|
%dir %{_datadir}/fish/
|
||||||
|
%{_datadir}/fish/vendor_completions.d/
|
||||||
|
|
||||||
|
%files zsh-completion
|
||||||
|
%dir %{_datadir}/zsh/
|
||||||
|
%{_datadir}/zsh/site-functions/
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user