# Generated by go2rpm 1.15.0 %bcond check 1 %bcond bootstrap 0 %if %{with bootstrap} %global debug_package %{nil} %endif %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/emersion/go-smtp %global goipath github.com/emersion/go-smtp Version: 0.21.3 %gometa -L -f %global common_description %{expand: 📤 An SMTP client & server library written in Go.} %global golicenses LICENSE %global godocs README.md Name: golang-github-emersion-smtp Release: 1%{?dist} Summary: 📤 An SMTP client & server library written in Go License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %if %{without bootstrap} %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %endif %install %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %endif %if %{without bootstrap} %if %{with check} %check %gocheck %endif %endif %if %{without bootstrap} %files %license LICENSE %doc README.md %{_bindir}/smtp-debug-server %endif %gopkgfiles %changelog * Sat Mar 22 19:30:00 CET 2025 DEREFERENC3D - 0.21.3-1 - Update to version 0.21.3 * Sat Mar 22 19:15:00 CET 2025 DEREFERENC3D - 0.14.0-2 - Regenerate using go2rpm v1.15.0 - fix build by defining "global debug_package" - Fix go2rpm warning: list the binaries without globbing in "files" * Mon Dec 28 15:23:53 CST 2020 proletarius101 - 0.14.0-1 - Initial package