From 8028a87a4c6a3b042043050483e098067cd2e04e Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Oct 08 2014 10:38:51 +0000 Subject: Initial commit - resolves: #1148452 --- diff --git a/.gitignore b/.gitignore index e69de29..f3270cc 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/gomega-a0ee4df.tar.gz diff --git a/golang-github-onsi-gomega.spec b/golang-github-onsi-gomega.spec new file mode 100644 index 0000000..38d6a9c --- /dev/null +++ b/golang-github-onsi-gomega.spec @@ -0,0 +1,79 @@ +%global provider github +%global provider_tld com +%global project onsi +%global repo gomega +%global commit a0ee4df1f2d58a75dd9d74e755615706d68e9ce9 + +%global import_path %{provider}.%{provider_tld}/%{project}/%{repo} +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global debug_package %{nil} + +Name: golang-%{provider}-%{project}-%{repo} +Version: 0 +Release: 0.1.git%{shortcommit}%{?dist} +Summary: Ginkgo's Preferred Matcher Library +License: MIT +URL: http://%{import_path} +Source0: https://github.com/%{project}/%{repo}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz +BuildArch: noarch + +%description +%{summary}. + +%package devel +BuildRequires: golang >= 1.2.1-3 +Requires: golang >= 1.2.1-3 +Requires: golang(github.com/onsi/gomega) +Summary: %{summary} +Provides: golang(%{import_path}) = %{version}-%{release} +Provides: golang(%{import_path}/format) = %{version}-%{release} +Provides: golang(%{import_path}/gbytes) = %{version}-%{release} +Provides: golang(%{import_path}/gexec) = %{version}-%{release} +Provides: golang(%{import_path}/gexec/_fixture/firefly) = %{version}-%{release} +Provides: golang(%{import_path}/ghttp) = %{version}-%{release} +Provides: golang(%{import_path}/internal/assertion) = %{version}-%{release} +Provides: golang(%{import_path}/internal/asyncassertion) = %{version}-%{release} +Provides: golang(%{import_path}/internal/fakematcher) = %{version}-%{release} +Provides: golang(%{import_path}/internal/testingtsupport) = %{version}-%{release} +Provides: golang(%{import_path}/matchers) = %{version}-%{release} +Provides: golang(%{import_path}/types) = %{version}-%{release} + +%description devel +%{summary}. + +This package contains library source intended for +building other packages which use %{project}/%{repo}. + +%prep +%setup -q -n %{repo}-%{commit} + +%build + +%install +install -d -p %{buildroot}/%{gopath}/src/%{import_path}/ +cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/ +cp -pav {format,gbytes,gexec,ghttp,internal,matchers,types} %{buildroot}/%{gopath}/src/%{import_path}/ + +%check +#go test can not be done as there is a circular dependency between golang-github-onsi-ginkgo and golang-github-onsi-gomega package + +%files devel +%doc README.md LICENSE CHANGELOG.md +%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} +%dir %{gopath}/src/%{import_path}/format +%dir %{gopath}/src/%{import_path}/gbytes +%dir %{gopath}/src/%{import_path}/gexec +%dir %{gopath}/src/%{import_path}/ghttp +%dir %{gopath}/src/%{import_path}/internal +%dir %{gopath}/src/%{import_path}/matchers +%dir %{gopath}/src/%{import_path}/types +%{gopath}/src/%{import_path}/*.go +%{gopath}/src/%{import_path}/*/* + +%changelog +* Wed Oct 01 2014 root - 0-0.1.git90d6a47 +- First package for Fedora + + + + diff --git a/sources b/sources index e69de29..b7344de 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +5cfc5a86dd82fb40f3d70fd8c08a4f7f gomega-a0ee4df.tar.gz