diff --git a/.gitignore b/.gitignore index e69de29..3aefba8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/spdystream-29e1da2.tar.gz diff --git a/golang-github-docker-spdystream.spec b/golang-github-docker-spdystream.spec new file mode 100644 index 0000000..cd958c2 --- /dev/null +++ b/golang-github-docker-spdystream.spec @@ -0,0 +1,65 @@ +%global debug_package %{nil} +%global provider github +%global provider_tld com +%global project docker +%global repo spdystream +%global import_path %{provider}.%{provider_tld}/%{project}/%{repo} +%global commit 29e1da2890f60336f98d0b3bf28b05070aa2ee4d +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: golang-%{provider}-%{project}-%{repo} +Version: 0 +Release: 0.1.git%{shortcommit}%{?dist} +Summary: A multiplexed stream library using spdy +License: ASL 2.0 +URL: https://%{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 +%{summary} + +%package devel +BuildRequires: golang >= 1.2.1-3 +BuildRequires: golang(code.google.com/p/go.net/spdy) +BuildRequires: golang(github.com/gorilla/websocket) +Requires: golang >= 1.2.1-3 +Requires: golang(code.google.com/p/go.net/spdy) +Requires: golang(github.com/gorilla/websocket) +Summary: %{summary} +Provides: golang(%{import_path}) = %{version}-%{release} +Provides: golang(%{import_path}/ws) = %{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 -rpav ws %{buildroot}/%{gopath}/src/%{import_path}/ + +%check +GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path} +#GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}/ws + +%files devel +%doc CONTRIBUTING.md README.md LICENSE +%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project} +%{gopath}/src/%{import_path} + +%changelog +* Wed Feb 25 2015 jchaloup - 0-0.1.git29e1da2 +- First package for Fedora + resolves: #1196363 diff --git a/sources b/sources index e69de29..dba87d5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1b966aef272bae67a01ec71c5629bbca spdystream-29e1da2.tar.gz