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 After=network.target network-online.target
Requires=network-online.target Requires=network-online.target
AssertFileIsExecutable=/usr/bin/traefik AssertFileIsExecutable=/usr/bin/traefik
AssertPathExists=/etc/traefik/traefik.toml AssertPathExists=/etc/traefik/traefik1.7.toml
[Service] [Service]
Type=notify Type=notify
ExecStart=/usr/bin/traefik --configFile=/etc/traefik/traefik.toml ExecStart=/usr/bin/traefik --configFile=/etc/traefik/traefik1.7.toml
Restart=always Restart=always
WatchdogSec=1s WatchdogSec=1s
PrivateTmp=true PrivateTmp=true

View File

@ -18,14 +18,14 @@
%define project github.com/traefik/traefik %define project github.com/traefik/traefik
%define build_date %(date +"%Y%m%d") %define build_date %(date +"%Y%m%d")
Name: traefik Name: traefik1.7
Version: 1.7.30 Version: 1.7.30
Release: 0 Release: 0
Summary: The Cloud Native Application Proxy Summary: The Cloud Native Application Proxy
License: MIT License: MIT
Group: Productivity/Networking/Web/Proxy Group: Productivity/Networking/Web/Proxy
URL: https://traefik.io/ URL: https://traefik.io/
Source0: %{name}-%{version}.tar.gz Source0: traefik-%{version}.tar.gz
Source1: vendor.tar.gz Source1: vendor.tar.gz
Source2: traefik.service Source2: traefik.service
Source3: traefik.toml 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. Pointing Traefik at your orchestrator should be the only configuration step you need.
%prep %prep
%setup -q %setup -q -n traefik-%{version}
%build %build
%{goprep} %{project} %{goprep} %{project}
@ -64,7 +64,7 @@ go build \
-buildmode=pie \ -buildmode=pie \
-mod=vendor \ -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}" \ -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
install -d %{buildroot}/%{_sbindir} install -d %{buildroot}/%{_sbindir}