Compare commits
61 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 33118052b8 | |||
| 9c5122e324 | |||
| 0dd1c3a574 | |||
| 90af2e5296 | |||
| 39cd7a580f | |||
| beea08807b | |||
| 2078164a47 | |||
| dfc92757da | |||
| 29797c652d | |||
| 5b2388f607 | |||
| 23073f5714 | |||
| 7ae8fcb7ec | |||
| c0c1a8e073 | |||
| d983db9c14 | |||
| 28d154afae | |||
| b4835f2690 | |||
| dc294f0ca5 | |||
| a577b0a94c | |||
| 386df324c9 | |||
| d975ae5887 | |||
| 6f2e81d370 | |||
| c8cadd3eec | |||
| 45d52dec16 | |||
| fca60cc7e4 | |||
| 204a6382b9 | |||
| e32d288b88 | |||
| 25e163dc23 | |||
| b4b503c9d1 | |||
| 84190f2f5f | |||
| 1ae8c16c11 | |||
| 96854b2a23 | |||
| 4d6508492f | |||
| 4102f58cbc | |||
| 9154f6b025 | |||
| 39fc379735 | |||
| 3aa6af83e5 | |||
| 27f18c83b3 | |||
| 644b2a4881 | |||
| 5206a54012 | |||
| 230cf31f53 | |||
| ddeb6365cc | |||
| e41ded31f3 | |||
| 71711450e6 | |||
| 64b0a29c39 | |||
| 5ee6b635c7 | |||
| 1d275b5439 | |||
| 7af480dd4c | |||
| c84bc28860 | |||
| a51e9009d0 | |||
| fd177241f4 | |||
| 8759a76f3a | |||
| f43ce610ad | |||
| 673e86b58b | |||
| f3ea895420 | |||
| 34446d273c | |||
| db85041ef9 | |||
| eb923a62bf | |||
| 69b47b5bce | |||
| c64d228646 | |||
| a60758cfa2 | |||
| dd81eba46b |
6
_service
6
_service
@@ -2,11 +2,12 @@
|
||||
<service name="obs_scm" mode="manual">
|
||||
<param name="url">https://gitlab.com/gitlab-org/cli.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">v1.48.0</param>
|
||||
<param name="package-meta">yes</param>
|
||||
<param name="revision">v1.80.4</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="filename">glab</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="filename">glab</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual">
|
||||
</service>
|
||||
@@ -14,6 +15,7 @@
|
||||
</service>
|
||||
<!-- services below are running at buildtime -->
|
||||
<service name="tar" mode="buildtime">
|
||||
<param name="package-meta">yes</param>
|
||||
</service>
|
||||
<service name="recompress" mode="buildtime">
|
||||
<param name="file">*.tar</param>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://gitlab.com/gitlab-org/cli.git</param>
|
||||
<param name="changesrevision">2db471edb1eb73439eecc04e0a6ab5acc1f32c80</param></service></servicedata>
|
||||
<param name="changesrevision">f4b518e9120bb54002d9cda816d3011de757feea</param></service></servicedata>
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f0d6530b0fede2699f9f1152809d72190f76640670ce49d6a626deb03f43f2ae
|
||||
size 18878477
|
||||
3
glab-1.80.4.obscpio
Normal file
3
glab-1.80.4.obscpio
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e6c966ea250f345b5e6e482bc88555ca8490725f265e45df8a8851887949a8e5
|
||||
size 50997261
|
||||
41
glab-disable_update_check.patch
Normal file
41
glab-disable_update_check.patch
Normal file
@@ -0,0 +1,41 @@
|
||||
From 232c6c4924d2874a226cc072cd82328e85afa039 Mon Sep 17 00:00:00 2001
|
||||
From: Johannes Kastl <git@johannes-kastl.de>
|
||||
Date: Sun, 16 Feb 2025 10:30:09 +0100
|
||||
Subject: [PATCH] disable update check
|
||||
|
||||
Signed-off-by: Johannes Kastl <git@johannes-kastl.de>
|
||||
---
|
||||
commands/config/config.go | 2 +-
|
||||
internal/config/config.yaml.lock | 2 +-
|
||||
internal/config/config_stub.go | 2 +-
|
||||
3 files changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/internal/config/config.yaml.lock b/internal/config/config.yaml.lock
|
||||
index b783ffd2..dda86da1 100644
|
||||
--- a/internal/config/config.yaml.lock
|
||||
+++ b/internal/config/config.yaml.lock
|
||||
@@ -7,7 +7,7 @@ browser:
|
||||
# Set your desired Markdown renderer style. Available options are [dark, light, notty]. To set a custom style, refer to https://github.com/charmbracelet/glamour#styles
|
||||
glamour_style: dark
|
||||
# Allow glab to automatically check for updates and notify you when there are new updates.
|
||||
-check_update: true
|
||||
+check_update: false
|
||||
# Last update check timestamp, used for checking when the last update check was performed.
|
||||
last_update_check_timestamp:
|
||||
# Whether or not to display hyperlink escape characters when listing items like issues or merge requests. Set to TRUE to display hyperlinks in TTYs only. Force hyperlinks by setting FORCE_HYPERLINKS=1 as an environment variable.
|
||||
diff --git a/internal/config/config_stub.go b/internal/config/config_stub.go
|
||||
index 9a11633f..4332a6c2 100644
|
||||
--- a/internal/config/config_stub.go
|
||||
+++ b/internal/config/config_stub.go
|
||||
@@ -57,7 +57,7 @@ func rootConfig() *yaml.Node {
|
||||
},
|
||||
{
|
||||
Kind: yaml.ScalarNode,
|
||||
- Value: "true",
|
||||
+ Value: "false",
|
||||
},
|
||||
{
|
||||
HeadComment: "# Last update check timestamp, used for checking when the last update check was performed.",
|
||||
--
|
||||
2.47.2
|
||||
|
||||
1369
glab.changes
1369
glab.changes
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
name: glab
|
||||
version: 1.48.0
|
||||
mtime: 1729094881
|
||||
commit: 2db471edb1eb73439eecc04e0a6ab5acc1f32c80
|
||||
version: 1.80.4
|
||||
mtime: 1766080966
|
||||
commit: f4b518e9120bb54002d9cda816d3011de757feea
|
||||
|
||||
39
glab.spec
39
glab.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package glab
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
# Copyright (c) 2021-2022 Orville Q. Song <orville@anislet.dev>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -17,10 +17,8 @@
|
||||
#
|
||||
|
||||
|
||||
%define __arch_install_post export NO_BRP_STRIP_DEBUG=true
|
||||
|
||||
Name: glab
|
||||
Version: 1.48.0
|
||||
Version: 1.80.4
|
||||
Release: 0
|
||||
Summary: A GitLab command line tool
|
||||
License: MIT
|
||||
@@ -28,12 +26,19 @@ Group: Development/Tools/Other
|
||||
URL: https://gitlab.com/gitlab-org/cli
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: vendor.tar.gz
|
||||
# https://sources.debian.org/src/glab/1.49.0-1/debian/patches/0001-Disable-update-check.patch
|
||||
Patch0: glab-disable_update_check.patch
|
||||
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?almalinux_version} || 0%{?rocky_version}
|
||||
BuildRequires: golang >= 1.23.0
|
||||
BuildRequires: git
|
||||
BuildRequires: golang >= 1.25.4
|
||||
%else
|
||||
BuildRequires: go1.23 >= 1.23.0
|
||||
BuildRequires: git-core
|
||||
BuildRequires: go1.25 >= 1.25.4
|
||||
BuildRequires: golang-packaging
|
||||
%endif
|
||||
BuildRequires: bash-completion
|
||||
BuildRequires: fish
|
||||
BuildRequires: zsh
|
||||
Suggests: glab-doc
|
||||
|
||||
%description
|
||||
@@ -81,12 +86,20 @@ Zsh command line completion support for %{name}.
|
||||
%autosetup -p 1 -a 1 -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
# hash will be shortened by COMMIT_HASH:0:8 later
|
||||
COMMIT_HASH="$(sed -n 's/commit: \(.*\)/\1/p' %_sourcedir/%{name}.obsinfo)"
|
||||
|
||||
DATE_FMT="+%%Y-%%m-%%dT%%H:%%M:%%SZ"
|
||||
BUILD_DATE=$(date -u -d "@${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u -r "${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u "${DATE_FMT}")
|
||||
|
||||
go build \
|
||||
-mod=vendor \
|
||||
-buildmode=pie \
|
||||
-ldflags "-s -w -X main.version=%{version} -X main.build=$BUILD_DATE -X main.debugMode=false" \
|
||||
-trimpath \
|
||||
-ldflags "-X main.version=v%{version} \
|
||||
-X main.build=${BUILD_DATE} \
|
||||
-X main.commit=${COMMIT_HASH:0:8} \
|
||||
-X main.debugMode=false" \
|
||||
./cmd/glab
|
||||
|
||||
# Build HTML docs
|
||||
@@ -121,6 +134,9 @@ 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}
|
||||
|
||||
%check
|
||||
%{buildroot}/%{_bindir}/%{name} version | grep %{version}
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
@@ -132,15 +148,12 @@ install -D -m0644 %{name}.bash %{buildroot}%{_datadir}/bash-completion/completio
|
||||
%exclude %{_docdir}/%{name}/README.md
|
||||
|
||||
%files bash-completion
|
||||
%dir %{_datadir}/bash-completion/
|
||||
%{_datadir}/bash-completion/completions/
|
||||
%{_datadir}/bash-completion/completions/%{name}
|
||||
|
||||
%files fish-completion
|
||||
%dir %{_datadir}/fish/
|
||||
%{_datadir}/fish/vendor_completions.d/
|
||||
%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
||||
|
||||
%files zsh-completion
|
||||
%dir %{_datadir}/zsh/
|
||||
%{_datadir}/zsh/site-functions/
|
||||
%{_datadir}/zsh/site-functions/_%{name}
|
||||
|
||||
%changelog
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e14ea84fb47cccc7c8a44e10c0b1d87819a784374be1ed9ff85bf9272500fd58
|
||||
size 7859360
|
||||
oid sha256:0e1fab225b3f1018e1a5434417e2e620c2126bfb0a2589701c630eb21ae75f91
|
||||
size 15018990
|
||||
|
||||
Reference in New Issue
Block a user