From fcea90b8ab644745c852ffa1ac4d2a6bbebac1ca Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Jul 01 2019 12:11:38 +0000 Subject: Initial import Signed-off-by: Robert-André Mauchin --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..09249e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pact-go-1.0.0-beta.3.tar.gz diff --git a/golang-github-pact-foundation.spec b/golang-github-pact-foundation.spec new file mode 100644 index 0000000..48b40b5 --- /dev/null +++ b/golang-github-pact-foundation.spec @@ -0,0 +1,69 @@ +# 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-1.beta.3 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..aec78f2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pact-go-1.0.0-beta.3.tar.gz) = fc31c9cfa176bce72f1d4c9ba36d234403f01da8b5f5c1b07e98f4e8399478eb7f68801cedd0639f8b833d26f234534753a1e95a66390cb14ff21177371e82b8