Name: traefik Version: 2.3.4 Release: itix1 Summary: The Cloud Native Application Proxy License: MIT Source0: https://github.com/traefik/%{name}/releases/download/v%{version}/%{name}_v%{version}_linux_amd64.tar.gz ExclusiveArch: x86_64 Source1: traefik.service Requires(pre): shadow-utils BuildRequires: systemd %description 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. Pointing Traefik at your orchestrator should be the only onfiguration step you need. # Since we don't recompile from source, disable the build_id checking %global _missing_build_ids_terminate_build 0 %global _build_id_links none %global debug_package %{nil} %prep %setup -q -c cp %{S:0} %{name}.service %build %install install -d %{buildroot}/opt/%{name}/etc/ install -d %{buildroot}/srv/%{name}/ install -D traefik %{buildroot}/opt/%{name}/bin/traefik install -D -m 0644 %{name}.service %{buildroot}/%{_unitdir}/%{name}.service %files %defattr(0644, root, root, 0755) %dir /opt/%{name}/bin %dir /opt/%{name}/etc %dir /srv/%{name} %attr(0755, root, root) /opt/%{name}/bin/traefik %{_unitdir}/%{name}.service %pre getent group itix-svc >/dev/null || groupadd -r itix-svc getent passwd %{name} >/dev/null || useradd -r -g itix-svc \ -d /srv/%{name} -s /sbin/nologin -c "The Cloud Native Application Proxy" \ %{name} exit 0 %changelog * Mon Feb 22 2021 Nicolas MASSE - 2.3.4-itix1 - First release