%define EXCLUDED_MODULES mysql jabber cpl-c avp_radius auth_radius group_radius uri_radius postgress pa %define MYSQL_MODULES mysql %define JABBER_MODULES jabber %define CPL_MODULES cpl-c %define RADIUS_MODULES avp_radius auth_radius group_radius uri_radius %define RADIUS_MOD_PATH modules/avp_radius modules/auth_radius modules/group_radius modules/uri_radius Summary: OpenSIP Express Router, very fast and flexible SIP Proxy Name: openser Version: 0.9.5 Release: rhel3.0 Packager: Daniel-Constantin Mierla Copyright: GPL Group: Networking/Daemons Source: http://openser.org/pub/openser/stable/%{name}-%{version}_src.tar.gz Source1: openser.init URL: http://openser.org/ Vendor: Voice-System.RO BuildRoot: /var/tmp/%{name}-%{version}-root Conflicts: openser-mysql < %{version}, openser-jabber < %{version}, openser-radius < %{version} BuildPrereq: make flex bison %description OpenSER or Open SIP Express Router is a very fast and flexible SIP (RFC3621) proxy server. Written entirely in C, openser can handle thousands calls per second even on low-budget hardware. A C Shell like scripting language provides full control over the server's behaviour. It's modular architecture allows only required functionality to be loaded. Currently the following modules are available: digest authentication, CPL scripts, instant messaging, MySQL support, a presence agent, radius authentication, record routing, an SMS gateway, a jabber gateway, a transaction module, registrar and user location. %package mysql Summary: MySQL connectivity for Open SIP Express Router. Group: System Environment/Daemons Requires: openser = %{version} BuildPrereq: mysql-devel zlib-devel %description mysql The openser-mysql package contains MySQL database connectivity that you need to use digest authentication module or persistent user location entries. #%package jabber #Summary: sip jabber message translation support for Open SIP Express Router. #Group: System Environment/Daemons #Requires: openser = %{version} #BuildPrereq: expat-devel #%description jabber #The openser-jabber package contains a sip to jabber message translator. %package cpl Summary: CPL interpreter engine for Open SIP Express Router. Group: System Environment/Daemons Requires: openser = %{version} BuildPrereq: libxml2-devel %description cpl The openser-cpl package contains a SIP CPL interpreter engine. #%package radius #Summary: openser radius authentication, group and uri check modules. #Group: System Environment/Daemons #Requires: openser = %{version} #BuildPrereq: radiusclient-devel #%description radius #The openser-radius package contains modules for radius authentication, group # membership and uri checking. %prep %setup %build make all skip_modules="%EXCLUDED_MODULES" cfg-target=/%{_sysconfdir}/openser/ make modules modules="modules/%MYSQL_MODULES" cfg-target=/%{_sysconfdir}/openser/ #make modules modules="modules/%JABBER_MODULES" cfg-target=/%{_sysconfdir}/openser/ make modules modules="modules/%CPL_MODULES" cfg-target=/%{_sysconfdir}/openser/ #make modules modules="%RADIUS_MOD_PATH" cfg-target=/%{_sysconfdir}/openser/ %install rm -rf %{buildroot} make install skip_modules="%EXCLUDED_MODULES" \ basedir=%{buildroot} \ prefix=%{_prefix} \ cfg-prefix=%{buildroot} \ cfg-target=/%{_sysconfdir}/openser/ make install-modules modules="modules/%MYSQL_MODULES" \ basedir=%{buildroot} \ prefix=%{_prefix} \ cfg-prefix=%{buildroot} \ cfg-target=/%{_sysconfdir}/openser/ #make install-modules modules="modules/%JABBER_MODULES" \ # basedir=%{buildroot} \ # prefix=%{_prefix} \ # cfg-prefix=%{buildroot} \ # cfg-target=/%{_sysconfdir}/openser/ #make install-doc modules="modules/%JABBER_MODULES" \ # basedir=%{buildroot} \ # prefix=%{_prefix} \ # cfg-prefix=%{buildroot} \ # cfg-target=/%{_sysconfdir}/openser/ make install-modules modules="modules/%CPL_MODULES" \ basedir=%{buildroot} \ prefix=%{_prefix} \ cfg-prefix=%{buildroot} \ cfg-target=/%{_sysconfdir}/openser/ make install-doc modules="modules/%CPL_MODULES" \ basedir=%{buildroot} \ prefix=%{_prefix} \ cfg-prefix=%{buildroot} \ cfg-target=/%{_sysconfdir}/openser/ #make install-modules modules="%RADIUS_MOD_PATH" \ # basedir=%{buildroot} \ # prefix=%{_prefix} \ # cfg-prefix=%{buildroot} \ # cfg-target=/%{_sysconfdir}/openser/ #make install-doc modules="%RADIUS_MOD_PATH" \ # basedir=%{buildroot} \ # prefix=%{_prefix} \ # cfg-prefix=%{buildroot} \ # cfg-target=/%{_sysconfdir}/openser/ install -m755 -D %{SOURCE1} %{buildroot}/%{_initrddir}/openser %clean rm -rf %{buildroot} %post /sbin/chkconfig --add openser %preun if [ $1 = 0 ]; then /sbin/service openser stop > /dev/null 2>&1 /sbin/chkconfig --del openser fi %files %defattr(-,root,root) %doc %{_docdir}/openser/* %config(noreplace) %{_sysconfdir}/openser/* %config %{_initrddir}/openser %{_libdir}/openser/modules/* %{_sbindir}/* %{_mandir}/man5/* %{_mandir}/man8/* %exclude %{_libdir}/openser/modules/mysql.so %exclude %{_sbindir}/openser_mysql.sh #%exclude %{_docdir}/openser/README.jabber #%exclude %{_libdir}/openser/modules/jabber.so %exclude %{_docdir}/openser/README.cpl-c %exclude %{_libdir}/openser/modules/cpl-c.so #%exclude %{_docdir}/openser/README.*_radius #%exclude %{_libdir}/openser/modules/*_radius.so %files mysql %defattr(-,root,root) %{_libdir}/openser/modules/mysql.so %{_sbindir}/openser_mysql.sh #%files jabber #%defattr(-,root,root) #%doc %{_docdir}/openser/README.jabber #%{_libdir}/openser/modules/jabber.so %files cpl %defattr(-,root,root) %doc %{_docdir}/openser/README.cpl-c %{_libdir}/openser/modules/cpl-c.so #%files radius #%defattr(-,root,root) #%doc %{_docdir}/openser/README.*_radius #%{_libdir}/openser/modules/*_radius.so %changelog * Wed Jun 08 2005 Daniel-Constantin Mierla - First version of the spec file.