diff --git a/caddy.spec b/caddy.spec index 8caedee..a7a3b3d 100644 --- a/caddy.spec +++ b/caddy.spec @@ -43,6 +43,12 @@ Summary: HTTP/2 web server with automatic HTTPS License: ASL 2.0 and MIT URL: https://caddyserver.com ExclusiveArch: %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm} aarch64 ppc64le s390x %{mips}} +%{?go_compiler:BuildRequires: compiler(go-compiler)} +# https://github.com/mholt/caddy/pull/2024 +BuildRequires: golang >= 1.9 +BuildRequires: systemd +%{?systemd_requires} +Provides: webserver # caddy %global import_path github.com/mholt/caddy @@ -84,9 +90,6 @@ Source10: caddy.conf Source11: caddy.service Source12: index.html -%{?go_compiler:BuildRequires: compiler(go-compiler)} -# https://github.com/mholt/caddy/pull/2024 -BuildRequires: golang >= 1.9 %if %{with geoip} BuildRequires: golang(github.com/oschwald/maxminddb-golang) @@ -102,10 +105,6 @@ BuildRequires: golang(github.com/aws/aws-sdk-go/aws/session) BuildRequires: golang(github.com/aws/aws-sdk-go/service/route53) %endif -BuildRequires: systemd -%{?systemd_requires} -Provides: webserver - # vendored libraries (Source0) Provides: bundled(golang(cloud.google.com/go/compute/metadata)) = 7a4ba9f439fbc50061834a4063b57cf7222ba83f Provides: bundled(golang(github.com/aead/chacha20)) = 8d6ce0550041f9d97e7f15ec27ed489f8bbbb0fb