Commit e015662a authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Updated RPM target to accept more on-the-fly tweaks so that enterprise build...

Updated RPM target to accept more on-the-fly tweaks so that enterprise build can use it instead of a custom target.


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9626 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6b05dc4e
......@@ -1083,7 +1083,10 @@
</target>
<!-- installer.rpm ========================================================================= -->
<property name="target.rpm" value="${work.dir}/rpm" />
<property name="bundle.jre" value="true" />
<property name="target.work.subdir" value="rpm" />
<property name="target.rpm" value="${work.dir}/${target.work.subdir}" />
<property name="rpm.spec.file" value="${basedir}/build/rpm/openfire.spec"/>
<tstamp>
<format property="rpm.builddate" pattern="EEE MMM dd yyyy" locale="en"/>
</tstamp>
......@@ -1096,10 +1099,17 @@
<mkdir dir="${target.rpm}/SRPMS" />
<mkdir dir="${target.rpm}/RPMS" />
<copy todir="${target.rpm}/SPECS" file="${basedir}/build/rpm/openfire.spec" />
<copy todir="${target.rpm}/SOURCES" file="${basedir}/build/rpm/jre-dist.tar.gz" />
<copy tofile="${target.rpm}/SPECS/openfire.spec" file="${rpm.spec.file}" />
<if>
<equals arg1="${bundle.jre}" arg2="true"/>
<then>
<!-- Include bundled jre -->
<copy todir="${target.rpm}/SOURCES" file="${basedir}/build/rpm/jre-dist.tar.gz" />
</then>
</if>
<copy todir="${target.rpm}/SOURCES" file="${release.dest.dir}/${release.fullname.src}.tar.gz" />
<rpm specFile="openfire.spec"
topDir="${target.rpm}"
command="-ba --define 'OPENFIRE_VERSION ${version}' --define 'OPENFIRE_SOURCE ${release.fullname.src}.tar.gz' --define 'OPENFIRE_BUILDDATE ${rpm.builddate}'"
......@@ -1111,7 +1121,7 @@
<fileset dir="${target.rpm}/RPMS/i386" />
</copy>
</target>
<!-- plugins =============================================================================== -->
<target name="plugins" description="Builds all plugins">
<!-- Call jar task, can't do this is as a 'depends' call of this target because
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment