LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File sipxacd.spec of Package sipxacd (Project home:sipfoundry:test2)

%define release_prefix 18395.
Name:     sipxacd
Version:  4.1.7
Release:  %{buildno}

Summary:  SIP ACD Server
License:  LGPL
Group:    Productivity/Telephony/SIP/Servers
Vendor:   Pingtel
Packager: Pingtel
Url:      http://www.pingtel.com
 
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: cppunit-devel
BuildRequires: doxygen
BuildRequires: pcre-devel >= 4.5
BuildRequires: openssl-devel
BuildRequires: sipxcalllib-devel >= %version
BuildRequires: sipxcommserverlib-devel >= %version
BuildRequires: sipxmediaadapterlib-devel >= %version
BuildRequires: sipxmedialib-devel >= %version
BuildRequires: sipxportlib-devel >= %version
BuildRequires: sipxtacklib-devel >= %version

Source:   %name-%version.tar.gz

Requires: sipxcommserverlib >= %version
Requires: sipxcalllib >= %version
Requires: sipxpbx >= %version

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

%description
TBD

%if %{_vendor} == suse
%debug_package
%endif

%package devel
Requires: %name
Requires: sipxcalllib-devel >= %version
Requires: sipxcommserverlib-devel >= %version
Group: Development/Libraries
Vendor: SIPfoundry
Summary: Header files for %name

%description devel
Developer support for sipXacd.

%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

%install

# makeinstall RPM macro doesn't leverage DESTDIR but instead overrides
# libdir, bindir, etc just for make install. This not copesetic w/how
# our makefiles are built, they'd rather preserve libdir, and use
# DESTDIR when copying/moving/creating files.  The approach we're taking
# is quite standard, so it's surprising RPM's makeinstall macro is
# the way it is.
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%docdir %{_datadir}/doc/sipxecs/%name
%{_datadir}/doc/sipxecs/%name

%doc %name.configlog
%docdir doc
%attr(755,root,root) %{_bindir}/sipxacd.sh
%attr(755,root,root) %{_bindir}/sipxacd-config
%attr(755,root,root) %{_bindir}/sipxacd
%attr(644,root,root) %{_datadir}/sipxecs/process.d/sipxacd-process.xml


%files devel
%defattr(644,root,root,755)

%pre

%post