[golang-gopkg-check] Add github.com/motain/gocheck into devel subpackage - related: #1151779

Jan Chaloupka jchaloup at fedoraproject.org
Tue Jan 13 11:23:19 UTC 2015


commit 6eaf36b32d5c13c636cae285465969a6a9876bfd
Author: Jan Chaloupka <jchaloup at redhat.com>
Date:   Tue Jan 13 11:58:08 2015 +0100

    Add github.com/motain/gocheck into devel subpackage
    - related: #1151779

 .gitignore              |    3 ++-
 golang-gopkg-check.spec |   34 +++++++++++++++++++++++++---------
 sources                 |    3 ++-
 3 files changed, 29 insertions(+), 11 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index fa28c21..f47e50f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-/check-91ae5f88a67b14891cfd43895b01164f6c120420.tar.gz
+/check-10bfe05.tar.gz
+/check-91ae5f8.tar.gz
diff --git a/golang-gopkg-check.spec b/golang-gopkg-check.spec
index fb5a1ae..cbd3910 100644
--- a/golang-gopkg-check.spec
+++ b/golang-gopkg-check.spec
@@ -9,17 +9,26 @@
 %global import_path     %{provider}.%{provider_tld}/%{repo}.%{version}
 %global import_path_sec launchpad.net/gocheck
 
+# github.com/motain/gocheck, cloned from github.com/go-check/check on Oct 23, 2013
+%global mcommit         10bfe0586b48cbca10fe6c43d6e18136f25f8c0c
+%global mscommit        %(c=%{mcommit}; echo ${c:0:7})
+%global mimport_path    github.com/motain/gocheck
+
 Name:           golang-gopkg-%{repo}
 Version:        0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Rich testing for the Go language
 License:        BSD
 # gopkg.in/check.v1
 URL:            http://%{import_path}
-Source0:        https://github.com/go-%{repo}/%{repo}/archive/%{commit}/%{repo}-%{commit}.tar.gz
+Source0:	https://github.com/go-%{repo}/%{repo}/archive/%{mcommit}/%{repo}-%{mscommit}.tar.gz
+Source1:        https://github.com/go-%{repo}/%{repo}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
 Obsoletes:	golang-launchpad-gocheck
+%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
 BuildArch:      noarch
-
+%else
+ExclusiveArch:  %{ix86} x86_64 %{arm}
+%endif
 
 %description
 %{summary}
@@ -39,7 +48,8 @@ This package contains library source intended for
 building other packages which use %{import_path}.
 
 %prep
-%setup -n %{repo}-%{commit} -q
+%setup -n %{repo}-%{mcommit} -q
+%setup -n %{repo}-%{commit} -q -T -b 1
 
 %build
 
@@ -48,6 +58,9 @@ install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
 cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path}/
 install -d -p %{buildroot}/%{gopath}/src/%{import_path_sec}/
 cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path_sec}/
+pushd ../%{repo}-%{mcommit}
+install -d -p %{buildroot}/%{gopath}/src/%{mimport_path}/
+cp -pav *.go %{buildroot}/%{gopath}/src/%{mimport_path}/
 
 %check
 #GOPATH={buildroot}{gopath}:{gopath} go test {import_path}
@@ -55,14 +68,17 @@ cp -pav *.go %{buildroot}/%{gopath}/src/%{import_path_sec}/
 %files devel
 %doc LICENSE README.md
 # once src/gopkg.in gets into golang package, remove the line bellow
-%dir %{gopath}/src/gopkg.in
-%dir %{gopath}/src/%{import_path}
-%{gopath}/src/%{import_path}/*.go
+%{gopath}/src/%{import_path}
 %dir %{gopath}/src/launchpad.net
-%dir %{gopath}/src/%{import_path_sec}
-%{gopath}/src/%{import_path_sec}/*.go
+%{gopath}/src/%{import_path_sec}
+%dir %{gopath}/src/github.com/motain
+%{gopath}/src/github.com/motain/gocheck
 
 %changelog
+* Tue Jan 13 2015 jchaloup <jchaloup at redhat.com> - 0-3
+- Add github.com/motain/gocheck into devel subpackage
+  related: #1151779
+
 * Tue Dec 09 2014 jchaloup <jchaloup at redhat.com> - 0-2
 - Obsolete golang-launchpad-gocheck-devel with devel subpackage
   related: #1151779
diff --git a/sources b/sources
index 4e8dcab..cb4a7d1 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-8bfe6cb62d12d0f05e602a06681917d7  check-91ae5f88a67b14891cfd43895b01164f6c120420.tar.gz
+d264f8337bb29da228b024a217704820  check-10bfe05.tar.gz
+8bfe6cb62d12d0f05e602a06681917d7  check-91ae5f8.tar.gz


More information about the scm-commits mailing list