## START: Set by rpmautospec %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm %bcond_without check # https://github.com/go-acme/lego %global goipath github.com/go-acme/lego Version: 4.4.0 %gometa %global goaltipaths github.com/xenolf/lego github.com/go-acme/lego/v4 %global common_description %{expand: Let's Encrypt client and ACME library written in Go.} %global golicenses LICENSE %global godocs docs CHANGELOG.md CONTRIBUTING.md README.md Name: %{goname} Release: %autorelease Summary: Let's Encrypt client and ACME library written in Go License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(cloud.google.com/go/compute/metadata) BuildRequires: golang(github.com/akamai/AkamaiOPEN-edgegrid-golang/configdns-v2) BuildRequires: golang(github.com/akamai/AkamaiOPEN-edgegrid-golang/edgegrid) BuildRequires: golang(github.com/aliyun/alibaba-cloud-sdk-go/sdk) BuildRequires: golang(github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials) BuildRequires: golang(github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests) BuildRequires: golang(github.com/aliyun/alibaba-cloud-sdk-go/services/alidns) 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/lightsail) BuildRequires: golang(github.com/aws/aws-sdk-go/service/route53) BuildRequires: golang(github.com/Azure/azure-sdk-for-go/services/dns/mgmt/2017-09-01/dns) BuildRequires: golang(github.com/Azure/go-autorest/autorest) BuildRequires: golang(github.com/Azure/go-autorest/autorest/azure) BuildRequires: golang(github.com/Azure/go-autorest/autorest/azure/auth) BuildRequires: golang(github.com/Azure/go-autorest/autorest/to) BuildRequires: golang(github.com/BurntSushi/toml) BuildRequires: golang(github.com/cenkalti/backoff/v4) BuildRequires: golang(github.com/cloudflare/cloudflare-go) BuildRequires: golang(github.com/cpu/goacmedns) BuildRequires: golang(github.com/dnsimple/dnsimple-go/dnsimple) BuildRequires: golang(github.com/exoscale/egoscale) BuildRequires: golang(github.com/google/go-querystring/query) BuildRequires: golang(github.com/gophercloud/gophercloud) BuildRequires: golang(github.com/gophercloud/gophercloud/openstack) BuildRequires: golang(github.com/gophercloud/gophercloud/openstack/dns/v2/recordsets) BuildRequires: golang(github.com/gophercloud/gophercloud/openstack/dns/v2/zones) BuildRequires: golang(github.com/gophercloud/utils/openstack/clientconfig) BuildRequires: golang(github.com/iij/doapi) BuildRequires: golang(github.com/iij/doapi/protocol) BuildRequires: golang(github.com/infobloxopen/infoblox-go-client) BuildRequires: golang(github.com/labbsr0x/bindman-dns-webhook/src/client) BuildRequires: golang(github.com/linode/linodego) BuildRequires: golang(github.com/liquidweb/liquidweb-go/client) BuildRequires: golang(github.com/liquidweb/liquidweb-go/network) BuildRequires: golang(github.com/miekg/dns) BuildRequires: golang(github.com/namedotcom/go/namecom) BuildRequires: golang(github.com/nrdcg/auroradns) BuildRequires: golang(github.com/nrdcg/desec) BuildRequires: golang(github.com/nrdcg/dnspod-go) BuildRequires: golang(github.com/nrdcg/goinwx) BuildRequires: golang(github.com/nrdcg/namesilo) BuildRequires: golang(github.com/nrdcg/porkbun) BuildRequires: golang(github.com/OpenDNS/vegadns2client) BuildRequires: golang(github.com/oracle/oci-go-sdk-24/common) BuildRequires: golang(github.com/oracle/oci-go-sdk-24/dns) BuildRequires: golang(github.com/ovh/go-ovh/ovh) BuildRequires: golang(github.com/pquerna/otp/totp) BuildRequires: golang(github.com/rainycape/memcache) BuildRequires: golang(github.com/sacloud/libsacloud/api) BuildRequires: golang(github.com/sacloud/libsacloud/sacloud) BuildRequires: golang(github.com/scaleway/scaleway-sdk-go/api/domain/v2beta1) BuildRequires: golang(github.com/scaleway/scaleway-sdk-go/scw) BuildRequires: golang(github.com/transip/gotransip/v6) BuildRequires: golang(github.com/transip/gotransip/v6/domain) BuildRequires: golang(github.com/urfave/cli) BuildRequires: golang(github.com/vinyldns/go-vinyldns/vinyldns) BuildRequires: golang(github.com/vultr/govultr/v2) BuildRequires: golang(golang.org/x/crypto/ocsp) BuildRequires: golang(golang.org/x/net/context) BuildRequires: golang(golang.org/x/net/idna) BuildRequires: golang(golang.org/x/net/publicsuffix) BuildRequires: golang(golang.org/x/oauth2) BuildRequires: golang(golang.org/x/oauth2/clientcredentials) BuildRequires: golang(golang.org/x/oauth2/google) BuildRequires: golang(golang.org/x/time/rate) BuildRequires: golang(google.golang.org/api/dns/v1) BuildRequires: golang(google.golang.org/api/googleapi) BuildRequires: golang(google.golang.org/api/option) BuildRequires: golang(gopkg.in/ns1/ns1-go.v2/rest) BuildRequires: golang(gopkg.in/ns1/ns1-go.v2/rest/model/dns) BuildRequires: golang(gopkg.in/square/go-jose.v2) BuildRequires: golang(gopkg.in/square/go-jose.v2/jwt) %if %{with check} # Tests BuildRequires: golang(github.com/aws/aws-sdk-go/aws/credentials) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/mock) BuildRequires: golang(github.com/stretchr/testify/require) BuildRequires: golang(github.com/stretchr/testify/suite) BuildRequires: golang(github.com/transip/gotransip/v6/rest) BuildRequires: golang(gopkg.in/yaml.v2) %endif %description %{common_description} %gopkg %prep %goprep sed -i "s|github.com/oracle/oci-go-sdk|github.com/oracle/oci-go-sdk-24|" $(find . -name "*.go" -type f) %build %gobuild -o %{gobuilddir}/bin/lego %{goipath}/cmd/lego %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check # Needs network %gocheck -d challenge/dns01 \ -t providers/dns \ -d platform/wait \ -d challenge/resolver %endif %files %license LICENSE %doc docs CHANGELOG.md CONTRIBUTING.md README.md %{_bindir}/* %gopkgfiles %changelog * Sat Jul 31 2021 Robert-André Mauchin 4.4.0-1 - Uncommitted changes * Thu Jul 22 2021 Fedora Release Engineering - 4.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun May 30 14:18:16 CEST 2021 Robert-André Mauchin - 4.3.1-1 - Update to 4.3.1 - Close: rhbz#1920128 * Tue Jan 26 2021 Fedora Release Engineering - 4.1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 07 05:57:57 CET 2020 Robert-André Mauchin - 4.1.3-1 - Update to 4.1.3 - Close: rhbz#1874670 * Fri Aug 21 17:53:08 CEST 2020 Robert-André Mauchin - 3.8.0-3 - Add patch to remove obsoleted linodego version * Mon Jul 27 2020 Fedora Release Engineering - 3.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jul 23 00:27:19 CEST 2020 Robert-André Mauchin - 3.8.0-1 - Update to 3.8.0 * Thu Apr 02 18:22:42 CET 2020 Robert-André Mauchin - 3.5.0-1 - Update to 3.5.0 * Tue Jan 28 2020 Fedora Release Engineering - 2.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Sep 02 2019 Carl George - 2.7.2-1 - Latest upstream v2 * Thu Jul 25 2019 Fedora Release Engineering - 2.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 02 16:35:24 CEST 2019 Robert-André Mauchin - 2.5.0-1 - Initial package