fix path in tar rules; .gear/tags updated; spec file v2 update
This commit is contained in:
parent
aca2baae8e
commit
1b9eaeee01
@ -1,14 +1,16 @@
|
||||
%define _unpackaged_files_terminate_build 1
|
||||
%global import_path github.com/oauth2-proxy/oauth2-proxy
|
||||
|
||||
Name: oauth2-proxy
|
||||
Version: 7.7.1
|
||||
Release: alt1
|
||||
|
||||
Group: Security/Networking
|
||||
Summary: OAuth2 Proxy for authentication
|
||||
License: MIT
|
||||
URL: https://github.com/oauth2-proxy/oauth2-proxy/tree/v7.7.1
|
||||
Vcs: git@github.com:oauth2-proxy/oauth2-proxy.git
|
||||
Url: https://github.com/oauth2-proxy/oauth2-proxy/tree/v7.7.1
|
||||
Vcs: https://github.com:oauth2-proxy/oauth2-proxy.git
|
||||
Source0: %name-%version.tar
|
||||
Group: Security/Networking
|
||||
|
||||
ExclusiveArch: %go_arches
|
||||
|
||||
@ -23,16 +25,22 @@ Keycloak, GitHub and others) to validate accounts by email, domain or group.
|
||||
%setup
|
||||
|
||||
%build
|
||||
export GO111MODULE=on
|
||||
export GOPATH=$(mktemp -d)
|
||||
go mod tidy
|
||||
go build -o bin/oauth2-proxy ./cmd/oauth2-proxy
|
||||
export BUILDDIR="$PWD/.build" # Используется в %golang_install
|
||||
export IMPORT_PATH="%import_path" # Используется в %golang_prepare
|
||||
export LDFLAGS="-X github.com/oauth2-proxy/oauth2-proxy/v7/pkg/version.VERSION=%version" # Используется в %golang-build
|
||||
export GOPATH="$BUILDDIR:%go_path" # Используется в %golang_install
|
||||
|
||||
%golang_prepare
|
||||
%golang_build .
|
||||
# %make release VERSION=%version
|
||||
|
||||
%install
|
||||
install -Dm755 bin/oauth2-proxy %buildroot%_bindir/oauth2-proxy
|
||||
export IGNORE_SOURCES=1 # Используется в %golang_install
|
||||
%golang_install
|
||||
|
||||
%files
|
||||
%_bindir/oauth2-proxy
|
||||
%doc *.md *.yml *.yaml LICENSE
|
||||
%_bindir/*
|
||||
|
||||
%changelog
|
||||
* Thu Oct 24 2024 Artyom Sinyugin <writers@altlinux.org> 7.7.1-alt1
|
||||
|
@ -1,2 +1,2 @@
|
||||
tar: v@version@
|
||||
spec: .gear/oauth2-proxy.spec
|
||||
tar: v@version@:.
|
||||
spec: .gear/oauth2-proxy.spec
|
||||
|
6
.gear/tags/ec431998b95fb99c806a092fbd5869790ee48f75
Normal file
6
.gear/tags/ec431998b95fb99c806a092fbd5869790ee48f75
Normal file
@ -0,0 +1,6 @@
|
||||
object 6fb020149a995b31d7faf03da3ce91765e3d432f
|
||||
type commit
|
||||
tag v7.7.1
|
||||
tagger github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> 1728405534 +0000
|
||||
|
||||
Release v7.7.1
|
@ -0,0 +1 @@
|
||||
ec431998b95fb99c806a092fbd5869790ee48f75 v7.7.1
|
Loading…
Reference in New Issue
Block a user