%define aname acmetool Name: %{aname} Version: 0.0.67 Release: 1%{?dist} Summary: Automatic certificate acquisition tool License: MIT URL: https://github.com/hlandau/acme Group: Applications/System Requires: libcap Conflicts: %{aname}-nocgo %ifarch i386 i686 %define goarch 386_cgo %else %ifarch x86_64 %define goarch amd64_cgo %else %ifarch ppc64le %define goarch ppc64le_cgo %else %define goarch ERROR %endif %endif %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} Source: %{aname}_%{version}.orig.tar.gz %define debug_package %{nil} %description Automatic certificate acquisition tool for ACME servers such as Let's Encrypt. %prep %setup -n %{aname}_%{version}/%{aname}-v%{version}-linux_%{goarch} %build %install install -Dm0755 bin/acmetool $RPM_BUILD_ROOT/usr/bin/acmetool install -Dm0644 doc/acmetool.8 $RPM_BUILD_ROOT/usr/share/man/man8/acmetool.8 %clean rm -rf $RPM_BUILD_ROOT %files %attr(755,root,root) %{_bindir}/acmetool %attr(644,root,root) %{_mandir}/man8/acmetool.8.gz