[packages/godep: 1/2] new, version 27

glen glen at pld-linux.org
Thu Mar 31 20:40:14 CEST 2016


commit f2056acbdc95f6b6e1d3f783ba5ffd14bc156726
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Mar 31 21:37:42 2016 +0300

    new, version 27
    
    based on fedora package, 583d2e4
    heavily stripped to keep only important parts

 godep.spec | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
---
diff --git a/godep.spec b/godep.spec
new file mode 100644
index 0000000..c7977f9
--- /dev/null
+++ b/godep.spec
@@ -0,0 +1,41 @@
+Summary:	Dependency tool for go
+Name:		godep
+Version:	27
+Release:	1
+License:	BSD
+Group:		Development/Building
+Source0:	https://github.com/tools/godep/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	01f49a3394bc200566eb31f851e7b919
+URL:		https://github.com/tools/godep
+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
+Dependency tool for go.
+
+%prep
+%setup -q
+
+install -d src/github.com/tools
+ln -s ../../../ src/github.com/tools/godep
+
+%build
+export GOPATH=$(pwd):$(pwd)/Godeps/_workspace
+%gobuild -o bin/godep %{import_path}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d -p $RPM_BUILD_ROOT%{_bindir}
+install -p bin/godep $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changelog.md Readme.md License
+%attr(755,root,root) %{_bindir}/godep
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/godep.git/commitdiff/b3473bda5593e675094ba066aba5007cd69c1032



More information about the pld-cvs-commit mailing list