SHA256
1
0
forked from pool/glab

Accepting request 1073339 from devel:tools:scm

OBS-URL: https://build.opensuse.org/request/show/1073339
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glab?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2023-03-21 16:43:09 +00:00 committed by Git OBS Bridge
commit c2d3b868d9
8 changed files with 92 additions and 37 deletions

View File

@ -2,19 +2,18 @@
<service name="obs_scm" mode="disabled"> <service name="obs_scm" mode="disabled">
<param name="url">https://gitlab.com/gitlab-org/cli.git</param> <param name="url">https://gitlab.com/gitlab-org/cli.git</param>
<param name="scm">git</param> <param name="scm">git</param>
<param name="revision">v1.25.3</param> <param name="revision">v1.26.0</param>
<param name="versionformat">@PARENT_TAG@</param> <param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param> <param name="versionrewrite-pattern">v(.*)</param>
<param name="filename">glab</param> <param name="filename">glab</param>
<param name="changesgenerate">enable</param> <param name="changesgenerate">enable</param>
</service> </service>
<service name="tar" mode="disabled" /> <service name="tar" mode="buildtime" />
<service name="recompress" mode="disabled"> <service name="recompress" mode="buildtime">
<param name="file">*.tar</param> <param name="file">*.tar</param>
<param name="compression">gz</param> <param name="compression">gz</param>
</service> </service>
<service name="set_version" mode="disabled" /> <service name="set_version" mode="disabled" />
<service name="go_modules" mode="disabled"> <service name="go_modules" mode="disabled">
<param name="archive">glab-1.25.3.tar.gz</param>
</service> </service>
</services> </services>

View File

@ -3,4 +3,4 @@
<param name="url">https://github.com/profclems/glab.git</param> <param name="url">https://github.com/profclems/glab.git</param>
<param name="changesrevision">612ff864276e848c4cfdef187b5f16f5c52f3c25</param></service><service name="tar_scm"> <param name="changesrevision">612ff864276e848c4cfdef187b5f16f5c52f3c25</param></service><service name="tar_scm">
<param name="url">https://gitlab.com/gitlab-org/cli.git</param> <param name="url">https://gitlab.com/gitlab-org/cli.git</param>
<param name="changesrevision">7ab3ef14820c565a9430fa0da58a491048699638</param></service></servicedata> <param name="changesrevision">ef363646f539ed785d29e2b07c20b5f8f00c4d45</param></service></servicedata>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0dd3e301869d39513929a4130252a5c72847faf741058647ec60cad3597c064b
size 16513663

3
glab-1.26.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:933769570d4f3ed4627b1466dbf1860aad0daa53071301c1426820c072f1aed9
size 18248717

View File

@ -1,3 +1,58 @@
-------------------------------------------------------------------
Wed Mar 15 08:08:40 UTC 2023 - kastl@b1-systems.de
- set tar and recompress services to "buildtime"
- use obscpio file for local go-modules run
- cleanup spec file, remove old %go macros
- Update to version 1.26.0:
* Merge security fix for v1.26.0 release
* refactor(test): use http constants in tests
* refactor: use HTTP constants in code
* chore: Remove profclems/glab from .goreleaser.yml
* chore: add debug environment variable to Makefile
* chore: remove build date and add architecture
* refactor(project): Stop requsting for README when viewing
project on web
* docs: add guidelines for triaging bugs
* chore: Modify UserAgent to be more like other CLIs
* docs: self-managed doc improvements
* docs: fix link to issue command in README
* chore(ci/test): separate integration tests
* docs: update core commands with links
* fix(issue create): better error message when users are not
members
* docs: reword homebrew section
* docs: Build jump list of core commands
* docs(installation): Add asdf-vm to install options
* feat: variable export
* docs: specify [flags] position in clone command
* feat(schedule): Add command to run schedules
* refactor: use strings.Join in comma separated list functions
* fix(repo): URL encode branch name when viewing on web
* refactor(test): combine issue/incident list tests
* refactor(issue/view): extract issuable/list package
* fix(project): Remove repo override functionality
* chore: Add test-race make target
* ci: lock down go lint image version
* docs: Add Fedora to installation options
* docs: Updating instructions for homebrew release
* ci(coverage): report correct coverage
* fix(ci): Fix issue where `ci get` fails if user is not
maintainer
* fix: check-update command output to StdErr
* refactor(test): adjust issuable tests to cover both types
* refactor(issue/view): extract issuable/view package
* chore: Expose make gen-docs task
* chore: Run tests in different Go versions
* fix: making sure homebrew doesn't try to open a browser
* test: fix timing issue with release tests
-------------------------------------------------------------------
Wed Mar 15 06:53:12 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- adapt to new URL https://gitlab.com/gitlab-org/cli
- BuildRequire go1.18
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 07 14:07:31 UTC 2023 - pdostal@suse.com Tue Feb 07 14:07:31 UTC 2023 - pdostal@suse.com

4
glab.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: glab
version: 1.26.0
mtime: 1678474854
commit: ef363646f539ed785d29e2b07c20b5f8f00c4d45

View File

@ -17,27 +17,19 @@
# #
%global build_date 2021-01-11 %define __arch_install_post export NO_BRP_STRIP_DEBUG=true
%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 Name: glab
Version: 1.25.3 Version: 1.26.0
Release: 0 Release: 0
Summary: An open-source GitLab command line tool Summary: An open-source GitLab command line tool
License: MIT License: MIT
Group: Development/Tools/Other Group: Development/Tools/Other
URL: https://github.com/profclems/glab URL: https://gitlab.com/gitlab-org/cli
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz Source1: vendor.tar.gz
BuildRequires: %{python_module Sphinx}
BuildRequires: golang-packaging BuildRequires: golang-packaging
BuildRequires: golang(API) >= 1.16 BuildRequires: golang(API) >= 1.18
Suggests: glab-doc Suggests: glab-doc
%description %description
@ -81,26 +73,25 @@ BuildArch: noarch
%description zsh-completion %description zsh-completion
Zsh command line completion support for %{name}. Zsh command line completion support for %{name}.
%{go_nostrip}
%{go_provides}
%prep %prep
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%setup -a1 %{SOURCE1} %setup -a1 %{SOURCE1}
%build %build
%goprep . DATE_FMT="+%%Y-%%m-%%dT%%H:%%M:%%SZ"
mkdir -p vendor/%{provider_prefix} 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}")
ln -s . vendor/%{import_path} go build \
%gobuild -mod=vendor -ldflags "-s -w -X main.version=%{version} -X main.build=%{build_date} -X main.debugMode=false" ./cmd/glab -mod=vendor \
-buildmode=pie \
-ldflags "-s -w -X main.version=%{version} -X main.build=$BUILD_DATE -X main.debugMode=false" \
./cmd/glab
# Build HTML docs # Build HTML docs
go run -v -p 4 -x -mod=vendor ./cmd/gen-docs/ go run ./cmd/gen-docs/docs.go
make -C docs html
# Build manpages # Build manpages
go run -v -p 4 -x -mod=vendor ./cmd/gen-docs/ -m --path ./docs/build/man go run -v -p 4 -x -mod=vendor ./cmd/gen-docs/docs.go --manpage --path ./share/man/man1
gzip -r ./docs/build/man gzip -r ./share/man/man1
# Generate completion files # Generate completion files
go run -v -p 4 -x -mod=vendor ./cmd/glab/ completion -s bash > %{name}.bash go run -v -p 4 -x -mod=vendor ./cmd/glab/ completion -s bash > %{name}.bash
@ -108,15 +99,21 @@ go run -v -p 4 -x -mod=vendor ./cmd/glab/ completion -s zsh > %{name}.zsh
go run -v -p 4 -x -mod=vendor ./cmd/glab/ completion -s fish > %{name}.fish go run -v -p 4 -x -mod=vendor ./cmd/glab/ completion -s fish > %{name}.fish
%install %install
%goinstall mkdir -p "%{buildroot}/%{_bindir}/"
install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}"
# Install HTML docs # 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; mkdir -p "%{buildroot}/%{_docdir}/%{name}/"
cp -vr ./docs/source/* %{buildroot}%{_docdir}/%{name}/
find %{buildroot}%{_docdir}/%{name}/ -type f -exec chmod 644 {} "+"
find %{buildroot}%{_docdir}/%{name}/ -type d -exec chmod 755 {} "+"
# Install manpages # 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; mkdir -p "%{buildroot}/%{_mandir}/man1/"
cp ./share/man/man1/* %{buildroot}%{_mandir}/man1/
find %{buildroot}%{_mandir}/man1/ -type f -exec chmod 644 {} "+"
# Install comletion files # Install completion files
install -D -m0644 %{name}.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name} 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}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
install -D -m0644 %{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name} install -D -m0644 %{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:e4bebfa334590cb74ef17982dfc90dd48592a519b98d90dddf3bb20d1e0e5ebc oid sha256:85de5f44570c8f361a36e5ae2ea5d380f3d679e6eaea82034830dfde724e9b8f
size 6007158 size 7080665