SHA256
1
0
forked from pool/traefik

Accepting request 1148744 from home:weberho:branches:openSUSE:Factory

- Fixed packaging of UI
- Removed debugging line

OBS-URL: https://build.opensuse.org/request/show/1148744
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/traefik?expand=0&rev=25
This commit is contained in:
Alexandre Vicenzi 2024-02-21 18:39:22 +00:00 committed by Git OBS Bridge
parent 657b51e00e
commit 66666feeaf
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 21 14:21:09 UTC 2024 - Johannes Weberhofer <jweberhofer@weberhofer.at>
- Fixed packaging of UI
-------------------------------------------------------------------
Fri Dec 08 12:51:12 UTC 2023 - alexandre.vicenzi@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package traefik
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -56,7 +56,7 @@ Pointing Traefik at your orchestrator should be the only configuration step you
tar -xf %{SOURCE1}
# unpack webui
tar -xf %{SOURCE4}
tar -xf %{SOURCE4} -C webui --strip-components=2
# see script/generate
go generate
@ -66,9 +66,9 @@ build_date=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +"%%Y%%m%%d")
CGO_ENABLED=0 GOGC=off go build \
-buildmode=pie \
-mod=vendor \
-ldflags "-X github.com/traefik/traefik/v3/pkg/version.Version=%{version} \
-X github.com/traefik/traefik/v3/pkg/version.Codename='' \
-X github.com/traefik/traefik/v3/pkg/version.BuildDate=${build_date}" \
-ldflags "-X github.com/traefik/traefik/v2/pkg/version.Version=%{version} \
-X github.com/traefik/traefik/v2/pkg/version.Codename='' \
-X github.com/traefik/traefik/v2/pkg/version.BuildDate=${build_date}" \
-installsuffix nocgo \
-o traefik \
./cmd/traefik