[golang-github-gorilla-context] Update to latest commit, use golang macros

lsm5 lsm5 at fedoraproject.org
Tue Jul 22 03:31:19 UTC 2014


commit f5d21c52e2590e7e5b32e1a6e33c883ae1f1ef95
Author: Lokesh Mandvekar <lsm5 at fedoraproject.org>
Date:   Mon Jul 21 22:30:48 2014 -0500

    Update to latest commit, use golang macros
    
    	modified:   .gitignore
    	modified:   golang-github-gorilla-context.spec
    	modified:   sources

 .gitignore                         |    1 +
 golang-github-gorilla-context.spec |   31 ++++++++++++++++---------------
 sources                            |    2 +-
 3 files changed, 18 insertions(+), 16 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index aeb0c96..b147d66 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /context-708054d.tar.gz
 /context-b06ed15.tar.gz
+/context-14f550f.tar.gz
diff --git a/golang-github-gorilla-context.spec b/golang-github-gorilla-context.spec
index a13bafd..2bee75a 100644
--- a/golang-github-gorilla-context.spec
+++ b/golang-github-gorilla-context.spec
@@ -1,20 +1,18 @@
-%global debug_package   %{nil}
 %global import_path     github.com/gorilla/context
-%global gopath          %{_datadir}/gocode
-%global commit          b06ed15e1c7a08fa1ba783fe94fff89127587f9e
+%global commit          14f550f51af52180c2eefed15e5fd18d63c0a64a
 %global shortcommit     %(c=%{commit}; echo ${c:0:7})
 
 Name:           golang-github-gorilla-context
 Version:        0
-Release:        0.24.git%{shortcommit}%{?dist}
+Release:        0.25.git%{shortcommit}%{?dist}
 Summary:        A golang registry for global request variables
 License:        BSD
 URL:            http://www.gorillatoolkit.org/pkg/context
 Source0:        https://%{import_path}/archive/%{commit}/context-%{shortcommit}.tar.gz
-%if 0%{?fedora} >= 19
+%if 0%{?fedora}
 BuildArch:      noarch
 %else
-ExclusiveArch:  %{ix86} x86_64 %{arm}
+ExclusiveArch:  %{go_arches}
 %endif
 
 %description
@@ -26,8 +24,9 @@ sessions values to be saved at the end of a request. There are several
 other common uses.
 
 %package devel
-BuildRequires:  golang
-Requires:       golang
+# Earliest NVR containing relevant golang macros
+BuildRequires:  golang >= 1.2.1-3
+Requires:       golang >= 1.2.1-3
 Summary:        A golang registry for global request variables
 Provides:       golang(%{import_path}) = %{version}-%{release}
 
@@ -48,23 +47,25 @@ which use gorilla/context.
 %build
 
 %install
-install -d %{buildroot}/%{gopath}/src/%{import_path}
-cp -av *.go %{buildroot}/%{gopath}/src/%{import_path}
+install -d -p %{buildroot}%{gopath}/src/%{import_path}
+cp -pav *.go %{buildroot}%{gopath}/src/%{import_path}
 
 %check
-GOPATH=%{buildroot}/%{gopath} go test %{import_path}
+GOPATH=%{gopath}:%{buildroot}%{gopath} go test %{import_path}
 
 %files devel
 %defattr(-,root,root,-)
 %doc LICENSE 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/gorilla
-%dir %attr(755,root,root) %{gopath}/src/github.com/gorilla/context
+%dir %attr(755,root,root) %{gopath}/src/%{import_path}
 %{gopath}/src/%{import_path}/*.go
 
 %changelog
+* Mon Jul 21 2014 Lokesh Mandvekar <lsm5 at fedoraproject.org> - 0-0.25.git
+- update to commit 14f550f51a for docker 1.1.0 (and 1.1.1)
+- use golang packaging macros wherever applicable
+- do not own directories owned by 'golang' package
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0-0.24.gitb06ed15
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index 41e4678..96b7f07 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fe04a949a67afd80cb8f9a04609883f8  context-b06ed15.tar.gz
+1a9701c9c4c9354d5152244e505aba5e  context-14f550f.tar.gz


More information about the scm-commits mailing list