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

Removing automatic dependency generation.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8255 b35dd754-fafc-0310-a699-88a17e54d16e
parent 669c4bbe
...@@ -4,43 +4,73 @@ Version: 3.3.1 ...@@ -4,43 +4,73 @@ Version: 3.3.1
Release: 1 Release: 1
BuildRoot: %{_builddir}/%{name}-root BuildRoot: %{_builddir}/%{name}-root
Source0: %{name}_src_3_3_1.tar.gz Source0: %{name}_src_3_3_1.tar.gz
Source1: jre-dist.tar.gz
Group: Applications/Communications Group: Applications/Communications
Vendor: Jive Software Vendor: Jive Software
Packager: Jive Software Packager: Jive Software
License: GPL License: GPL
# May reevaluate this at some point. AutoReqProv: no
#Requires: jdk >= 1.5.0
URL: http://www.igniterealtime.org/ URL: http://www.igniterealtime.org/
%define prefix /opt
%define homedir %{prefix}/openfire
%description %description
Openfire is a leading Open Source, cross-platform IM server based on the Openfire is a leading Open Source, cross-platform IM server based on the
XMPP (Jabber) protocol. It has great performance, is easy to setup and use, XMPP (Jabber) protocol. It has great performance, is easy to setup and use,
and delivers an innovative feature set. and delivers an innovative feature set.
This particular release includes a bundled JRE.
%prep %prep
%setup -q -n openfire_src
%build %build
cd build
ant openfire
ant -Dplugin=search plugin
cd ..
%install %install
# Need to evaluate this. Required, but need to figure out logistics. # Prep the install location.
#rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
# We prefer /usr/local to /opt. mkdir -p $RPM_BUILD_ROOT%{prefix}
mkdir -p $RPM_BUILD_ROOT/usr/local # Copy over the main install tree.
mv $RPM_BUILD_ROOT/opt/openfire $RPM_BUILD_ROOT/usr/local/openfire cp -R target/openfire $RPM_BUILD_ROOT%{homedir}
rmdir $RPM_BUILD_ROOT/opt # Set up distributed JRE
# There's no need to package this. pushd $RPM_BUILD_ROOT%{homedir}
rm $RPM_BUILD_ROOT/usr/local/openfire/logs/stderr.out gzip -cd %{SOURCE1} | tar xvf -
popd
# Set up the init script. # Set up the init script.
mkdir -p $RPM_BUILD_ROOT/etc/init.d mkdir -p $RPM_BUILD_ROOT/etc/init.d
cp $RPM_BUILD_ROOT/usr/local/openfire/bin/extra/redhat/openfire $RPM_BUILD_ROOT/etc/init.d/openfire cp $RPM_BUILD_ROOT%{homedir}/bin/extra/redhat/openfire $RPM_BUILD_ROOT/etc/init.d/openfire
chmod 755 $RPM_BUILD_ROOT/etc/init.d/openfire chmod 755 $RPM_BUILD_ROOT/etc/init.d/openfire
# Make the startup script executable. # Make the startup script executable.
chmod 755 $RPM_BUILD_ROOT/usr/local/openfire/bin/openfire.sh chmod 755 $RPM_BUILD_ROOT%{homedir}/bin/openfire.sh
# Set up the sysconfig file. # Set up the sysconfig file.
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
cp $RPM_BUILD_ROOT/usr/local/openfire/bin/extra/redhat/openfire-sysconfig $RPM_BUILD_ROOT/etc/sysconfig/openfire cp $RPM_BUILD_ROOT%{homedir}/bin/extra/redhat/openfire-sysconfig $RPM_BUILD_ROOT/etc/sysconfig/openfire
# Create /etc based config directory. # Copy over the documentation
mkdir -p $RPM_BUILD_ROOT/etc/openfire cp -R documentation $RPM_BUILD_ROOT%{homedir}/documentation
cp changelog.html $RPM_BUILD_ROOT%{homedir}/
cp LICENSE.html $RPM_BUILD_ROOT%{homedir}/
cp README.html $RPM_BUILD_ROOT%{homedir}/
# Copy over the i18n files
cp -R resources/i18n $RPM_BUILD_ROOT%{homedir}/resources/i18n
# Make sure scripts are executable
chmod 755 $RPM_BUILD_ROOT%{homedir}/bin/extra/openfired
chmod 755 $RPM_BUILD_ROOT%{homedir}/bin/extra/redhat-postinstall.sh
# Move over the embedded db viewer pieces
mv $RPM_BUILD_ROOT%{homedir}/bin/extra/embedded-db.rc $RPM_BUILD_ROOT%{homedir}/bin
mv $RPM_BUILD_ROOT%{homedir}/bin/extra/embedded-db-viewer.sh $RPM_BUILD_ROOT%{homedir}/bin
# We don't really need any of these things.
rm -rf $RPM_BUILD_ROOT%{homedir}/bin/extra
rm -f $RPM_BUILD_ROOT%{homedir}/bin/*.bat
rm -rf $RPM_BUILD_ROOT%{homedir}/resources/nativeAuth/osx-ppc
rm -rf $RPM_BUILD_ROOT%{homedir}/resources/nativeAuth/solaris-sparc
rm -rf $RPM_BUILD_ROOT%{homedir}/resources/nativeAuth/win32-x86
rm -f $RPM_BUILD_ROOT%{homedir}/lib/*.dll
rm -rf $RPM_BUILD_ROOT%{homedir}/resources/spank
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
...@@ -54,28 +84,40 @@ rm -rf $RPM_BUILD_ROOT ...@@ -54,28 +84,40 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,daemon,daemon) %defattr(-,daemon,daemon)
%dir /usr/local/openfire %dir %{homedir}
/usr/local/openfire/bin %dir %{homedir}/bin
%dir /usr/local/openfire/conf %{homedir}/bin/openfire.sh
%config(noreplace) /usr/local/openfire/conf/openfire.xml %config(noreplace) %{homedir}/bin/embedded-db.rc
/usr/local/openfire/lib %{homedir}/bin/embedded-db-viewer.sh
%dir /usr/local/openfire/logs %dir %{homedir}/conf
/usr/local/openfire/plugins %config(noreplace) %{homedir}/conf/openfire.xml
%dir /usr/local/openfire/resources %dir %{homedir}/lib
/usr/local/openfire/resources/database %{homedir}/lib/*.jar
/usr/local/openfire/resources/i18n %dir %{homedir}/logs
/usr/local/openfire/resources/nativeAuth %dir %{homedir}/plugins
/usr/local/openfire/resources/spank %{homedir}/plugins/search.jar
%dir /usr/local/openfire/resources/security %dir %{homedir}/plugins/admin
%config(noreplace) /usr/local/openfire/resources/security/keystore %{homedir}/plugins/admin/*
%config(noreplace) /usr/local/openfire/resources/security/truststore %dir %{homedir}/resources
%doc /usr/local/openfire/documentation %dir %{homedir}/resources/database
%doc /usr/local/openfire/LICENSE.html %{homedir}/resources/database/*.sql
%doc /usr/local/openfire/README.html %dir %{homedir}/resources/database/upgrade
%doc /usr/local/openfire/changelog.html %dir %{homedir}/resources/database/upgrade/*
/etc/init.d/openfire %{homedir}/resources/database/upgrade/*/*
%config(noreplace) /etc/sysconfig/openfire %dir %{homedir}/resources/i18n
%{homedir}/resources/i18n/*
%dir %{homedir}/resources/nativeAuth
%dir %{homedir}/resources/nativeAuth/linux-i386
%{homedir}/resources/nativeAuth/linux-i386/*
%{homedir}/resources/security
%doc %{homedir}/documentation
%doc %{homedir}/LICENSE.html
%doc %{homedir}/README.html
%doc %{homedir}/changelog.html
%{_sysconfdir}/init.d/openfire
%config(noreplace) %{_sysconfdir}/sysconfig/openfire
%{homedir}/jre
%changelog %changelog
* Mon Apr 30 2007 Daniel Henninger <jadestorm@nc.rr.com> 3.3.1 * Mon Apr 30 2007 Daniel Henninger <jadestorm@nc.rr.com> 3.3.1-1
- Initial RPM creation. - Initial RPM creation.
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