[golang-github-mreiferson-go-httpclient/f20] Initial commit

Jan Chaloupka jchaloup at fedoraproject.org
Mon Sep 22 07:33:12 UTC 2014


commit 04e7a4d041a642b0bf90bfbba2542976e62de6ae
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Mon Sep 22 09:33:09 2014 +0200

    Initial commit

 .gitignore                                  |    1 +
 golang-github-mreiferson-go-httpclient.spec |   57 +++++++++++++++++++++++++++
 sources                                     |    1 +
 3 files changed, 59 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7d7aa12 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/go-httpclient-c121dfe.tar.gz
diff --git a/golang-github-mreiferson-go-httpclient.spec b/golang-github-mreiferson-go-httpclient.spec
new file mode 100644
index 0000000..7e4b9c7
--- /dev/null
+++ b/golang-github-mreiferson-go-httpclient.spec
@@ -0,0 +1,57 @@
+%global debug_package   %{nil}
+%global provider        github
+%global provider_tld    com
+%global project         mreiferson
+%global repo            go-httpclient
+%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit          c121dfe45d66997e43e25a6823fbe7466c8403fe
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+
+Name:           golang-%{provider}-%{project}-%{repo}
+Version:        0
+Release:        0.1.git%{shortcommit}%{?dist}
+Summary:        A Go HTTP client library
+License:        BSD
+URL:            https://%{import_path}
+Source0:        https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+BuildArch:      noarch
+
+%description
+Provides an HTTP Transport that implements the `RoundTripper` interface and
+can be used as a built in replacement for the standard librarys.
+
+%package devel
+BuildRequires:  golang >= 1.2.1-3
+Requires:       golang >= 1.2.1-3
+Summary:        A Go HTTP client library
+Provides:       golang(%{import_path}) = %{version}-%{release}
+BuildArch:      noarch
+
+%description devel
+%{summary}.
+
+%prep
+%setup -q -n %{repo}-%{commit}
+
+%build
+
+%install
+install -d %{buildroot}/%{gopath}/src/%{import_path}
+cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}
+
+%check
+#GOPATH=%{buildroot}/%{gopath}:%{gopath} go test %{import_path}
+
+%files devel
+%doc LICENSE README.md
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}
+%{gopath}/src/%{import_path}/*.go
+
+%changelog
+* Fri Sep 19 2014 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 0-0.1.gitc121dfe
+- main package doesn't need arch specification, only devel package generated
+- comment out test
+
+* Thu Jul 17 2014 Colin Walters <walters at verbum.org> - 0-0.0gitc121dfe
+- Initial package
diff --git a/sources b/sources
index e69de29..9d5a5ff 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1a73dae0388e525bbce1dd7272c72792  go-httpclient-c121dfe.tar.gz


More information about the scm-commits mailing list