# Generated by go2rpm # Tests are FUBAR, no upstream bug report page %bcond_with check # https://github.com/twinj/uuid %global goipath github.com/twinj/uuid Version: 1.0.0 %gometa %global common_description %{expand: This package provides RFC 4122 and DCE 1.1 compliant UUIDs. It will generate the following: - Version 1: based on a Timestamp and MAC address as Node id - Version 2: based on DCE Security - Experimental - Version 3: based on MD5 hash - Version 4: based on cryptographically secure random numbers - Version 5: based on SHA-1 hash Functions NewV1, NewV2, NewV3, NewV4, NewV5, New, NewHex and Parse() for generating version 1, 2, 3, 4 and 5 Uuid's.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: Go RFC4122 UUID implementation License: MIT URL: %{gourl} Source0: %{gosource} %if %{with check} # Tests BuildRequires: golang(gopkg.in/stretchr/testify.v1/assert) %endif %description %{common_description} %gopkg %prep %goprep find . -name "*.go" -exec sed -i "s|github.com/myesui/uuid|github.com/twinj/uuid|" "{}" +; %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Wed May 01 20:12:43 CEST 2019 Robert-André Mauchin - 1.0.0-1 - Initial package