Accepting request 889332 from home:avicenzi:branches:devel:kubic
Updata Traefik to 2.4.8 OBS-URL: https://build.opensuse.org/request/show/889332 OBS-URL: https://build.opensuse.org/package/show/devel:kubic/traefik?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
f73febbfb2
commit
e2a2cb27da
96
traefik.spec
96
traefik.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package traefik
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,58 +15,90 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# Make sure that the binary is not getting stripped.
|
||||
%{go_nostrip}
|
||||
%define project github.com/traefik/traefik
|
||||
%define build_date %(date +"%Y%m%d")
|
||||
|
||||
Name: traefik
|
||||
Version: 1.7.7
|
||||
Version: 2.4.8
|
||||
Release: 0
|
||||
Summary: The Cloud Native Edge Router
|
||||
Summary: The Cloud Native Application Proxy
|
||||
License: MIT
|
||||
Group: Productivity/Networking/Web/Proxy
|
||||
URL: https://traefik.io/
|
||||
Source0: %{name}-v%{version}.tar.xz
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: vendor.tar.gz
|
||||
Source2: traefik.service
|
||||
Source3: traefik.toml
|
||||
BuildRequires: go-bindata
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: golang(API) >= 1.10
|
||||
BuildRequires: golang(API) >= 1.16
|
||||
BuildRequires: golang-packaging
|
||||
Requires(pre): %fillup_prereq
|
||||
BuildRequires: systemd-rpm-macros
|
||||
Recommends: podman
|
||||
%{?systemd_requires}
|
||||
%{go_provides}
|
||||
# Make sure that the binary is not getting stripped.
|
||||
%{go_nostrip}
|
||||
|
||||
%description
|
||||
Traefik listens to your service registry/orchestrator API and instantly
|
||||
generates the routes so your microservices are connected to the outside
|
||||
world -- without further intervention from your part.
|
||||
Traefik (pronounced traffic) is a modern HTTP reverse proxy and load balancer
|
||||
that makes deploying microservices easy. Traefik integrates with your existing
|
||||
infrastructure components (Docker, Swarm mode, Kubernetes, Marathon, Consul,
|
||||
Etcd, Rancher, Amazon ECS) and configures itself automatically and dynamically.
|
||||
|
||||
Traefik is a modern HTTP reverse proxy and load balancer that makes
|
||||
deploying microservices easy. Traefik integrates with your existing
|
||||
infrastructure components (Docker, Swarm mode, Kubernetes, Marathon,
|
||||
Consul, Etcd, Rancher, Amazon ECS, ...) and configures itself
|
||||
automatically and dynamically.
|
||||
|
||||
Pointing Traefik at your orchestrator should be the only configuration
|
||||
step you need.
|
||||
|
||||
Documentation: http://docs.traefik.io/
|
||||
Pointing Traefik at your orchestrator should be the only configuration step you need.
|
||||
|
||||
%prep
|
||||
%setup -q -c -n %{name}-v%{version}
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%{goprep} github.com/containous/traefik
|
||||
%{goprep} %{project}
|
||||
|
||||
# workaround: there is no %{gogenerate} macro
|
||||
cd %{_builddir}/go/src/github.com/containous/traefik;go generate
|
||||
# tarball causes "inconsistent vendoring"
|
||||
tar -xf %{SOURCE1}
|
||||
|
||||
%{gobuild} ./cmd/traefik
|
||||
CGO_ENABLED=0
|
||||
|
||||
go generate
|
||||
|
||||
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/
|
||||
|
||||
%install
|
||||
%{goinstall}
|
||||
%{gofilelist}
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
install -d %{buildroot}/%{_sbindir}
|
||||
install -D -p -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
|
||||
|
||||
%files -f file.lst
|
||||
# service
|
||||
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
|
||||
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
||||
|
||||
%{_bindir}/%{name}
|
||||
# configuration
|
||||
install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}/%{name}.toml
|
||||
|
||||
%pre
|
||||
%service_add_pre %{name}.service
|
||||
|
||||
%post
|
||||
%service_add_post %{name}.service
|
||||
%{fillup_only -n %{name}}
|
||||
|
||||
%preun
|
||||
%service_del_preun %{name}.service
|
||||
|
||||
%postun
|
||||
%service_del_postun %{name}.service
|
||||
|
||||
%files
|
||||
%license LICENSE.md
|
||||
%doc README.md SECURITY.md CONTRIBUTING.md
|
||||
%{_bindir}/%{name}
|
||||
|
||||
%{_unitdir}/%{name}.service
|
||||
%{_sbindir}/rc%{name}
|
||||
|
||||
%dir %{_sysconfdir}/%{name}
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.toml
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user