[golang-googlecode-uuid] Initial commit

Jan Chaloupka jchaloup at fedoraproject.org
Tue Sep 23 10:10:08 UTC 2014


commit d77482275334b37d09328586fce1706e3976a4ed
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Tue Sep 23 12:09:58 2014 +0200

    Initial commit

 .gitignore                  |    1 +
 golang-googlecode-uuid.spec |   59 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 3 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9760261 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/7dda39b2e7d5e265014674c5af696ba4186679e9.tar.gz
diff --git a/golang-googlecode-uuid.spec b/golang-googlecode-uuid.spec
new file mode 100644
index 0000000..993b3d6
--- /dev/null
+++ b/golang-googlecode-uuid.spec
@@ -0,0 +1,59 @@
+%global debug_package   %{nil}
+%global import_path     code.google.com/p/go-uuid
+%global rev             7dda39b2e7d5e265014674c5af696ba4186679e9
+%global shortrev        %(r=%{rev}; echo ${r:0:12})
+
+Name:           golang-googlecode-uuid
+Version:        0
+Release:        0.2.hg%{shortrev}%{?dist}
+Summary:        Generates and inspects UUIDs based on RFC 4122 and DCE 1.1
+License:        BSD
+URL:            http://%{import_path}
+Source0:        https://go-uuid.googlecode.com/archive/%{rev}.tar.gz
+BuildArch:      noarch
+
+%description
+%{summary}
+
+%package devel
+BuildRequires:  golang >= 1.2.1-3
+Requires:       golang >= 1.2.1-3
+Summary:        Generates and inspects UUIDs based on RFC 4122 and DCE 1.1
+Provides:       golang(%{import_path}) = %{version}-%{release}
+Provides:       golang(%{import_path}/go-uuid) = %{version}-%{release}
+
+%description devel
+%{summary}
+
+Generates and inspects UUIDs based on RFC 4122 and DCE 1.1: 
+Authentication and Security Services. 
+
+%prep
+
+%setup -n go-uuid-%{shortrev} -q
+mv uuid/LICENSE ./
+
+%build
+
+%install
+install -d %{buildroot}/%{gopath}/src/%{import_path}
+for d in uuid; do
+   cp -pav $d %{buildroot}/%{gopath}/src/%{import_path}/
+done
+
+%check
+GOPATH=%{buildroot}/%{gopath} go test %{import_path}/uuid
+
+%files devel
+%doc CONTRIBUTORS LICENSE
+%dir %{gopath}/src/%{import_path}
+%dir %{gopath}/src/%{import_path}/uuid
+%attr(644,-,-) %{gopath}/src/%{import_path}/uuid/*.go
+
+%changelog
+* Mon Sep 15 2014 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 0-0.2.hg7dda39b2e7d5
+- preserve timestamps
+- do not own dirs owned by golang
+
+* Mon Aug 04 2014 Adam Miller <maxamillion at fedoraproject.org> - 0-0.1.hg7dda39b2e7d5
+- First package for Fedora.
diff --git a/sources b/sources
index e69de29..2ff4420 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+48d811224dad0b25ca449ac5e1419bfd  7dda39b2e7d5e265014674c5af696ba4186679e9.tar.gz


More information about the scm-commits mailing list