From 66666feeaf7524f0307cc3f2f2baf6fa2c4afaa826cbb843bdc634f57cd6c90f Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Wed, 21 Feb 2024 18:39:22 +0000 Subject: [PATCH] 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 --- traefik.changes | 5 +++++ traefik.spec | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/traefik.changes b/traefik.changes index 1722f77..72fe9a5 100644 --- a/traefik.changes +++ b/traefik.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 21 14:21:09 UTC 2024 - Johannes Weberhofer + +- Fixed packaging of UI + ------------------------------------------------------------------- Fri Dec 08 12:51:12 UTC 2023 - alexandre.vicenzi@suse.com diff --git a/traefik.spec b/traefik.spec index ba620b3..e1bbc9e 100644 --- a/traefik.spec +++ b/traefik.spec @@ -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