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: I31c7311094f8d1cfdee5c80e468d9cda512b5990 Signed-off-by: Alon Bar-Lev <[email protected]> --- M otopi.spec.in 1 file changed, 22 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/82/9982/1 diff --git a/otopi.spec.in b/otopi.spec.in index 1386776..8707f44 100644 --- a/otopi.spec.in +++ b/otopi.spec.in @@ -20,6 +20,10 @@ %global package_version @PACKAGE_VERSION@ %global package_maven_version @PACKAGE_MAVEN_VERSION@ +%if 0%{?rhel:1} +%global maven2brewrepodir %{_javadir}/repository.jboss.com/maven2-brew/dummy +%endif + Summary: oVirt Task Oriented Pluggable Installer/Implementation (%{name}) Name: @PACKAGE_NAME@ Version: @PACKAGE_RPM_VERSION@ @@ -90,6 +94,13 @@ %description devel Development environment for %{name}. +%if 0%{?rhel:1} +%package repolib +Summary: %{name} maven repo +%description repolib +%{name} maven repo +%endif + %prep %setup -q -n %{name}-%{package_version} @@ -132,6 +143,12 @@ ln -s %{name}-%{package_maven_version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar %endif +%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} %update_maven_depmap @@ -172,6 +189,11 @@ %{python_sitelib}/%{name}/codegen/*.py* %{_datadir}/%{name}/%{name}-bundle +%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/9982 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I31c7311094f8d1cfdee5c80e468d9cda512b5990 Gerrit-PatchSet: 1 Gerrit-Project: otopi Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
