Search
j0ke.net Open Build Service
>
Projects
>
server:messaging
>
openfire
> openfire.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File openfire.spec of Package openfire (Revision 21)
Currently displaying revision
21
,
show latest
Summary: Openfire XMPP Server Name: openfire Version: 3.7.1 Release: 1 BuildRoot: %{_builddir}/%{name}-root Source0: %{name}_src_3_7_0.tar.gz Patch0: %{name}-init-lsb.patch Group: Applications/Communications Vendor: Jive Software Packager: Jive Software License: GPL AutoReqProv: no URL: http://www.igniterealtime.org/ BuildRequires: ant update-alternatives %if 0%{?suse_version} BuildRequires: jre >= 1.6.0 java-sdk-sun >= 1.6.0 java-devel-sun >= 1.6.0 Requires: jre >= 1.6.0 %endif %define prefix /opt %define homedir %{prefix}/openfire %description 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, and delivers an innovative feature set. This particular release includes a bundled JRE. %prep %setup -q -n openfire_src %patch0 %build cd build ant openfire ant -Dplugin=search plugin cd .. %install # Prep the install location. rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{prefix} # Copy over the main install tree. cp -R target/openfire $RPM_BUILD_ROOT%{homedir} # Set up distributed JRE #pushd $RPM_BUILD_ROOT%{homedir} #gzip -cd %{SOURCE1} | tar xvf - #opd # Set up the init script. mkdir -p $RPM_BUILD_ROOT/etc/init.d 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 # Make the startup script executable. chmod 755 $RPM_BUILD_ROOT%{homedir}/bin/openfire.sh # Set up the sysconfig file. %if 0%{?suse_version} mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates cp $RPM_BUILD_ROOT%{homedir}/bin/extra/redhat/openfire-sysconfig $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.openfire %else mkdir -p $RPM_BUILD_ROOT/etc/sysconfig cp $RPM_BUILD_ROOT%{homedir}/bin/extra/redhat/openfire-sysconfig $RPM_BUILD_ROOT/etc/sysconfig/openfire %endif # Copy over the documentation 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 rm -rf $RPM_BUILD_ROOT %preun %if 0%{?suse_version} %stop_on_removal %else [ -x "/etc/init.d/openfire" ] && /etc/init.d/openfire stop %endif /sbin/chkconfig --del openfire || : %post %if 0%{?suse_version} %fillup_and_insserv %else /sbin/chkconfig --add openfire || : %endif chown -R daemon:daemon %{homedir} %files %defattr(-,daemon,daemon) %dir %{homedir} %dir %{homedir}/bin %{homedir}/bin/openfire.sh %{homedir}/bin/openfirectl %config(noreplace) %{homedir}/bin/embedded-db.rc %{homedir}/bin/embedded-db-viewer.sh %dir %{homedir}/conf %config(noreplace) %{homedir}/conf/openfire.xml %dir %{homedir}/lib %{homedir}/lib/*.jar %{homedir}/lib/log4j.xml %dir %{homedir}/logs %dir %{homedir}/plugins %{homedir}/plugins/search.jar %dir %{homedir}/plugins/admin %{homedir}/plugins/admin/* %dir %{homedir}/resources %dir %{homedir}/resources/database %{homedir}/resources/database/*.sql %dir %{homedir}/resources/database/upgrade %dir %{homedir}/resources/database/upgrade/* %{homedir}/resources/database/upgrade/*/* %dir %{homedir}/resources/i18n %{homedir}/resources/i18n/* %dir %{homedir}/resources/nativeAuth %dir %{homedir}/resources/nativeAuth/linux-i386 %{homedir}/resources/nativeAuth/linux-i386/* %dir %{homedir}/resources/security %config(noreplace) %{homedir}/resources/security/keystore %config(noreplace) %{homedir}/resources/security/truststore %config(noreplace) %{homedir}/resources/security/client.truststore %doc %{homedir}/documentation %doc %{homedir}/LICENSE.html %doc %{homedir}/README.html %doc %{homedir}/changelog.html %{_sysconfdir}/init.d/openfire %if 0%{?suse_version} /var/adm/fillup-templates/sysconfig.openfire %else %config(noreplace) %{_sysconfdir}/sysconfig/openfire %endif #%{homedir}/jre %changelog * Sun Sep 06 2009 Carsten Schoene <cs@linux-administrator.com> - 3.6.4-1 - new release 3.6.4 * Sat Jan 10 2009 Carsten Schoene <cs@linux-administrator.com> - 3.6.3-1 - new release 3.6.3 * Mon Nov 24 2008 Carsten Schoene <cs@linux-administrator.com> - 3.6.2-1 - new release 3.6.2 * Fri Sep 05 2008 Carsten Schoene <cs@linux-administrator.com> - 3.6.0a-1 - new release 3.6.0a * Sat Jun 28 2008 Carsten Schoene <cs@linux-administrator.com> - 3.5.2-1 - new release 3.5.2 * Mon May 05 2008 Carsten Schoene <cs@linux-administrator.com> - 3.5.1-1 - new release 3.5.1 * Mon Mar 24 2008 Carsten Schoene <cs@linux-administrator.com> - 3.4.5-1 - version bump to 3.4.5 * Mon Apr 30 2007 Daniel Henninger <jadestorm@nc.rr.com> 3.3.1-1 - Initial RPM creation.