generated from demus/golang-rpm-template
58 lines
1.1 KiB
RPMSpec
58 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/flynn/go-docopt
|
|
%global goipath github.com/flynn/go-docopt
|
|
Version: 0.6.1
|
|
%global commit f6dd2ebbb31e9721c860cf1faf5c944aa73e3844
|
|
|
|
%gometa -f
|
|
|
|
%global common_description %{expand:
|
|
A command-line arguments parser that will make you smile.}
|
|
|
|
%global golicenses LICENSE
|
|
%global godocs examples README.md
|
|
|
|
Name: golang-github-flynn-docopt
|
|
Release: %autorelease
|
|
Summary: A command-line arguments parser that will make you smile
|
|
|
|
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
|