Blame golang-github-pact-foundation.spec

fcea90b
# Generated by go2rpm
fcea90b
%bcond_without check
fcea90b
fcea90b
# https://github.com/pact-foundation/pact-go
fcea90b
%global goipath         github.com/pact-foundation/pact-go
fcea90b
Version:                1.0.0
fcea90b
%global tag             v1.0.0-beta.3
fcea90b
%global distprefix      %{nil}
fcea90b
fcea90b
%gometa
fcea90b
fcea90b
%global common_description %{expand:
fcea90b
Pact Go enables consumer driven contract testing, providing a mock service and
fcea90b
DSL for the consumer project, and interaction playback and verification for the
fcea90b
service provider project.}
fcea90b
fcea90b
%global golicenses      LICENSE
fcea90b
%global godocs          examples RELEASING.md CHANGELOG.md CONTRIBUTING.md\\\
fcea90b
                        README.md
fcea90b
fcea90b
Name:           %{goname}
fcea90b
Release:        1.beta.3%{?dist}
fcea90b
Summary:        Contract testing framework for HTTP APIs and non-HTTP messaging systems for Go
fcea90b
fcea90b
License:        MIT
fcea90b
URL:            %{gourl}
fcea90b
Source0:        %{gosource}
fcea90b
fcea90b
BuildRequires:  golang(github.com/gin-gonic/gin)
fcea90b
BuildRequires:  golang(github.com/go-kit/kit/endpoint)
fcea90b
BuildRequires:  golang(github.com/go-kit/kit/log)
fcea90b
BuildRequires:  golang(github.com/go-kit/kit/transport/http)
fcea90b
BuildRequires:  golang(github.com/gorilla/mux)
fcea90b
BuildRequires:  golang(github.com/hashicorp/go-version)
fcea90b
BuildRequires:  golang(github.com/hashicorp/logutils)
fcea90b
BuildRequires:  golang(github.com/spf13/cobra)
fcea90b
fcea90b
%description
fcea90b
%{common_description}
fcea90b
fcea90b
%gopkg
fcea90b
fcea90b
%prep
fcea90b
%goprep
fcea90b
fcea90b
%build
fcea90b
%gobuild -o %{gobuilddir}/bin/pact %{goipath}
fcea90b
fcea90b
%install
fcea90b
%gopkginstall
fcea90b
install -m 0755 -vd                     %{buildroot}%{_bindir}
fcea90b
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
fcea90b
fcea90b
%if %{with check}
fcea90b
%check
fcea90b
# dsl: needs network
fcea90b
%gocheck -d dsl
fcea90b
%endif
fcea90b
fcea90b
%files
fcea90b
%license LICENSE
fcea90b
%doc examples RELEASING.md CHANGELOG.md CONTRIBUTING.md README.md
fcea90b
%{_bindir}/*
fcea90b
fcea90b
%gopkgfiles
fcea90b
fcea90b
%changelog
fcea90b
* Wed May 15 02:34:12 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.0.0-1.beta.3
fcea90b
- Initial package