# Generated by go2rpm # Needs network %bcond_with check # https://github.com/hashicorp/go-sockaddr %global goipath github.com/hashicorp/go-sockaddr Version: 1.0.2 %gometa %global common_description %{expand: Socket address convenience functions for Go. go-sockaddr is a convenience library that makes doing the right thing with IP addresses easy. go-sockaddr is loosely modeled after the UNIX sockaddr_t and creates a union of the family of sockaddr_t types (see below for an ascii diagram). Library documentation is available at https://godoc.org/github.com/hashicorp/go-sockaddr. The primary intent of the library was to make it possible to define heuristics for selecting the correct IP addresses when a configuration is evaluated at runtime. See the docs, template package, tests, and CLI utility for details and hints as to how to use this library.} %global golicenses LICENSE %global godocs README.md README-sockaddr.md README-template.md %global gosupfiles glide.lock glide.yaml Name: %{goname} Release: 1%{?dist} Summary: Ip address/unix socket convenience functions for go # Upstream license specification: MPL-2.0 License: MPLv2.0 URL: %{gourl} Source0: %{gosource} Source1: glide.yaml Source2: glide.lock BuildRequires: golang(github.com/hashicorp/errwrap) BuildRequires: golang(github.com/mitchellh/cli) BuildRequires: golang(github.com/mitchellh/go-wordwrap) BuildRequires: golang(github.com/ryanuber/columnize) %description %{common_description} %gopkg %prep %goprep rm -rf cmd/sockaddr/vendor mv cmd/sockaddr/README.md README-sockaddr.md mv template/README.md README-template.md cp %{S:1} %{S:2} . %build export GO111MODULE=off 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 %{golicenses} %doc %{godocs} %{_bindir}/* %gopkgfiles %changelog * Sun Apr 21 17:58:39 CEST 2019 Robert-André Mauchin - 1.0.2-2 - Update to new macros * Fri Mar 15 2019 Robert-André Mauchin - 1.0.2-1 - Release 1.0.2 * Fri Feb 01 2019 Fedora Release Engineering - 0-0.10.gitaf174a6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Oct 23 2018 Nicolas Mailhot - 0-0.9.gitaf174a6 - redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/ * Fri Jul 13 2018 Fedora Release Engineering - 0-0.8.gitaf174a6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 12 2018 Jan Chaloupka - 0-0.7.gitaf174a6 - Upload glide files * Wed Feb 28 2018 Jan Chaloupka - 0-0.6.20161202gitaf174a6 - Autogenerate some parts using the new macros * Wed Feb 07 2018 Fedora Release Engineering - 0-0.5.gitaf174a6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 0-0.4.gitaf174a6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0-0.3.gitaf174a6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Jun 14 2017 Jan Chaloupka - 0-0.2.gitaf174a6 - Remove cyclic dep related: #1410393 * Thu Jan 05 2017 Jan Chaloupka - 0-0.1.gitaf174a6 - First package for Fedora resolves: #1410393