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
9211840
Version:                1.5.1
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}
71e3bc7
Release:        1%{?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/hashicorp/go-version)
fcea90b
BuildRequires:  golang(github.com/hashicorp/logutils)
fcea90b
BuildRequires:  golang(github.com/spf13/cobra)
fcea90b
71e3bc7
%if %{with check}
71e3bc7
# Tests
71e3bc7
BuildRequires:  golang(github.com/stretchr/testify/assert)
71e3bc7
%endif
71e3bc7
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
71e3bc7
%gocheck -d dsl -d command
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
9211840
* Mon Dec 21 10:26:56 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1.5.1-1
9211840
- Update to 1.5.1
9211840
- Close: rhbz#1868942
9211840
71e3bc7
* Thu Jul 30 20:24:22 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1.4.3-1
71e3bc7
- Update to 1.4.3
71e3bc7
c1d0851
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4.beta.3
c1d0851
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c1d0851
c4f9110
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3.beta.3
c4f9110
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c4f9110
c19ae48
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2.beta.3
c19ae48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
c19ae48
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