From 9bdad8a4dcb66d8d9f482ae37ee53c2a5a306b77b235356797bee2da4370ba18 Mon Sep 17 00:00:00 2001 From: Richard Brown Date: Mon, 17 May 2021 09:48:14 +0000 Subject: [PATCH] Accepting request 892933 from home:avicenzi:branches:devel:kubic Fix package name OBS-URL: https://build.opensuse.org/request/show/892933 OBS-URL: https://build.opensuse.org/package/show/devel:kubic/traefik1.7?expand=0&rev=2 --- traefik.service | 4 ++-- traefik.changes => traefik1.7.changes | 0 traefik.spec => traefik1.7.spec | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) rename traefik.changes => traefik1.7.changes (100%) rename traefik.spec => traefik1.7.spec (95%) diff --git a/traefik.service b/traefik.service index 95228dd..121326b 100644 --- a/traefik.service +++ b/traefik.service @@ -4,11 +4,11 @@ Documentation=https://doc.traefik.io/traefik/ After=network.target network-online.target Requires=network-online.target AssertFileIsExecutable=/usr/bin/traefik -AssertPathExists=/etc/traefik/traefik.toml +AssertPathExists=/etc/traefik/traefik1.7.toml [Service] Type=notify -ExecStart=/usr/bin/traefik --configFile=/etc/traefik/traefik.toml +ExecStart=/usr/bin/traefik --configFile=/etc/traefik/traefik1.7.toml Restart=always WatchdogSec=1s PrivateTmp=true diff --git a/traefik.changes b/traefik1.7.changes similarity index 100% rename from traefik.changes rename to traefik1.7.changes diff --git a/traefik.spec b/traefik1.7.spec similarity index 95% rename from traefik.spec rename to traefik1.7.spec index 13ab097..8c83f24 100644 --- a/traefik.spec +++ b/traefik1.7.spec @@ -18,14 +18,14 @@ %define project github.com/traefik/traefik %define build_date %(date +"%Y%m%d") -Name: traefik +Name: traefik1.7 Version: 1.7.30 Release: 0 Summary: The Cloud Native Application Proxy License: MIT Group: Productivity/Networking/Web/Proxy URL: https://traefik.io/ -Source0: %{name}-%{version}.tar.gz +Source0: traefik-%{version}.tar.gz Source1: vendor.tar.gz Source2: traefik.service Source3: traefik.toml @@ -48,7 +48,7 @@ Etcd, Rancher, Amazon ECS) and configures itself automatically and dynamically. Pointing Traefik at your orchestrator should be the only configuration step you need. %prep -%setup -q +%setup -q -n traefik-%{version} %build %{goprep} %{project} @@ -64,7 +64,7 @@ go build \ -buildmode=pie \ -mod=vendor \ -ldflags "-s -w -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}" \ - -o traefik ./cmd/traefik/ + -o %{name} ./cmd/traefik/ %install install -d %{buildroot}/%{_sbindir}