Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 297fc95e2a287ec207cf536f9c6a60d2 > files > 2

ser-0.8.12-2mdk.src.rpm

%define name	ser
%define version 0.8.12
%define release 2mdk

%define EXCLUDED_MODULES	mysql jabber auth_radius group_radius uri_radius postgress snmp cpl cpl-c ext extcmd
%define JABBER_MODULES		jabber
%define MYSQL_MODULES		mysql
%define RADIUS_MODULES		auth_radius group_radius uri_radius
%define RADIUS_MOD_PATH		modules/auth_radius modules/group_radius modules/uri_radius

Summary:	SIP Express Router, very fast and flexible SIP Proxy
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		System/Servers
Source:		http://iptel.org/ser/stable/%{name}-%{version}_src.tar.bz2
URL:		http://iptel.org/ser
PreReq:         rpm-helper
BuildRequires:	bison
BuildRequires:	expat-devel
BuildRequires:	flex
BuildRequires:	libradius-devel
BuildRequires:	libxml2-devel
BuildRequires:	MySQL-devel
BuildRequires:	postgresql-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%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. 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 the SIP Express Router
Group:		System/Servers
Requires:	ser = %{version}

%description	mysql
The ser-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 the SIP Express Router
Group:		System/Servers
Requires:	ser = %{version}

%description	jabber
The ser-jabber package contains a sip to jabber message translator.

%package	radius
Summary:	Ser radius authentication, group and uri check modules
Group:		System/Servers
Requires:	ser = %{version}

%description	radius
The ser-radius package contains modules for radius authentication, group
membership and uri checking.

%prep

%setup -q

%build
make CFLAGS="%{optflags}" all skip_modules="%EXCLUDED_MODULES"      cfg-target=%{_sysconfdir}/ser
make CFLAGS="%{optflags}" modules modules="modules/%MYSQL_MODULES"  cfg-target=%{_sysconfdir}/ser
make CFLAGS="%{optflags}" modules modules="modules/%JABBER_MODULES" cfg-target=%{_sysconfdir}/ser
make CFLAGS="%{optflags}" modules modules="%RADIUS_MOD_PATH"        cfg-target=%{_sysconfdir}/ser

%install
[ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}"

make install skip_modules="%EXCLUDED_MODULES" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser \
    doc-prefix=$PWD \
    doc-dir=installed_docs

make install-modules modules="modules/%MYSQL_MODULES" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser \
    doc-prefix=$PWD \
    doc-dir=installed_docs

make install-modules modules="modules/%JABBER_MODULES" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser \
    doc-prefix=$PWD \
    doc-dir=installed_docs

make install-doc modules="modules/%JABBER_MODULES" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser \
    doc-prefix=$PWD \
    doc-dir=installed_docs

make install-modules modules="%RADIUS_MOD_PATH" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser \
    doc-prefix=$PWD \
    doc-dir=installed_docs

make install-doc modules="%RADIUS_MOD_PATH" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser \
    doc-prefix=$PWD \
    doc-dir=installed_docs

mkdir -p %{buildroot}/%{_initrddir}
install -m755 rpm/ser.init %{buildroot}/%{_initrddir}/ser

%post
%_post_service ser

%preun
%_preun_service ser

%clean
[ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%doc installed_docs/AUTHORS installed_docs/NEWS installed_docs/INSTALL installed_docs/README installed_docs/README-MODULES
%doc installed_docs/README.acc installed_docs/README.auth installed_docs/README.auth_db installed_docs/README.auth_diameter
%doc installed_docs/README.dbtext installed_docs/README.domain installed_docs/README.enum installed_docs/README.exec
%doc installed_docs/README.group installed_docs/README.mangler installed_docs/README.maxfwd installed_docs/README.msilo
%doc installed_docs/README.nathelper installed_docs/README.pa installed_docs/README.pdt installed_docs/README.permissions
%doc installed_docs/README.pike installed_docs/README.print installed_docs/README.registrar installed_docs/README.rr
%doc installed_docs/README.sl installed_docs/README.sms installed_docs/README.textops installed_docs/README.tm installed_docs/README.uri
%doc installed_docs/README.usrloc installed_docs/README.vm installed_docs/README.xlog
%{_initrddir}/ser
%dir %{_sysconfdir}/ser
%config(noreplace) %{_sysconfdir}/ser/*
%dir %{_libdir}/ser
%dir %{_libdir}/ser/modules
%{_libdir}/ser/modules/acc.so
%{_libdir}/ser/modules/auth.so
%{_libdir}/ser/modules/auth_db.so
%{_libdir}/ser/modules/auth_diameter.so
%{_libdir}/ser/modules/dbtext.so
%{_libdir}/ser/modules/domain.so
%{_libdir}/ser/modules/enum.so
%{_libdir}/ser/modules/exec.so
%{_libdir}/ser/modules/group.so
%{_libdir}/ser/modules/mangler.so
%{_libdir}/ser/modules/maxfwd.so
%{_libdir}/ser/modules/msilo.so
%{_libdir}/ser/modules/nathelper.so
%{_libdir}/ser/modules/pa.so
%{_libdir}/ser/modules/pdt.so
%{_libdir}/ser/modules/permissions.so
%{_libdir}/ser/modules/pike.so
%{_libdir}/ser/modules/print.so
%{_libdir}/ser/modules/registrar.so
%{_libdir}/ser/modules/rr.so
%{_libdir}/ser/modules/sl.so
%{_libdir}/ser/modules/sms.so
%{_libdir}/ser/modules/textops.so
%{_libdir}/ser/modules/tm.so
%{_libdir}/ser/modules/uri.so
%{_libdir}/ser/modules/usrloc.so
%{_libdir}/ser/modules/vm.so
%{_libdir}/ser/modules/xlog.so
%{_sbindir}/gen_ha1
%{_sbindir}/ser
%{_sbindir}/serctl
%{_mandir}/man5/*
%{_mandir}/man8/*

%files mysql
%defattr(-,root,root)
%{_libdir}/ser/modules/mysql.so
%{_sbindir}/ser_mysql.sh

%files jabber
%defattr(-,root,root)
%doc installed_docs/README.jabber
%{_libdir}/ser/modules/jabber.so

%files radius
%defattr(-,root,root)
%doc installed_docs/README.auth_radius installed_docs/README.group_radius installed_docs/README.uri_radius
%{_libdir}/ser/modules/auth_radius.so
%{_libdir}/ser/modules/group_radius.so
%{_libdir}/ser/modules/uri_radius.so

%changelog
* Thu Feb 10 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 0.8.12-2mdk
- rebuilt against new mysql libs
- misc spec file fixes

* Sun Jun 06 2004 Stefan van der Eijk <stefan@mandrake.org> 0.8.12-1mdk
- Mandrake adaptions

* Fri Nov 14 2003 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.fraunhofer.de>
- changed vesion to 0.8.12 (new upstream release)
- added auth_diameter, pdt & mangler to the modules list

* Wed Aug 27 2003 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.fraunhofer.de>
- changed vesion to 0.8.11
- gen_ha1 is now left in _sbindir
- removed harv_ser.sh
- added xlog to the modules list

* Fri Jun 6 2003 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.fraunhofer.de>
- added Conflicts:, changed vesion to 0.8.11pre30

* Mon Jun 2 2003 Daniel-Constantin Mierla <mierla@fokus.fraunhofer.de>
- added README files for ser-jabber and ser-radius packages
- spec file updated to work with rpm v4.1+

* Sun Jun 1 2003 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.fraunhofer.de>
- added a separate rpm for the radius modules
- updated to the new makefile variables (removed lots of unnecessary stuff)

* Thu Nov 14 2002 Jan Janak <J.Janak@sh.cvut.cz>
- Installing harv_ser.sh again
- quick hack to move gen_ha1 to bin directory instead of sbin (should
  be done from the Makefile next time)

* Tue Nov 12 2002 Andrei Pelinescu - Onciul <pelinescu-onciul@fokus.gmd.de>
- added a separate rpm for the jabber modules
- moved all the binaries to sbin
- removed obsolete installs (make install installs everything now)

* Fri Oct 25 2002 Jan Janak <J.Janak@sh.cvut.cz>
- Minor description fixes

* Fri Oct  4 2002 Jiri Kuthan <jiri@iptel.org>
- exec module introduced

* Wed Sep 25 2002 Andrei Pelinescu - Onciul  <pelinescu-onciul@fokus.gmd.de>
- modified make install & make: added cfg-target & modules-target

* Sun Sep 08 2002 Jan Janak <J.Janak@sh.cvut.cz>
- Created subpackage containing mysql connectivity support.

* Mon Sep 02 2002 Jan Janak <J.Janak@sh.cvut.cz>
- gen_ha1 utility added, scripts added.

* 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.