diff --git a/caddy.spec b/caddy.spec index 096c7ee..ec37c5c 100644 --- a/caddy.spec +++ b/caddy.spec @@ -9,6 +9,7 @@ %bcond_without powerdns %bcond_without rackspace %bcond_without rfc2136 +%bcond_without route53 %bcond_with debug @@ -64,6 +65,13 @@ BuildRequires: golang >= 1.8 %if %{with googlecloud} BuildRequires: golang(google.golang.org/api/dns/v1) %endif +%if %{with route53} +BuildRequires: golang(github.com/aws/aws-sdk-go/aws) +BuildRequires: golang(github.com/aws/aws-sdk-go/aws/client) +BuildRequires: golang(github.com/aws/aws-sdk-go/aws/request) +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} @@ -141,6 +149,7 @@ package is an unofficial build with the following plugins: %{?with_powerdns: tls.dns.powerdns} %{?with_rackspace: tls.dns.rackspace} %{?with_rfc2136: tls.dns.rfc2136} +%{?with_route53: tls.dns.route53} %prep @@ -152,7 +161,7 @@ tar -C vendor/%{import_path_realip} --strip-components 1 -x -f %{S:1} cp vendor/%{import_path_realip}/LICENSE LICENSE-realip %endif -%if %{with cloudflare}%{with digitalocean}%{with dyn}%{with gandi}%{with googlecloud}%{with namecheap}%{with powerdns}%{with rackspace}%{with rfc2136} +%if %{with cloudflare}%{with digitalocean}%{with dyn}%{with gandi}%{with googlecloud}%{with namecheap}%{with powerdns}%{with rackspace}%{with rfc2136}%{with route53} mkdir -p vendor/%{import_path_dnsproviders} tar -C vendor/%{import_path_dnsproviders} --strip-components 1 -x -f %{S:2} cp vendor/%{import_path_dnsproviders}/LICENSE LICENSE-dnsproviders @@ -172,6 +181,7 @@ sed -e '/other plugins/ a \\t// plugins added during rpmbuild' \ %{?with_powerdns: -e '/other plugins/ a \\t_ "%{import_path_dnsproviders}/pdns"'} \ %{?with_rackspace: -e '/other plugins/ a \\t_ "%{import_path_dnsproviders}/rackspace"'} \ %{?with_rfc2136: -e '/other plugins/ a \\t_ "%{import_path_dnsproviders}/rfc2136"'} \ +%{?with_route53: -e '/other plugins/ a \\t_ "%{import_path_dnsproviders}/route53"'} \ -i caddy/caddymain/run.go @@ -218,7 +228,7 @@ exit 0 %files %license LICENSE.txt %{?with_realip:%license LICENSE-realip} -%if %{with cloudflare}%{with digitalocean}%{with dyn}%{with gandi}%{with googlecloud}%{with namecheap}%{with powerdns}%{with rackspace}%{with rfc2136} +%if %{with cloudflare}%{with digitalocean}%{with dyn}%{with gandi}%{with googlecloud}%{with namecheap}%{with powerdns}%{with rackspace}%{with rfc2136}%{with route53} %license LICENSE-dnsproviders LICENSE-lego %endif %doc dist/README.txt @@ -234,6 +244,7 @@ exit 0 %changelog * Fri Mar 30 2018 Carl George - 0.10.11-2 - Add googlecloud dns provider +- Add route53 dns provider * Sat Feb 24 2018 Carl George - 0.10.11-1 - Latest upstream