[packages/gitlab-ce] gem cache bcond

glen glen at pld-linux.org
Fri Apr 15 23:20:45 CEST 2016


commit e1281e416f55e5b8fd62c353c9617805ad5ef16c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Apr 16 00:20:34 2016 +0300

    gem cache bcond

 gitlab-ce.spec | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gitlab-ce.spec b/gitlab-ce.spec
index c6737bb..48458c4 100644
--- a/gitlab-ce.spec
+++ b/gitlab-ce.spec
@@ -12,6 +12,7 @@
 #
 # Conditional build:
 %bcond_with	krb5		# build with kerberos support
+%bcond_with	gem_cache	# build from local gem cache only (avoids network)
 
 Summary:	A Web interface to create projects and repositories, manage access and do code reviews
 Name:		gitlab-ce
@@ -74,6 +75,7 @@ find -name .gitkeep | xargs rm
 %build
 bundle install %{_smp_mflags} \
 	--verbose \
+	%{?with_gem_cache:--local} \
 	%{?debug:--no-cache --no-prune} \
 	 --deployment --without development test aws %{!?with_krb5:kerberos}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gitlab-ce.git/commitdiff/e1281e416f55e5b8fd62c353c9617805ad5ef16c



More information about the pld-cvs-commit mailing list