generated from demus/golang-rpm-template
56 lines
991 B
RPMSpec
56 lines
991 B
RPMSpec
# Generated by go2rpm 1.15.0
|
|
%bcond check 1
|
|
%bcond bootstrap 0
|
|
|
|
%global debug_package %{nil}
|
|
%if %{with bootstrap}
|
|
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
|
|
%endif
|
|
|
|
# https://github.com/dgryski/go-rendezvous
|
|
%global goipath github.com/dgryski/go-rendezvous
|
|
%global commit 9f7001d12a5f0021fd3283525f888b5814ccee27
|
|
|
|
%gometa -f
|
|
|
|
%global common_description %{expand:
|
|
Rendezvous hashing.}
|
|
|
|
%global golicenses LICENSE
|
|
Name: golang-github-dgryski-rendezvous
|
|
Version: 0
|
|
Release: %autorelease -p
|
|
Summary: Rendezvous hashing
|
|
|
|
License: MIT
|
|
URL: %{gourl}
|
|
Source: %{gosource}
|
|
|
|
%description %{common_description}
|
|
|
|
%gopkg
|
|
|
|
%prep
|
|
%goprep -A
|
|
%autopatch -p1 -q
|
|
|
|
%if %{without bootstrap}
|
|
%generate_buildrequires
|
|
%go_generate_buildrequires
|
|
%endif
|
|
|
|
%install
|
|
%gopkginstall
|
|
|
|
%if %{without bootstrap}
|
|
%if %{with check}
|
|
%check
|
|
%gocheck
|
|
%endif
|
|
%endif
|
|
|
|
%gopkgfiles
|
|
|
|
%changelog
|
|
%autochangelog
|