# Generated by go2rpm 1 %bcond_without check # https://github.com/coredns/corefile-migration %global goipath github.com/coredns/corefile-migration Version: 1.0.10 %gometa %global common_description %{expand: Library and tools for migrating the CoreDNS corefile.} %global golicenses LICENSE %global godocs README.md corefile-tool/README.md Name: %{goname} Release: 1%{?dist} Summary: Library and tools for migrating the CoreDNS corefile # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/caddyserver/caddy/caddyfile) BuildRequires: golang(github.com/lithammer/dedent) BuildRequires: golang(github.com/spf13/cobra) %description %{common_description} %gopkg %prep %goprep %build for cmd in corefile-tool; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc corefile-tool/README.md %{_bindir}/* %gopkgfiles %changelog * Tue Aug 18 21:39:36 CEST 2020 Robert-André Mauchin - 1.0.10-1 - Initial package