Name: @PACKAGE@ Version: @VERSION@ Release: %{buildno} Summary: Voice XML execution engine License: Pingtel Commercial License Group: Productivity/Telephony/SIP/Servers Vendor: Pingtel Corp. Packager: Pingtel Url: http://www.pingtel.com Source: %name-%version.tar.gz Requires: sipxcalllib >= 3.11 Requires: sipxcommserverlib >= 3.11 Requires: sipxmedialib >= 3.11 Requires: sipxmediaadapterlib >= 3.11 Requires: sipxtacklib >= 3.11 Requires: sipxportlib >= 3.11 Requires: sipxpbx >= 3.11 Requires: @LIBWWW_RPM@ >= 5.4.0 %if %{_vendor} == redhat # Httpd is needed to serve VXML applications and execute supporting CGIs. Requires: httpd >= 2.0 %endif %if %{_vendor} == suse Requires: apache2-prefork %endif Prefix: %_prefix BuildRoot: %{_tmppath}/%name-%version-root %description Voice XML processing engine. With scripts to implement the voicemail and auto-attendant functions of a PBX. %if %{_vendor} == suse %debug_package %endif %package devel Requires: %name Group: Development/Libraries Vendor: SIPfoundry Summary: Internal documentation for %name Requires: sipxcommserverlib-devel >= 3.11 %description devel Internal class documentation for the sipXvxml classes %prep %setup -q %build %configure @CONFIGURE_OPTIONS@ 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 copacetic 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) %doc CONTRIBUTORS NEWS README ChangeLog %name.configlog %attr(4755,root,root) %{_bindir}/sipXvxml %attr(755,root,root) %{_bindir}/sipXvxml.sh %attr(755,root,root) %{_bindir}/%name-config %attr(755,root,root) %{_libexecdir}/sipXecs/setup.d/sipXvxml_setup.sh %attr(644,root,root) %{_datadir}/sipxecs/process.d/sipXvxml-process.xml # A lot of these files are installed in ../include/ itself, which needs to be changed. %{_includedir} %files devel %defattr(644,root,root,755) %docdir %{_datadir}/doc/sipxecs/%name %{_datadir}/doc/sipxecs/%name %post