Juan Hernandez has uploaded a new change for review.

Change subject: sdk: Fix RPM dependencies for EL6
......................................................................

sdk: Fix RPM dependencies for EL6

The names of some packages are different in EL6 and in Fedora. The
current .spec uses the Fedora names. This patch changes the .spec so
that it will work in both Fedora and EL6.

Change-Id: Ia18cfd0e8be01286727f2ad16782972c4a50a3c5
Signed-off-by: Juan Hernandez <[email protected]>
---
M ovirt-engine-sdk-java/ovirt-engine-sdk-java.spec.in
1 file changed, 15 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk-java 
refs/changes/32/23132/1

diff --git a/ovirt-engine-sdk-java/ovirt-engine-sdk-java.spec.in 
b/ovirt-engine-sdk-java/ovirt-engine-sdk-java.spec.in
index 9d457c1..b2902bb 100644
--- a/ovirt-engine-sdk-java/ovirt-engine-sdk-java.spec.in
+++ b/ovirt-engine-sdk-java/ovirt-engine-sdk-java.spec.in
@@ -29,7 +29,12 @@
 
 BuildArch: noarch
 
+%if 0%{?fedora}
 BuildRequires:  java-devel
+%endif
+%if 0%{?rhel}
+BuildRequires:  java7-devel
+%endif
 BuildRequires:  jpackage-utils
 
 %if %{require_java_dep}
@@ -52,10 +57,17 @@
 
 Requires: java
 Requires: httpcomponents-client >= 4.2
-Requires: apache-commons-logging
-Requires: apache-commons-beanutils
-Requires: commons-codec
 Requires: log4j
+%if 0%{?rhel}
+Requires: jakarta-commons-beanutils
+Requires: jakarta-commons-codec
+Requires: jakarta-commons-logging
+%endif
+%if 0%{?fedora}
+Requires: apache-commons-beanutils
+Requires: apache-commons-codec
+Requires: apache-commons-logging
+%endif
 
 %description
 This package contains The oVirt-Engine Java Software Development Kit.


-- 
To view, visit http://gerrit.ovirt.org/23132
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia18cfd0e8be01286727f2ad16782972c4a50a3c5
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine-sdk-java
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to