# Modified by M. Webb from output generated by go2rpm 1.16.0.post0 # All references to go-vendor-tools and related output removed for compatibility with EL9 # https://github.com/Zuplu/postfix-tlspol %global goipath github.com/Zuplu/postfix-tlspol Version: 1.8.12 %gometa -L -f %global common_description %{expand: Lightweight MTA-STS + DANE/TLSA resolver and TLS policy server for Postfix, prioritizing DANE.} Name: postfix-tlspol Release: 1 Summary: Lightweight MTA-STS + DANE/TLSA resolver and TLS policy server for Postfix, prioritizing DANE License: See LICENSE File URL: %{gourl} Source0: %{gosource} Source1: %{archivename}-vendor.tar.bz2 BuildRequires: go-rpm-macros %description %{common_description} %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %build %gobuild -o %{gobuilddir}/bin/postfix-tlspol %{goipath} %install install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %files %license LICENSE %doc README.md SECURITY.md %{_bindir}/postfix-tlspol