%define name sems %define ver 0.9.1 %define rel 3 %define buildtopdir answer_machine Summary: SIP Express Media Server, an extensible SIP media server. Name: %{name} Version: %{ver} Release: %{rel} Packager: Raphael Coeffic Source: http://www.iptel.org/sems/sems_devel_snapshot_190505.tar.bz2 URL: http://sems.berlios.de Vendor: FhG Fokus License: GPL Group: System Environment/Deamons BuildRoot: /var/tmp/%{name}-%{ver}-root BuildPrereq: make sed %description Sems (SIP Express Media Server) is very extensible and programmable SIP media server for Ser (SIP Express Media Server, http://www.iptel.org/ser). The plug-in based Sdk enables you to extend Sems and write your own applications and integrate new codec. Voicemail, announcement and echo plug-ins are already included. Sems supports g711u, g711a, GSM06.10 and wav file. %prep %setup -q -n %{buildtopdir} %build make all %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT" make install basedir=$RPM_BUILD_ROOT \ prefix=/usr \ cfg-prefix=$RPM_BUILD_ROOT \ cfg-target=%{_sysconfdir}/sems/ \ start-script=sems.redhat mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d install -m755 $RPM_BUILD_DIR/%{buildtopdir}/scripts/sems.redhat \ $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/sems %clean rm -rf "$RPM_BUILD_ROOT" %post %preun %files %defattr(-,root,root) %dir %{_sysconfdir}/sems %config(noreplace) %{_sysconfdir}/sems/* %{_sysconfdir}/rc.d/init.d/sems %{_sbindir}/sems %dir %{_libdir}/sems %dir %{_libdir}/sems/plug-in %dir %{_libdir}/sems/plug-in/audio %dir %{_libdir}/sems/plug-in/apps %{_libdir}/sems/plug-in/audio/* %{_libdir}/sems/plug-in/apps/* %dir %{_libdir}/sems/audio %{_libdir}/sems/audio/* %doc README docs/* %changelog * Sat Aug 30 2003 Raphael Coeffic - Spec file fixed and tested to work with Redhat >= 7.3. * Fri Aug 29 2003 Raphael Coeffic - First version of the spec file.