generated from demus/golang-rpm-template
98 lines
2.6 KiB
RPMSpec
98 lines
2.6 KiB
RPMSpec
# Generated by go2rpm 1.15.0
|
|
%bcond check 1
|
|
%bcond bootstrap 0
|
|
|
|
%if %{with bootstrap}
|
|
%global debug_package %{nil}
|
|
%endif
|
|
|
|
%if %{with bootstrap}
|
|
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
|
|
%endif
|
|
|
|
# https://github.com/onsi/ginkgo
|
|
%global goipath github.com/onsi/ginkgo
|
|
Version: 1.16.5
|
|
%global tag v1.16.5
|
|
|
|
%gometa -f
|
|
|
|
%global godevelheader %{expand:
|
|
Provides: golang(github.com/onsi/ginkgo/ginkgo) = %version-%release
|
|
Provides: golang(github.com/onsi/ginkgo/ginkgo)(tag=%tag) = %version-%release
|
|
}
|
|
|
|
%global common_description %{expand:
|
|
A Modern Testing Framework for Go.}
|
|
|
|
%global golicenses LICENSE reporters/stenographer/support/go-\\\
|
|
colorable/LICENSE reporters/stenographer/support/go-\\\
|
|
isatty/LICENSE
|
|
%global godocs example CHANGELOG.md CONTRIBUTING.md README.md\\\
|
|
RELEASING.md\\\
|
|
integration/_fixtures/focused_fixture/README.md\\\
|
|
reporters/stenographer/support/README.md\\\
|
|
reporters/stenographer/support/go-colorable/README.md\\\
|
|
reporters/stenographer/support/go-isatty/README.md
|
|
|
|
Name: golang-github-onsi-ginkgo
|
|
Release: %autorelease -b 7
|
|
Summary: A Modern Testing Framework for Go
|
|
|
|
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
|
|
|
|
%if %{without bootstrap}
|
|
%build
|
|
for cmd in ginkgo integration/_fixtures/no_tests; do
|
|
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
|
|
done
|
|
%endif
|
|
|
|
%install
|
|
%gopkginstall
|
|
%if %{without bootstrap}
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
|
%endif
|
|
|
|
%if %{without bootstrap}
|
|
%if %{with check}
|
|
%check
|
|
export ACK_GINKGO_DEPRECATIONS=1.16.5
|
|
export ACK_GINKGO_RC=true
|
|
%gocheck -d integration
|
|
%endif
|
|
%endif
|
|
|
|
%if %{without bootstrap}
|
|
%files
|
|
%license LICENSE reporters/stenographer/support/go-colorable/LICENSE
|
|
%license reporters/stenographer/support/go-isatty/LICENSE
|
|
%doc example CHANGELOG.md CONTRIBUTING.md README.md RELEASING.md
|
|
%doc integration/_fixtures/focused_fixture/README.md
|
|
%doc reporters/stenographer/support/README.md
|
|
%doc reporters/stenographer/support/go-colorable/README.md
|
|
%doc reporters/stenographer/support/go-isatty/README.md
|
|
%{_bindir}/*
|
|
%endif
|
|
|
|
%gopkgfiles
|
|
|
|
%changelog
|
|
%autochangelog
|