[packages/go-bindata] post 3.0.7 to add support for -nometadata

glen glen at pld-linux.org
Thu Mar 31 21:14:16 CEST 2016


commit 9e67f3179cbf541326b29aaeedc7d5f53a3964bd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Mar 31 22:13:37 2016 +0300

    post 3.0.7 to add support for -nometadata
    
    https://github.com/jteeuwen/go-bindata/pull/108

 go-bindata.spec | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/go-bindata.spec b/go-bindata.spec
index e1a51bb..c0aea8f 100644
--- a/go-bindata.spec
+++ b/go-bindata.spec
@@ -1,11 +1,14 @@
+%define		commit	a0ff2567
+%define		rel	1
 Summary:	A small utility which generates Go code from any file
 Name:		go-bindata
 Version:	3.0.7
-Release:	1
+Release:	%{rel}.%{commit}
 License:	MIT
 Group:		Development/Tools
-Source0:	https://github.com/jteeuwen/go-bindata/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	a65ad66927be41885614c5ddd1728b34
+#Source0:	https://github.com/jteeuwen/go-bindata/archive/v%{version}/%{name}-%{version}.tar.gz
+Source0:	https://github.com/jteeuwen/go-bindata/archive/%{commit}/%{name}-%{version}-%{commit}.tar.gz
+# Source0-md5:	d630353abae8c73adf2ed2af3d0e74a0
 URL:		http://github.com/jteeuwen/go-bindata
 BuildRequires:	golang >= 1.3.3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -13,7 +16,6 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 # go stuff
 %define _enable_debug_packages 0
 %define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
-%define import_path github.com/tools/godep
 
 %description
 This tool converts any file into managable Go source code. Useful for
@@ -21,7 +23,8 @@ embedding binary data into a go program. The file data is optionally
 gzip compressed before being converted to a raw byte slice.
 
 %prep
-%setup -q
+%setup -qc
+mv %{name}-*/* .
 
 install -d _build/src/github.com/jteeuwen
 ln -s $(pwd) _build/src/github.com/jteeuwen/go-bindata
@@ -29,7 +32,7 @@ ln -s $(pwd) _build/src/github.com/jteeuwen/go-bindata
 %build
 export GOPATH=$(pwd)/_build
 cd go-bindata
-go build .
+%gobuild .
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/go-bindata.git/commitdiff/9e67f3179cbf541326b29aaeedc7d5f53a3964bd



More information about the pld-cvs-commit mailing list