SHA256
1
0
forked from pool/traefik1.7

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
This commit is contained in:
Richard Brown 2021-05-17 09:48:14 +00:00 committed by Git OBS Bridge
parent e88ab1942d
commit 9bdad8a4dc
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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}