Re: packaging bootstrap example, ideally with golang

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm attaching the two SPEC for ogle{mock,test}
# Generated by go2rpm
%bcond_without check

# https://github.com/jacobsa/ogletest
%global goipath         github.com/jacobsa/ogletest
%global commit          80d50a735a1108a2aeb7abc4a988d183f20c5292

%gometa

%global common_description %{expand:
Ogletest is a unit testing framework for Go with the following features:

 - An extensive and extensible set of matchers for expressing expectations.
 - Automatic failure messages; no need to say t.Errorf("Expected %v, got %v"...)
 - Clean, readable output that tells you exactly what you need to know.
 - Built-in support for mocking through the oglemock package.
 - Style and semantics similar to Google Test and Google JS Test.

It integrates with Go's built-in testing package, so it works with the go test
command, and even with other types of test within your package. Unlike the
testing package which offers only basic capabilities for signalling failures, it
offers ways to express expectations and get nice failure messages
automatically.}

Name:           %{goname}
Version:        0
Release:        0.1%{?dist}
Summary:        Go unit testing framework

# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/jacobsa/oglematchers)
BuildRequires:  golang(github.com/jacobsa/oglemock)
BuildRequires:  golang(github.com/jacobsa/reqtrace)
BuildRequires:  golang(golang.org/x/net/context)

%description
%{common_description}

%package devel
Summary:       %{summary}
BuildArch:     noarch

%description devel
%{common_description}

This package contains library source intended for
building other packages which use import path with
%{goipath} prefix.

%prep
%forgeautosetup -p1

%install
%goinstall

%if %{with check}
%check
%gochecks
%endif

%files devel -f devel.file-list
%license LICENSE
%doc README.md

%changelog
* Sun May 19 14:24:21 CEST 2019 Brian (bex) Exelbierd <bexelbie@xxxxxxxxxx> - 0-0.1.20190519git80d50a7
- Initial package
# Generated by go2rpm
%bcond_without check
%bcond_without bootstrap

# https://github.com/jacobsa/oglemock
%global goipath         github.com/jacobsa/oglemock
%global commit          e94d794d06ffc6de42cb19d0dab3c219efdd6dcf

%gometa

%global common_description %{expand:
Oglemock is a mocking framework for the Go programming language with the
following features:

 - An extensive and extensible set of matchers for expressing call expectations
   (provided by the oglematchers package).
 - Clean, readable output that tells you exactly what you need to know.
 - Style and semantics similar to Google Mock and Google JS Test.
 - Seamless integration with the ogletest unit testing framework.

It can be integrated into any testing framework (including Go's testing
package), but out of the box support is built in to ogletest and that is the
easiest place to use it.}

Name:           %{goname}
Version:        0
Release:        0.1%{?dist}
Summary:        Mocking framework for Go

# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/jacobsa/oglematchers)

%if %{without bootstrap}
%if %{with check}
# Tests
BuildRequires:  golang(github.com/jacobsa/ogletest)
%endif
%endif

%description
%{common_description}

%package devel
Summary:       %{summary}
BuildArch:     noarch

%description devel
%{common_description}

This package contains library source intended for
building other packages which use import path with
%{goipath} prefix.

%prep
%forgeautosetup -p1

%install
%goinstall

%if %{without bootstrap}
%if %{with check}
%check
%gochecks
%endif
%endif

%files devel -f devel.file-list
%license LICENSE
%doc README.md sample/README.markdown

%changelog
* Sun May 19 14:24:15 CEST 2019 Brian (bex) Exelbierd <bexelbie@xxxxxxxxxx> - 0-0.1.20190519gite94d794
- Initial package
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux