%global debug_package %{nil}
%global provider github
%global provider_tld com
%global project stretchr
%global repo testify
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
%global commit e4ec8152c15fc46bd5056ce65997a07c7d415325
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: golang-%{provider}-%{project}-%{repo}
Version: 0
Release: 0.6.git%{shortcommit}%{?dist}
Summary: Tools for testifying that your code will behave as you intend
License: MIT
URL: http://godoc.org/%{import_path}
Source0: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
BuildArch: noarch
%else
ExclusiveArch: %{ix86} x86_64 %{arm}
%endif
%description
Thou Shalt Write Tests
Go code (golang) set of packages that provide many tools for testifying that
your code will behave as you intend.
%package devel
BuildRequires: golang >= 1.2.1-3
Requires: golang >= 1.2.1-3
Requires: golang(github.com/stretchr/objx)
Summary: Tools for testifying that your code will behave as you intend
Provides: golang(%{import_path}) = %{version}-%{release}
Provides: golang(%{import_path}/assert) = %{version}-%{release}
Provides: golang(%{import_path}/http) = %{version}-%{release}
Provides: golang(%{import_path}/mock) = %{version}-%{release}
Provides: golang(%{import_path}/require) = %{version}-%{release}
Provides: golang(%{import_path}/suite) = %{version}-%{release}
%description devel
Thou Shalt Write Tests
Go code (golang) set of packages that provide many tools for testifying that
your code will behave as you intend.
%prep
%setup -q -n %{repo}-%{commit}
mv LICENCE.txt LICENSE.txt
%build
%install
install -d %{buildroot}/%{gopath}/src/%{import_path}
cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}
for d in assert http mock require suite
do
cp -pav $d %{buildroot}/%{gopath}/src/%{import_path}/
done
%check
# as long as there is circular dependency between
# golang-github-stretchr-testify and golang-github-stretchr-objx
# there can not by test
%files devel
%doc LICENSE.txt README.md
%dir %{gopath}/src/%{import_path}
%dir %{gopath}/src/%{import_path}/assert
%dir %{gopath}/src/%{import_path}/http
%dir %{gopath}/src/%{import_path}/mock
%dir %{gopath}/src/%{import_path}/require
%dir %{gopath}/src/%{import_path}/suite
%{gopath}/src/%{import_path}/*.go
%{gopath}/src/%{import_path}/assert/*.go
%{gopath}/src/%{import_path}/http/*.go
%{gopath}/src/%{import_path}/mock/*.go
%{gopath}/src/%{import_path}/require/*.go
%{gopath}/src/%{import_path}/suite/*.go
%changelog
* Thu Mar 05 2015 jchaloup <jchaloup@redhat.com> - 0-0.6.gite4ec815
- Bump to upstream e4ec8152c15fc46bd5056ce65997a07c7d415325
related: #1141872
* Thu Oct 23 2014 jchaloup <jchaloup@redhat.com> - 0-0.5.gitd6577e0
- Bump to upstream d6577e08ec30538639ac0ea38b562b6f250e9055
- Spec file polishing to follow go draft
related: #1141872
* Mon Sep 15 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.3.gitda775f0
- preserve timestamps of copied files
* Wed Aug 06 2014 Adam Miller <maxamillion@fedoraproject.org> - 0-0.2.gitda775f0
- Fix up devel package listing
* Wed Aug 06 2014 Adam Miller <maxamillion@fedoraproject.org> - 0-0.1.gitda775f0
- First package for Fedora.