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:
commit
c2d3b868d9
7
_service
7
_service
@ -2,19 +2,18 @@
|
||||
<service name="obs_scm" mode="disabled">
|
||||
<param name="url">https://gitlab.com/gitlab-org/cli.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="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="filename">glab</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="tar" mode="disabled" />
|
||||
<service name="recompress" mode="disabled">
|
||||
<service name="tar" mode="buildtime" />
|
||||
<service name="recompress" mode="buildtime">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">gz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled" />
|
||||
<service name="go_modules" mode="disabled">
|
||||
<param name="archive">glab-1.25.3.tar.gz</param>
|
||||
</service>
|
||||
</services>
|
||||
|
@ -3,4 +3,4 @@
|
||||
<param name="url">https://github.com/profclems/glab.git</param>
|
||||
<param name="changesrevision">612ff864276e848c4cfdef187b5f16f5c52f3c25</param></service><service name="tar_scm">
|
||||
<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>
|
@ -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
3
glab-1.26.0.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:933769570d4f3ed4627b1466dbf1860aad0daa53071301c1426820c072f1aed9
|
||||
size 18248717
|
55
glab.changes
55
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 <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
|
||||
|
||||
|
4
glab.obsinfo
Normal file
4
glab.obsinfo
Normal file
@ -0,0 +1,4 @@
|
||||
name: glab
|
||||
version: 1.26.0
|
||||
mtime: 1678474854
|
||||
commit: ef363646f539ed785d29e2b07c20b5f8f00c4d45
|
51
glab.spec
51
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}
|
||||
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e4bebfa334590cb74ef17982dfc90dd48592a519b98d90dddf3bb20d1e0e5ebc
|
||||
size 6007158
|
||||
oid sha256:85de5f44570c8f361a36e5ae2ea5d380f3d679e6eaea82034830dfde724e9b8f
|
||||
size 7080665
|
||||
|
Loading…
Reference in New Issue
Block a user