60 lines
1.1 KiB
RPMSpec
60 lines
1.1 KiB
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/spiffe/go-spiffe
|
||
|
%global goipath github.com/spiffe/go-spiffe
|
||
|
Version: 2.4.0
|
||
|
|
||
|
%gometa -f -i
|
||
|
|
||
|
%global common_description %{expand:
|
||
|
Golang library for SPIFFE support.}
|
||
|
|
||
|
%global golicenses LICENSE
|
||
|
%global godocs CHANGELOG.md README.md examples
|
||
|
|
||
|
Name: golang-github-spiffe
|
||
|
Release: %autorelease
|
||
|
Summary: Golang library for SPIFFE support
|
||
|
|
||
|
License: Apache-2.0
|
||
|
URL: %{gourl}
|
||
|
Source: %{gosource}
|
||
|
|
||
|
%description %{common_description}
|
||
|
|
||
|
%gopkg
|
||
|
|
||
|
%prep
|
||
|
%goprep -A
|
||
|
%dnl %autopatch -p1
|
||
|
# remove examples and test referencing examples
|
||
|
%{__rm} v2/spiffegrpc/grpccredentials/credentials_test.go
|
||
|
%{__rm} -fr v2/examples
|
||
|
|
||
|
%if %{without bootstrap}
|
||
|
%generate_buildrequires
|
||
|
%go_generate_buildrequires
|
||
|
%endif
|
||
|
|
||
|
%install
|
||
|
%gopkginstall
|
||
|
|
||
|
%if %{without bootstrap}
|
||
|
%if %{with check}
|
||
|
%check
|
||
|
%gocheck
|
||
|
%endif
|
||
|
%endif
|
||
|
|
||
|
%gopkgfiles
|
||
|
|
||
|
%changelog
|
||
|
%autochangelog
|