[packages/go-bindata] new, version 3.0.7

glen glen at pld-linux.org
Thu Mar 31 21:08:38 CEST 2016


commit 8f020a9f08d37846288fb0337fa9ab9ed36f66e2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Mar 31 22:07:58 2016 +0300

    new, version 3.0.7
    
    based on fedora package, d07cfbc

 go-bindata.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
---
diff --git a/go-bindata.spec b/go-bindata.spec
new file mode 100644
index 0000000..e1a51bb
--- /dev/null
+++ b/go-bindata.spec
@@ -0,0 +1,45 @@
+Summary:	A small utility which generates Go code from any file
+Name:		go-bindata
+Version:	3.0.7
+Release:	1
+License:	MIT
+Group:		Development/Tools
+Source0:	https://github.com/jteeuwen/go-bindata/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	a65ad66927be41885614c5ddd1728b34
+URL:		http://github.com/jteeuwen/go-bindata
+BuildRequires:	golang >= 1.3.3
+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
+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
+
+install -d _build/src/github.com/jteeuwen
+ln -s $(pwd) _build/src/github.com/jteeuwen/go-bindata
+
+%build
+export GOPATH=$(pwd)/_build
+cd go-bindata
+go build .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+install -p go-bindata/go-bindata $RPM_BUILD_ROOT%{_bindir}/go-bindata
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%attr(755,root,root) %{_bindir}/go-bindata
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/go-bindata.git/commitdiff/8f020a9f08d37846288fb0337fa9ab9ed36f66e2



More information about the pld-cvs-commit mailing list