https://reviews.apache.org/r/6941/ - fix openjdk build requirement in spec file


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/1deb31a9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/1deb31a9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/1deb31a9

Branch: refs/heads/marvin-parallel
Commit: 1deb31a97ecea0dd8aa6a45514563c922e71d03e
Parents: 1e0b8e4
Author: Hiroaki Kawai <[email protected]>
Authored: Wed Oct 24 14:29:19 2012 -0400
Committer: David Nalley <[email protected]>
Committed: Wed Oct 24 14:29:54 2012 -0400

----------------------------------------------------------------------
 cloud.spec |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1deb31a9/cloud.spec
----------------------------------------------------------------------
diff --git a/cloud.spec b/cloud.spec
index deaf1ca..29c1093 100644
--- a/cloud.spec
+++ b/cloud.spec
@@ -38,7 +38,11 @@ Group:     System Environment/Libraries
 Source0:   %{name}-%{_ver}.tar.bz2
 BuildRoot: %{_tmppath}/%{name}-%{_ver}-%{release}-build
 
+%if 0%{?fedora} >= 17
 BuildRequires: java-1.7.0-openjdk-devel
+%else
+BuildRequires: java-1.6.0-openjdk-devel
+%endif
 BuildRequires: tomcat6
 BuildRequires: ws-commons-util
 BuildRequires: jpackage-utils

Reply via email to