File sipxopenfire.spec of Package sipxopenfire
%define release_prefix 18532.
Name: sipxopenfire
Version: 4.2.1
Release: %{buildno}
Summary: Openfire plugins for sipX
License: LGPL
Group: Productivity/Telephony/SIP/Servers
Vendor: SIPfoundry
Packager: SIPfoundry <sipx-dev@sipfoundry.org>
Url: http://www.sipfoundry.org/sipXopenfire
BuildRequires: java-devel >= 1.6
BuildRequires: ant-commons-logging
BuildRequires: ant-junit
BuildRequires: ant-nodeps
BuildRequires: automake
BuildRequires: zip
BuildRequires: sipxcommserverlib
BuildRequires: sipxcommons
BuildRequires: sipx-openfire
BuildRequires: asciidoc
%if %{_vendor} == redhat
BuildRequires: docbook-style-xsl
%endif
%if %{_vendor} == suse
BuildRequires: docbook-xsl-stylesheets
%endif
Source: %name-%version.tar.gz
Requires: sipxcommserverlib >= %version
Requires: sipxcommons >= %version
Requires: sipx-openfire >= 3.6.4
Prefix: %_prefix
BuildRoot: %{_tmppath}/%name-%version-root
%description
Openfire plugins for sipx.
%prep
%setup -q
%build
%configure --with-distdir=../dist SIPX_PROJECTS=sipxacd sipxbridge sipxcallcontroller sipxcalllib sipxcdrlog sipxcommons sipxcommserverlib sipxconfig sipxecs sipxfreeswitch sipximbot sipxivr sipxmediaadapterlib sipxmedialib sipxopenfire sipxpage sipxpark sipxpbx sipxportlib sipxpresence sipxprovision sipxproxy sipxpublisher sipxrecording sipxregistry sipxrelay sipxrest sipxrls sipxsaa sipxsupervisor sipxtacklib sipxtools sipxecs-doc
cp config.log %name.configlog
make all
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,sipxchange,sipxchange,755)
%dir %{_sysconfdir}/sipxpbx/database
%dir %{_sysconfdir}/sipxpbx/openfire
%dir %attr(755,sipxchange,sipxchange) %{_datadir}/java/sipXecs/sipXopenfire
%dir %attr(755,sipxchange,sipxchange) %{_datadir}/java/sipXecs/sipXopenfire/conf
%dir %attr(755,sipxchange,sipxchange) %{_datadir}/java/sipXecs/sipXopenfire/lib
%dir %attr(755,sipxchange,sipxchange) %{_datadir}/java/sipXecs/sipXopenfire/plugins
%dir %{_datadir}/sipxecs/process.d
%attr(644,root,root) %{_datadir}/sipxecs/process.d/sipxopenfire-process.xml
%attr(755,sipxchange,sipxchange) %{_bindir}/sipxopenfire.sh
%attr(755,sipxchange,sipxchange) %{_bindir}/sipxopenfire-setup.sh
%attr(755,sipxchange,sipxchange) %{_bindir}/sipxopenfire-initdb.sql
%attr(755,root,root) %{_libexecdir}/sipXecs/setup.d/sipxopenfire-setup.sh
%attr(755,sipxchange,sipxchange) %{_sysconfdir}/sipxpbx/database/sipxopenfire-initdb.sql
%attr(755,sipxchange,sipxchange) %{_sysconfdir}/sipxpbx/sipxopenfire-database.xml
%attr(755,sipxchange,sipxchange) %{_sysconfdir}/sipxpbx/openfire/sipxopenfire-prompts.properties
%attr(755,sipxchange,sipxchange) %{_datadir}/java/sipXecs/sipXopenfire/plugins/sipx-openfire-presence.jar
%attr(755,sipxchange,sipxchange) %{_datadir}/java/sipXecs/sipXopenfire/plugins/sipx-openfire-presence-plugin.jar
%attr(755,sipxchange,sipxchange) %{_datadir}/java/sipXecs/sipXopenfire/conf/openfire.xml
%attr(755,sipxchange,sipxchange) %{_datadir}/java/sipXecs/sipXopenfire/conf/web.xml.enable_openfire_admin_console
%attr(755,sipxchange,sipxchange) %{_datadir}/java/sipXecs/sipXopenfire/conf/web.xml.disable_openfire_admin_console
%attr(755,sipxchange,sipxchange) %{_datadir}/java/sipXecs/sipXopenfire/lib/sipx-openfire-vcard-provider.jar