Alon Bar-Lev has uploaded a new change for review.

Change subject: packaging: add rhel specific packaging behaviour
......................................................................

packaging: add rhel specific packaging behaviour

Change-Id: I8e550409611fac2e2f16645fdc2370db011dd49b
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M ovirt-host-deploy.spec.in
1 file changed, 22 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-host-deploy refs/changes/84/9984/1

diff --git a/ovirt-host-deploy.spec.in b/ovirt-host-deploy.spec.in
index f870503..3ee2fa3 100644
--- a/ovirt-host-deploy.spec.in
+++ b/ovirt-host-deploy.spec.in
@@ -21,6 +21,10 @@
 %global                package_maven_version @PACKAGE_MAVEN_VERSION@
 %global                ovirt_host_deploy_root 
%{_datadir}/%{name}/interface-@INTERFACE_VERSION@
 
+%if 0%{?rhel:1}
+%global                maven2brewrepodir 
%{_javadir}/repository.jboss.com/maven2-brew/dummy
+%endif
+
 Summary:       oVirt host deploy tool
 Name:          @PACKAGE_NAME@
 Version:       @PACKAGE_RPM_VERSION@
@@ -88,6 +92,13 @@
 %description offline
 meta package for offline setup
 
+%if 0%{?rhel:1}
+%package repolib
+Summary:       %{name} maven repo
+%description repolib
+%{name} maven repo
+%endif
+
 %prep
 %setup -q -n %{name}-%{package_version}
 
@@ -130,6 +141,12 @@
 
 install -d -m 755 "%{buildroot}%{_sysconfdir}/%{name}.conf.d"
 install -pm 644 conf.d/50-offline-packager.conf 
"%{buildroot}%{_sysconfdir}/%{name}.conf.d"
+
+%if 0%{?rhel:1}
+install -d "%{buildroot}%{maven2brewrepodir}"
+cp "%{buildroot}%{_javadir}/%{name}/%{name}.jar" 
"%{buildroot}%{maven2brewrepodir}/%{name}-%{package_maven_version}.jar"
+cp src/java/pom.xml 
"%{buildroot}%{maven2brewrepodir}/%{name}-%{package_maven_version}.pom"
+%endif
 
 %post java
 %if 0%{?fedora:1}
@@ -179,6 +196,11 @@
 %files offline
 %{_sysconfdir}/%{name}.conf.d/50-offline-packager.conf
 
+%if 0%{?rhel:1}
+%files repolib
+%{maven2brewrepodir}/*
+%endif
+
 %changelog
 * Tue Oct 13 2012 Alon Bar-Lev <[email protected]> - 0.0.0-0
 - Initial add.


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8e550409611fac2e2f16645fdc2370db011dd49b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-host-deploy
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to