Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:util="http://www.springframework.org/schema/util"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    http://www.springframework.org/schema/util
    http://www.springframework.org/schema/util/spring-util-2.0.xsd">
    <bean id="imBundle" parent="abstractBundle">
   	<constructor-arg value="im" />
    </bean>
    <bean id="sipxOpenfireService" class="org.sipfoundry.sipxconfig.openfire.SipxOpenfireService" scope="prototype" parent="sipxService">
        <property name="processName" value="SipXopenfire" />
               <property name="bundles">
          <set>
            <ref bean="imBundle" />
          </set>
    	</property>
    </bean>	
</beans>

Any other Spring beans that perform any kind of functionality should be added here.

...

Please make sure that SipXopenfire is the same as the name defined in -models.beans.xml file:
__ <property name="processName" value="SipXopenfire" />

Please check sipXconfig's services.beans.xml/bundle.beans.xml for more information

...

It is a paired down version of sipxconfig.spec that might be a template for packaging sipXconfig plugins.

{{Box File|sipxconfig-plugin-acme.spec|

Code Block
Name: sipxconfig-acme
Version: 1.0
Release: 1

# java, no debug rpm nec.
%define debug_package %{nil}

# disable JAR repacking
%define __jar_repack %{nil}

Summary: Acme phone support for sipXconfig
License: LGPL??
Group: Telcommunications
Vendor: Example Corp.
Packager: First Last <first.last@example.com>

%define sipxpbxconf %{_sysconfdir}/sipxpbx
%define sipxconfiglib %{_datadir}/java/sipXecs/sipXconfig

Requires: sipxconfig

Source: %name-%version.tar.gz

BuildRoot: %{_tmppath}/%name-%version-root

%description
This package adds support for the Acme phones.

%prep
%setup -q

%build
%configure
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

# build should install one or more jars in sipxconfiglib directory...

%files
%defattr(644,root,root,755)
%{sipxconfiglib}/sipxconfig-acme.jar
%config(noreplace) %{sipxpbxconf}/acme/*

%post

%preun

...