[golang-googlecode-uuid/f21] Fix incorrect provides - resolves: #1192652

Jan Chaloupka jchaloup at fedoraproject.org
Sun Feb 15 21:31:38 UTC 2015


commit da41013be1b9181830d657afccb285a7556b2602
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Sun Feb 15 21:47:14 2015 +0100

    Fix incorrect provides
    - resolves: #1192652

 golang-googlecode-uuid.spec |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/golang-googlecode-uuid.spec b/golang-googlecode-uuid.spec
index 993b3d6..2602611 100644
--- a/golang-googlecode-uuid.spec
+++ b/golang-googlecode-uuid.spec
@@ -1,16 +1,25 @@
 %global debug_package   %{nil}
-%global import_path     code.google.com/p/go-uuid
+%global provider_prefix code
+%global provider        google
+%global provider_tld    com
+%global project         p
+%global repo            go-uuid
+%global import_path     %{provider_prefix}.%{provider}.%{provider_tld}/%{project}/%{repo}
 %global rev             7dda39b2e7d5e265014674c5af696ba4186679e9
 %global shortrev        %(r=%{rev}; echo ${r:0:12})
 
 Name:           golang-googlecode-uuid
 Version:        0
-Release:        0.2.hg%{shortrev}%{?dist}
+Release:        0.3.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
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
 BuildArch:      noarch
+%else
+ExclusiveArch:  %{ix86} x86_64 %{arm}
+%endif
 
 %description
 %{summary}
@@ -20,7 +29,7 @@ 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}
+Provides:       golang(%{import_path}/uuid) = %{version}-%{release}
 
 %description devel
 %{summary}
@@ -51,6 +60,10 @@ GOPATH=%{buildroot}/%{gopath} go test %{import_path}/uuid
 %attr(644,-,-) %{gopath}/src/%{import_path}/uuid/*.go
 
 %changelog
+* Sun Feb 15 2015 jchaloup <jchaloup at redhat.com> - 0-0.3.hg7dda39b2e7d5
+- Fix incorrect provides
+  resolves: #1192652
+
 * Mon Sep 15 2014 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 0-0.2.hg7dda39b2e7d5
 - preserve timestamps
 - do not own dirs owned by golang


More information about the scm-commits mailing list