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