diff --git a/traefik.spec b/traefik.spec index d75eb8f..32e81e9 100644 --- a/traefik.spec +++ b/traefik.spec @@ -54,9 +54,10 @@ Documentation: http://docs.traefik.io/ %build %{goprep} github.com/containous/traefik -# Start building ... -go generate -%{gobuild} +# workaround: there is no %{gogenerate} macro +cd %{_builddir}/go/src/github.com/containous/traefik;go generate + +%{gobuild} ./cmd/traefik %install %{goinstall}