[golang-github-docopt-docopt-go] Initial import (#1203167)
Jakub Jedelsky
kubo at fedoraproject.org
Tue Mar 24 14:24:18 UTC 2015
commit 787e613611fd72032a8c41f4b547679059ae71e9
Author: Jakub Jedelsky <jakub.jedelsky at gooddata.com>
Date: Tue Mar 24 15:20:59 2015 +0100
Initial import (#1203167)
.gitignore | 1 +
golang-github-docopt-docopt-go.spec | 69 +++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 71 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2d30001 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/docopt.go-854c423.tar.gz
diff --git a/golang-github-docopt-docopt-go.spec b/golang-github-docopt-docopt-go.spec
new file mode 100644
index 0000000..226c0d2
--- /dev/null
+++ b/golang-github-docopt-docopt-go.spec
@@ -0,0 +1,69 @@
+%global debug_package %{nil}
+%global provider github
+%global provider_tld com
+%global project docopt
+%global repo docopt.go
+%global gorepo docopt-go
+%global github_path %{provider}.%{provider_tld}/%{project}/%{repo}
+%global import_path %{provider}.%{provider_tld}/%{project}/%{gorepo}
+%global commit 854c423c810880e30b9fecdabb12d54f4a92f9bb
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+Name: golang-github-docopt-docopt-go
+Version: 0
+Release: 0.1.git.%{shortcommit}%{?dist}
+Summary: Command-line interface description language in Go
+
+License: MIT
+URL: https://godoc.org/%{github_path}
+Source0: https://%{github_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
+BuildArch: noarch
+%else
+ExclusiveArch: %{ix86} x86_64 %{arm}
+%endif
+
+%description
+Docopt helps you create beautiful command-line interfaces easily with Go
+
+
+%package devel
+BuildRequires: golang >= 1.2.1-3
+Requires: golang >= 1.2.1-3
+Summary: Command-line interface description language in Go
+Provides: golang(%{import_path}) = %{version}-%{release}
+
+%description devel
+Docopt helps you create beautiful command-line interfaces easily with Go
+
+This package contains library source intended for building other packages
+which use docopt/docopt-go.
+
+
+%prep
+%setup -q -n %{repo}-%{commit}
+
+
+%build
+
+
+%install
+install -d %{buildroot}/%{gopath}/src/%{import_path}
+cp -pav docopt.go docopt_test.go testcases.docopt test_golang.docopt \
+ %{buildroot}/%{gopath}/src/%{import_path}/
+
+
+%check
+GOPATH=%{buildroot}/%{gopath} go test %{import_path}
+
+
+%files devel
+%doc LICENSE README.md example_test.go examples
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
+
+
+%changelog
+* Tue Mar 17 2015 Jakub Jedelsky <jakub.jedelsky at gmail.com> - 0-0.1.git854c423c
+- Initial package
diff --git a/sources b/sources
index e69de29..3557a16 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0134392850d761c88d0362198d3c7fbd docopt.go-854c423.tar.gz
More information about the scm-commits
mailing list