# Generated by go2rpm 1.3 %bcond_without check # https://github.com/emersion/go-webdav %global goipath github.com/emersion/go-webdav Version: 0.3.0 %gometa %global common_description %{expand: A Go library for WebDAV, CalDAV and CardDAV.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: A Go library for WebDAV, CalDAV and CardDAV License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/emersion/go-ical) BuildRequires: golang(github.com/emersion/go-vcard) %description %{common_description} %gopkg %prep %goprep %build for cmd in cmd/* ; 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 README.md %{_bindir}/* %gopkgfiles %changelog * Mon Dec 28 15:26:16 CST 2020 proletarius101 - 0.3.0-1 - Initial package