[golang-github-coreos-go-etcd] Initial commit

Jan Chaloupka jchaloup at fedoraproject.org
Tue Sep 23 07:25:13 UTC 2014


commit e218648b412b9364dc17384c1a336c657b3d7550
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Tue Sep 23 09:25:04 2014 +0200

    Initial commit

 .gitignore                        |    1 +
 golang-github-coreos-go-etcd.spec |   63 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 3 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ab302f2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/go-etcd-23142f6.tar.gz
diff --git a/golang-github-coreos-go-etcd.spec b/golang-github-coreos-go-etcd.spec
new file mode 100644
index 0000000..e3f0f78
--- /dev/null
+++ b/golang-github-coreos-go-etcd.spec
@@ -0,0 +1,63 @@
+%global provider        github
+%global provider_tld    com
+%global project         coreos
+%global repo            go-etcd
+%global commit          23142f6773a676cc2cae8dd0cb90b2ea761c853f
+
+%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}
+%global shortcommit     %(c=%{commit}; echo ${c:0:7})
+%global debug_package   %{nil}
+
+Name:       golang-%{provider}-%{project}-%{repo}
+Version:    0.2.0
+Release:    0.2.rc1.git%{shortcommit}%{?dist}
+Summary:    The official etcd v0.2 client library for Go
+License:    ASL 2.0
+URL:        http://%{import_path}
+Source0:    https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
+BuildArch:  noarch
+
+%description
+%{summary}
+
+%package devel
+BuildRequires:  golang >= 1.2.1-3
+Requires:       golang >= 1.2.1-3
+Summary:        A golang library for logging to systemd
+Provides:       golang(%{import_path}) = %{version}-%{release}
+Provides:       golang(%{import_path}/etcd) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+This package contains library source intended for building other packages
+which use coreos/go-etcd.
+
+%prep
+%setup -q -n %{repo}-%{commit}
+
+%build
+
+%install
+install -d -p %{buildroot}/%{gopath}/src/%{import_path}/etcd
+cp -pav etcd/*.go  %{buildroot}/%{gopath}/src/%{import_path}/etcd
+
+%files devel
+%doc LICENSE README.md
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%dir %{gopath}/src/%{import_path}
+%dir %{gopath}/src/%{import_path}/etcd
+%attr(644,-,-) %{gopath}/src/%{import_path}/etcd/*.go
+
+%changelog
+* Mon Sep 15 2014 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 0.2.0-0.2.rc1.git23142f6
+ - do not redefine gopath
+ - do not own dirs owned by golang
+ - correct version number, rc tag goes in release
+ - noarch
+
+* Sat Sep 06 2014 Eric Paris <eparis at redhat.com - 0.2.rc1-0.1.git23142f67.2
+- Bump to upstream 23142f6773a676cc2cae8dd0cb90b2ea761c853f
+
+* Wed Aug 20 2014 Adam Miller <maxamillion at fedoraproject.org> - 0.2.0-0.1-rc1
+- Initial fedora package
diff --git a/sources b/sources
index e69de29..afe0a62 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5ce883f4399cfb90675cedef15b000f1  go-etcd-23142f6.tar.gz


More information about the scm-commits mailing list