71a0b44
# http://github.com/golang/mock
c624d21
71a0b44
%global goipath         github.com/golang/mock
71a0b44
%global commit          58cd061d09382b6011f84c1291ebe50ef2e25bab
71a0b44
%global goreqflags      -t mockgen/tests
71a0b44
# Run tests in check section
71a0b44
%bcond_without check
c624d21
a39e7ec
%gometa
c4ae0bb
c4ae0bb
Name:           golang-googlecode-gomock
c4ae0bb
Version:        0
5ef9d1e
Release:        0.15%{?dist}
c4ae0bb
Summary:        Mocking framework for the Go
c4ae0bb
License:        ASL 2.0
71a0b44
URL:            %{gourl}
71a0b44
Source0:        %{gosource}
c4ae0bb
c4ae0bb
%description
c4ae0bb
GoMock is a mocking framework for the [Go programming language][golang].
c4ae0bb
It integrates well with Go's built-in `testing` package,
c4ae0bb
but can be used in other contexts too.
c4ae0bb
a39e7ec
%package -n %{goname}-devel
c624d21
Summary:       %{summary}
c624d21
BuildArch:     noarch
c624d21
71a0b44
BuildRequires: golang(golang.org/x/net/context)
c4ae0bb
a39e7ec
Obsoletes:     golang-github-golang-mock-devel
a39e7ec
a39e7ec
%description -n %{goname}-devel
c624d21
GoMock is a mocking framework for the [Go programming language][golang].
c624d21
It integrates well with Go's built-in `testing` package,
c624d21
but can be used in other contexts too.
c624d21
c624d21
This package contains library source intended for
c624d21
building other packages which use import path with
71a0b44
%{goipath} prefix.
c4ae0bb
c4ae0bb
%prep
71a0b44
%gosetup
c4ae0bb
c4ae0bb
%build
71a0b44
%gobuildroot
71a0b44
%gobuild -o _bin/mockgen %{goipath}/mockgen
c4ae0bb
c4ae0bb
%install
71a0b44
%goinstall
71a0b44
install -Dpm 0755 _bin/mockgen %{buildroot}%{_bindir}/mockgen
c4ae0bb
71a0b44
%if %{with check}
c624d21
%check
71a0b44
%gochecks
c624d21
%endif
c624d21
71a0b44
%files
71a0b44
%license LICENSE
71a0b44
%{_bindir}/mockgen
c624d21
a39e7ec
%files -n %{goname}-devel -f devel.file-list
71a0b44
%license LICENSE
c624d21
%doc README.md AUTHORS CONTRIBUTORS
c4ae0bb
c4ae0bb
%changelog
5ef9d1e
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 0-0.15
5ef9d1e
- Rebuild with fixed binutils
5ef9d1e
2b61451
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.14.git58cd061
2b61451
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2b61451
a39e7ec
* Wed May 09 2018 Jan Chaloupka <jchaloup@redhat.com> - 0-0.13.git58cd061
a39e7ec
- Rename the package back to golang-github-golang-mock-devel
a39e7ec
71a0b44
* Mon Mar 26 2018 Jan Chaloupka <jchaloup@redhat.com> - 0-0.12.git58cd061
71a0b44
- Bump to 58cd061d09382b6011f84c1291ebe50ef2e25bab
71a0b44
  Update to new Go guidelines
71a0b44
94bb771
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.11.gitd581abf
94bb771
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
94bb771
da0e042
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.10.gitd581abf
da0e042
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
da0e042
561d6d7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.9.gitd581abf
561d6d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
561d6d7
04b4aa7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.8.gitd581abf
04b4aa7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
04b4aa7
f259691
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.7.gitd581abf
f259691
- https://fedoraproject.org/wiki/Changes/golang1.7
f259691
3f4b197
* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.6.gitd581abf
3f4b197
- https://fedoraproject.org/wiki/Changes/golang1.6
3f4b197
698319f
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.5.gitd581abf
698319f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
698319f
a834679
* Thu Aug 20 2015 jchaloup <jchaloup@redhat.com> - 0-0.4.gitd581abf
a834679
- Choose the correct devel subpackage
a834679
  related: #1250520
a834679
c624d21
* Wed Aug 19 2015 jchaloup <jchaloup@redhat.com> - 0-0.3.gitd581abf
c624d21
- Update spec file to spec-2.0
c624d21
  resolves: #1250520
c624d21
5e19900
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.2.hge033c7513ca3
5e19900
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5e19900
c4ae0bb
* Thu Sep 25 2014 Jan Chaloupka <jchaloup@redhat.com> - 0-0.1.hge033c7513ca3
c4ae0bb
- First package for Fedora