diff --git a/_service b/_service index 93d5957..8edb3b5 100644 --- a/_service +++ b/_service @@ -2,19 +2,18 @@ https://gitlab.com/gitlab-org/cli.git git - v1.25.3 + v1.26.0 @PARENT_TAG@ v(.*) glab enable - - + + *.tar gz - glab-1.25.3.tar.gz diff --git a/_servicedata b/_servicedata index 3310705..6aa8e9e 100644 --- a/_servicedata +++ b/_servicedata @@ -3,4 +3,4 @@ https://github.com/profclems/glab.git 612ff864276e848c4cfdef187b5f16f5c52f3c25 https://gitlab.com/gitlab-org/cli.git - 7ab3ef14820c565a9430fa0da58a491048699638 \ No newline at end of file + ef363646f539ed785d29e2b07c20b5f8f00c4d45 \ No newline at end of file diff --git a/glab-1.25.3.tar.gz b/glab-1.25.3.tar.gz deleted file mode 100644 index 6455e90..0000000 --- a/glab-1.25.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0dd3e301869d39513929a4130252a5c72847faf741058647ec60cad3597c064b -size 16513663 diff --git a/glab-1.26.0.obscpio b/glab-1.26.0.obscpio new file mode 100644 index 0000000..682c8fb --- /dev/null +++ b/glab-1.26.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:933769570d4f3ed4627b1466dbf1860aad0daa53071301c1426820c072f1aed9 +size 18248717 diff --git a/glab.changes b/glab.changes index 8234d94..e764575 100644 --- a/glab.changes +++ b/glab.changes @@ -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 + +- adapt to new URL https://gitlab.com/gitlab-org/cli +- BuildRequire go1.18 + ------------------------------------------------------------------- Tue Feb 07 14:07:31 UTC 2023 - pdostal@suse.com diff --git a/glab.obsinfo b/glab.obsinfo new file mode 100644 index 0000000..2c3c5f6 --- /dev/null +++ b/glab.obsinfo @@ -0,0 +1,4 @@ +name: glab +version: 1.26.0 +mtime: 1678474854 +commit: ef363646f539ed785d29e2b07c20b5f8f00c4d45 diff --git a/glab.spec b/glab.spec index dcfcad7..e873d2d 100644 --- a/glab.spec +++ b/glab.spec @@ -17,27 +17,19 @@ # -%global build_date 2021-01-11 - -%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} +%define __arch_install_post export NO_BRP_STRIP_DEBUG=true Name: glab -Version: 1.25.3 +Version: 1.26.0 Release: 0 Summary: An open-source GitLab command line tool License: MIT Group: Development/Tools/Other -URL: https://github.com/profclems/glab +URL: https://gitlab.com/gitlab-org/cli Source0: %{name}-%{version}.tar.gz Source1: vendor.tar.gz -BuildRequires: %{python_module Sphinx} BuildRequires: golang-packaging -BuildRequires: golang(API) >= 1.16 +BuildRequires: golang(API) >= 1.18 Suggests: glab-doc %description @@ -81,26 +73,25 @@ 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 +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" \ + ./cmd/glab # Build HTML docs -go run -v -p 4 -x -mod=vendor ./cmd/gen-docs/ -make -C docs html +go run ./cmd/gen-docs/docs.go # Build manpages -go run -v -p 4 -x -mod=vendor ./cmd/gen-docs/ -m --path ./docs/build/man -gzip -r ./docs/build/man +go run -v -p 4 -x -mod=vendor ./cmd/gen-docs/docs.go --manpage --path ./share/man/man1 +gzip -r ./share/man/man1 # Generate completion files 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 %install -%goinstall +mkdir -p "%{buildroot}/%{_bindir}/" +install -D -m 0755 %{name} "%{buildroot}/%{_bindir}/%{name}" # 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 -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}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish install -D -m0644 %{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name} diff --git a/vendor.tar.gz b/vendor.tar.gz index 95816b8..5a74564 100644 --- a/vendor.tar.gz +++ b/vendor.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e4bebfa334590cb74ef17982dfc90dd48592a519b98d90dddf3bb20d1e0e5ebc -size 6007158 +oid sha256:85de5f44570c8f361a36e5ae2ea5d380f3d679e6eaea82034830dfde724e9b8f +size 7080665