commit 3a94112b1dc1c7a2e40f2261bc7b8f9ea0faf516
Author: Lokesh Mandvekar <[email protected]>
Date:   Fri Apr 11 14:50:10 2014 -0400

    Bug 1085881 - initial upload

 .gitignore                     |    1 +
 golang-github-spf13-cobra.spec |   59 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 3 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c91d9f5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cobra-e174a40.tar.gz
diff --git a/golang-github-spf13-cobra.spec b/golang-github-spf13-cobra.spec
new file mode 100644
index 0000000..3de528c
--- /dev/null
+++ b/golang-github-spf13-cobra.spec
@@ -0,0 +1,59 @@
+%global debug_package   %{nil}
+%global import_path     github.com/spf13/cobra
+%global gopath          %{_datadir}/gocode
+%global commit          e174a40cf5ac0768181065462ef36ec1ad07470c
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-github-spf13-cobra
+Version:        0
+Release:        0.2.git%{shortcommit}%{?dist}
+Summary:        A Commander for modern go CLI interactions
+License:        ASL 2.0
+URL:            http://%{import_path}
+Source0:        
https://%{import_path}/archive/%{commit}/cobra-%{shortcommit}.tar.gz
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch:      noarch
+%else
+ExclusiveArch:  %{ix86} x86_64 %{arm}
+%endif
+
+%description
+%{summary}
+
+%package devel
+Requires:       golang
+Summary:        A Commander for modern go CLI interactions
+Provides:       golang(%{import_path}) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+This package contains library source intended for building other packages
+which use spf13/cobra.
+
+%prep
+%setup -n cobra-%{commit}
+
+%build
+
+%install
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}
+cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}
+
+%check
+
+%files devel
+%doc LICENSE.txt README.md
+%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/spf13
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}
+%{gopath}/src/%{import_path}/*.go
+
+%changelog
+* Fri Apr 04 2014 Lokesh Mandvekar <[email protected]> 0-0.2.git
+- correct tarball name
+
+* Fri Apr 04 2014 Lokesh Mandvekar <[email protected]> 0-0.1.git
+- Initial package
diff --git a/sources b/sources
index e69de29..7a66d13 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+83834fcb94ea3befb5d9d6a5c40a50a3  cobra-e174a40.tar.gz
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang

Reply via email to