commit 4fd41536c93e86d5e93c09359ae7ba95a99b29ff
Author: Lokesh Mandvekar <[email protected]>
Date: Fri Apr 11 14:59:29 2014 -0400
Bug 1085890 - initial upload
.gitignore | 1 +
golang-github-spf13-pflag.spec | 56 ++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3a07bcc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pflag-94e98a5.tar.gz
diff --git a/golang-github-spf13-pflag.spec b/golang-github-spf13-pflag.spec
new file mode 100644
index 0000000..3260b44
--- /dev/null
+++ b/golang-github-spf13-pflag.spec
@@ -0,0 +1,56 @@
+%global debug_package %{nil}
+%global import_path github.com/spf13/pflag
+%global gopath %{_datadir}/gocode
+%global commit 94e98a55fb412fcbcfc302555cb990f5e1590627
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: golang-github-spf13-pflag
+Version: 0
+Release: 0.1.git%{shortcommit}%{?dist}
+Summary: Replacement for Go's flag package
+License: ASL 2.0
+URL: http://%{import_path}
+Source0:
https://%{import_path}/archive/%{commit}/pflag-%{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: Replacement for Go's flag package
+Provides: golang(%{import_path}) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+This package contains library source intended for building other packages
+which use spf13/pflag.
+
+%prep
+%setup -n pflag-%{commit}
+
+%build
+
+%install
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}
+cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}
+
+%check
+
+%files devel
+%doc LICENSE 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.1.git
+- Initial package
diff --git a/sources b/sources
index e69de29..fa98326 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+27c9873b739a5fd205ff91cb1f6de25e pflag-94e98a5.tar.gz
_______________________________________________
golang mailing list
[email protected]
https://lists.fedoraproject.org/mailman/listinfo/golang