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

RPM spec file no longer needs to be edited for each new release version.


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9622 b35dd754-fafc-0310-a699-88a17e54d16e
parent 082efb90
......@@ -1084,6 +1084,9 @@
<!-- installer.rpm ========================================================================= -->
<property name="target.rpm" value="${work.dir}/rpm" />
<tstamp>
<format property="rpm.builddate" pattern="EEE MMM dd yyyy" locale="en"/>
</tstamp>
<target name="installer.rpm" depends="init, dist.init" description="Builds a rpm of openfire.">
<antcall target="dist.src"/>
......@@ -1099,7 +1102,7 @@
<rpm specFile="openfire.spec"
topDir="${target.rpm}"
command="-ba"
command="-ba --define 'OPENFIRE_VERSION ${version}' --define 'OPENFIRE_SOURCE ${release.fullname.src}.tar.gz' --define 'OPENFIRE_BUILDDATE ${rpm.builddate}'"
failOnError="true"
/>
......
Summary: Openfire XMPP Server
Name: openfire
Version: 3.4.2
Version: %{OPENFIRE_VERSION}
Release: 1
BuildRoot: %{_builddir}/%{name}-root
Source0: %{name}_src_3_4_2.tar.gz
Source0: %{OPENFIRE_SOURCE}
Source1: jre-dist.tar.gz
Group: Applications/Communications
Vendor: Jive Software
......@@ -125,5 +125,5 @@ chown -R daemon:daemon %{homedir}
%{homedir}/jre
%changelog
* Mon Apr 30 2007 Daniel Henninger <jadestorm@nc.rr.com> 3.3.1-1
- Initial RPM creation.
* %{OPENFIRE_BUILDDATE} Jive Software <webmaster@jivesoftware.com> %{OPENFIRE_VERSION}-1
- Automatic RPM build.
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