commit 7c4824bd0e84c82207d6a1ea2c93e0f961de18bf Author: Lokesh Mandvekar <l...@redhat.com> Date: Fri Apr 11 15:53:38 2014 -0400
Bug 1085840 - initial upload .gitignore | 1 + golang-github-fsouza-go-dockerclient.spec | 63 +++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 65 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..3c7dc06 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/go-dockerclient-d639515.tar.gz diff --git a/golang-github-fsouza-go-dockerclient.spec b/golang-github-fsouza-go-dockerclient.spec new file mode 100644 index 0000000..509f3c5 --- /dev/null +++ b/golang-github-fsouza-go-dockerclient.spec @@ -0,0 +1,63 @@ +%global debug_package %{nil} +%global import_path github.com/fsouza/go-dockerclient +%global gopath %{_datadir}/gocode +%global commit d639515f70e535d4bbff8499992beeb48d8bf340 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: golang-github-fsouza-go-dockerclient +Version: 0 +Release: 0.1.git%{shortcommit}%{?dist} +Summary: Client for the Docker remote API +License: BSD +URL: https://%{import_path} +Source0: https://%{import_path}/archive/%{commit}/go-dockerclient-%{shortcommit}.tar.gz +%if 0%{?fedora} >= 19 +BuildArch: noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} +%endif + +%description +%{summary} + +%package devel +Requires: golang +Summary: Client for the Docker remote API +Provides: golang(%{import_path}) = %{version}-%{release} +Provides: golang(%{import_path}/engine) = %{version}-%{release} +Provides: golang(%{import_path}/testing) = %{version}-%{release} +Provides: golang(%{import_path}/utils) = %{version}-%{release} + +%description devel +%{summary} + +This package contains library source intended for building other packages +which use fsouza/go-dockerclient. + +%prep +%setup -n go-dockerclient-%{commit} + +%build + +%install +install -d -p %{buildroot}/%{gopath}/src/%{import_path}/{engine,testing,utils} +for d in . engine testing utils; do + cp -av $d/*.go %{buildroot}/%{gopath}/src/%{import_path}/$d +done + +%files devel +%defattr(-,root,root,-) +%doc LICENSE README.markdown +%dir %attr(755,root,root) %{gopath} +%dir %attr(755,root,root) %{gopath}/src +%dir %attr(755,root,root) %{gopath}/src/github.com +%dir %attr(755,root,root) %{gopath}/src/github.com/fsouza +%dir %attr(755,root,root) %{gopath}/src/github.com/fsouza/go-dockerclient +%{gopath}/src/%{import_path}/*.go +%{gopath}/src/%{import_path}/engine/*.go +%{gopath}/src/%{import_path}/testing/*.go +%{gopath}/src/%{import_path}/utils/*.go + +%changelog +* Thu Apr 03 2014 Lokesh Mandvekar <l...@redhat.com> 0-0.1.git +- Initial package diff --git a/sources b/sources index e69de29..54de816 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +33f8570b38b7ecac219f9f3cee758ded go-dockerclient-d639515.tar.gz _______________________________________________ golang mailing list golang@lists.fedoraproject.org https://lists.fedoraproject.org/mailman/listinfo/golang