# Generated by go2rpm 1.6.0 %bcond_without check # https://github.com/multiformats/go-multiaddr %global goipath github.com/multiformats/go-multiaddr Version: 0.5.0 %gometa %global common_description %{expand: Composable and future-proof network addresses.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: Composable and future-proof network addresses License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/ipfs/go-cid) BuildRequires: golang(github.com/multiformats/go-multihash) BuildRequires: golang(github.com/multiformats/go-varint) %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/require) %endif %description %{common_description} %gopkg %prep %goprep %build for cmd in multiaddr; 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 Jun 13 2022 Maxwell G - 0.5.0-1 - Initial package