# Generated by go2rpm %bcond_without check # https://github.com/oklog/ulid %global goipath github.com/oklog/ulid Version: 2.0.2 %gometa %global common_description %{expand: Universally Unique Lexicographically Sortable Identifier (ULID) in Go.} %global golicenses LICENSE %global godocs AUTHORS.md CHANGELOG.md CONTRIBUTING.md README.md Name: %{goname} Release: 1%{?dist} Summary: Universally Unique Lexicographically Sortable Identifier (ULID) in Go # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/pborman/getopt/v2) %description %{common_description} %gopkg %prep %goprep %build 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 LICENSE %doc AUTHORS.md CHANGELOG.md CONTRIBUTING.md README.md %{_bindir}/* %gopkgfiles %changelog * Wed May 15 00:37:12 CEST 2019 Robert-André Mauchin - 2.0.2-1 - Initial package