[packages/golang] tests require hostname
glen
glen at pld-linux.org
Wed Mar 13 15:23:03 CET 2013
commit 602caf80ae4dde31809219dd9017dfcb1ffe27b1
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Mar 13 15:39:50 2013 +0200
tests require hostname
golang.spec | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/golang.spec b/golang.spec
index 1f4ae55..81a6424 100644
--- a/golang.spec
+++ b/golang.spec
@@ -1,3 +1,9 @@
+# TODO
+# - allow disabling tests (currently bcond exists just for showing which are test deps)
+
+# Conditional build:
+%bcond_without tests # build without tests
+
Summary: Go compiler and tools
Name: golang
Version: 1.0.3
@@ -10,6 +16,9 @@ Source0: http://go.googlecode.com/files/go%{version}.src.tar.gz
BuildRequires: bison
BuildRequires: ed
BuildRequires: mercurial
+%if %{with tests}
+BuildRequires: hostname
+%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _enable_debug_packages 0
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/golang.git/commitdiff/b87ab065e2a542184cf4d0983887fe9ad9d2c411
More information about the pld-cvs-commit
mailing list