[golang-github-spf13-cobra/f20] Bump to upstream f8e1ec56bdd7494d309c69681267859a6bfb7549 - related: #1085881

Jan Chaloupka jchaloup at fedoraproject.org
Wed Feb 25 22:32:06 UTC 2015


commit 89ec505fb90cd96ca425314c179b4644c2dd9b35
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Wed Feb 25 22:53:17 2015 +0100

    Bump to upstream f8e1ec56bdd7494d309c69681267859a6bfb7549
    - related: #1085881

 .gitignore                     |  4 +---
 golang-github-spf13-cobra.spec | 30 +++++++++++++++++-------------
 sources                        |  4 +---
 3 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 10ac8c5..204e212 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1 @@
-/cobra-e174a40.tar.gz
-/cobra-b1e90a7.tar.gz
-/cobra-e1e66f7.tar.gz
+/cobra-f8e1ec5.tar.gz
diff --git a/golang-github-spf13-cobra.spec b/golang-github-spf13-cobra.spec
index 1fd3cd0..263aa2b 100644
--- a/golang-github-spf13-cobra.spec
+++ b/golang-github-spf13-cobra.spec
@@ -1,16 +1,19 @@
 %global debug_package   %{nil}
-%global import_path     github.com/spf13/cobra
-%global gopath          %{_datadir}/gocode
-%global commit          e1e66f7b4e667751cf530ddb6e72b79d6eeb0235
+%global provider        github
+%global provider_tld    com
+%global project         spf13
+%global repo            cobra
+%global import_path     %{provider}.%{provider_tld}/%{project}/%{repo}
+%global commit          f8e1ec56bdd7494d309c69681267859a6bfb7549
 %global shortcommit     %(c=%{commit}; echo ${c:0:7})
 
-Name:           golang-github-spf13-cobra
+Name:           golang-%{provider}-%{project}-%{repo}
 Version:        0
-Release:        0.5.git%{shortcommit}%{?dist}
+Release:        0.6.git%{shortcommit}%{?dist}
 Summary:        A Commander for modern go CLI interactions
 License:        ASL 2.0
 URL:            http://%{import_path}
-Source0:        https://%{import_path}/archive/%{commit}/cobra-%{shortcommit}.tar.gz
+Source0:        https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
 %if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
 BuildArch:      noarch
 %else
@@ -51,7 +54,7 @@ This package contains library source intended for building other packages
 which use spf13/cobra.
 
 %prep
-%setup -q -n cobra-%{commit}
+%setup -q -n %{repo}-%{commit}
 
 %build
 
@@ -60,17 +63,18 @@ install -d -p %{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.txt README.md
-%dir %attr(755,root,root) %{gopath}
-%dir %attr(755,root,root) %{gopath}/src
-%dir %attr(755,root,root) %{gopath}/src/github.com
-%dir %attr(755,root,root) %{gopath}/src/github.com/spf13
-%dir %attr(755,root,root) %{gopath}/src/%{import_path}
-%{gopath}/src/%{import_path}/*.go
+%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
+%{gopath}/src/%{import_path}
 
 %changelog
+* Wed Feb 25 2015 jchaloup <jchaloup at redhat.com> - 0-0.6.gitf8e1ec5
+- Bump to upstream f8e1ec56bdd7494d309c69681267859a6bfb7549
+  related: #1085881
+
 * Wed Dec 24 2014 jchaloup <jchaloup at redhat.com> - 0-0.5.gitb1e90a7
 - Bump to e1e66f7b4e667751cf530ddb6e72b79d6eeb0235
   related: #1085881
diff --git a/sources b/sources
index 38f4356..6e57176 100644
--- a/sources
+++ b/sources
@@ -1,3 +1 @@
-83834fcb94ea3befb5d9d6a5c40a50a3  cobra-e174a40.tar.gz
-0c6a10b55492423207dd12477c25043b  cobra-b1e90a7.tar.gz
-88fbbc47c9c7b95ea9f60d57c969b5b6  cobra-e1e66f7.tar.gz
+2095d7a6a83849ac9e09463e915a106c  cobra-f8e1ec5.tar.gz


More information about the scm-commits mailing list