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 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}'"
......
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