rpm/ser.spec
31aaaa3c
 %define name  ser
 %define ver   0.8.7
 %define rel   1
 
 Summary:      SIP Express Router, very fast and flexible SIP Proxy
 Name:         %name
 Version:      %ver
 Release:      %rel
 Packager:     Jan Janak <J.Janak@sh.cvut.cz>
 Copyright:    GPL
82acb9d0
 Group:        System Environment/Daemons
31aaaa3c
 Source:       ftp://ser.iptel.org/stable/%{name}-%{ver}.tar.gz
82acb9d0
 Source2:      ser.init
31aaaa3c
 URL:          http://ser.iptel.org
c2d67552
 Vendor:       Fhg Fokus
31aaaa3c
 BuildRoot:    /var/tmp/%{name}-%{ver}-root
82acb9d0
 BuildPrereq:  make flex bison 
31aaaa3c
 
 
 %description
 Ser or SIP Express Router is a very fast and flexible SIP (RFC3621)
 proxy server. Written entirely in C, ser can handle thousands calls
 per second even on low-budget hardware. 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, Presence Agent, Radius
 Authentication, Record Routing, SMS Gateway, Jabber Gateway, Transaction 
 Module, Registrar and User Location.
 
 
 %prep
c2d67552
 %setup
31aaaa3c
 
 %build
c2d67552
 make all
31aaaa3c
 
 %install
82acb9d0
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
 
 make install cfg-prefix=$RPM_BUILD_ROOT/%{_sysconfdir} \
              cfg-dir=ser/ \
 	     bin-prefix=$RPM_BUILD_ROOT/%{_sbindir} \
 	     bin-dir="" \
 	     modules-prefix=$RPM_BUILD_ROOT/%{_libdir}/ser \
 	     modules-dir=modules/ \
 	     doc-prefix=$RPM_BUILD_ROOT/%{_docdir} \
 	     doc-dir=ser/ \
 	     man-prefix=$RPM_BUILD_ROOT/%{_mandir} \
 	     man-dir=""
31aaaa3c
 
82acb9d0
 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
 install -m755 $RPM_SOURCE_DIR/ser.init \
               $RPM_BUILD_ROOT/etc/rc.d/init.d/ser
31aaaa3c
 
 %clean
82acb9d0
 rm -rf "$RPM_BUILD_ROOT"
 
 %post
 /sbin/chkconfig --add ser
 
 %preun
 if [ $1 = 0 ]; then
     /sbin/service ser stop > /dev/null 2>&1
     /sbin/chkconfig --del ser
 fi
 
31aaaa3c
 
 %files
82acb9d0
 %defattr(-,root,root)
 %doc README
 
 %dir %{_sysconfdir}/ser
 %config(noreplace) %{_sysconfdir}/ser/*
 %config %{_sysconfdir}/rc.d/init.d/*
 
 %dir %{_libdir}/ser
 %dir %{_libdir}/ser/modules
 %{_libdir}/ser/modules/*
 
 %{_sbindir}/*
 
 %{_mandir}/man5/*
 %{_mandir}/man8/*
 
 
 %changelog
 * Tue Aug 28 2002 Jan Janak <J.Janak@sh.cvut.cz>
 - Finished the first version of the spec file.
 
 * Sun Aug 12 2002 Jan Janak <J.Janak@sh.cvut.cz>
 - First version of the spec file.