# $Id: kannel.spec 2909 2005-02-28 16:44:47Z thias $ # Authority: matthias Summary: WAP and SMS gateway Name: kannel Version: 1.4.0 Release: 5.wyu License: Kannel Group: System Environment/Daemons URL: http://www.kannel.org/ Source: http://www.kannel.org/download/%{version}/gateway-%{version}.tar.bz2 Patch0: kannel-1.4.0-depend.patch Patch1: kannel-1.4.0-sqlite3.patch Patch2: kannel-mysql4.1.patch Patch3: kannelsmartspccv2.0.patch.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: bison, byacc, flex, ImageMagick BuildRequires: libxml2-devel, openssl-devel, zlib-devel BuildRequires: pcre-devel # DB backends BuildRequires: sqlite-devel BuildRequires: mysql-devel # For the docs... I think we need transfig too, so disable for now. #BuildRequires: jadetex, tetex-dvips, docbook-dtds, docbook-style-dsssl %description The Kannel Open Source WAP and SMS gateway works as both an SMS gateway, for implementing keyword based services via GSM text messages, and a WAP gateway, via UDP. The SMS part is fairly mature, the WAP part is early in its development. In this release, the GET request for WML pages and WMLScript files via HTTP works, including compilation for WML and WMLScript to binary forms. Only the data call bearer (UDP) is supported, not SMS. %package devel Summary: Development files for the kannel WAP and SMS gateway Group: Development/Libraries Requires: %{name} = %{version} %description devel The Kannel Open Source WAP and SMS gateway works as both an SMS gateway, for implementing keyword based services via GSM text messages, and a WAP gateway, via UDP. The SMS part is fairly mature, the WAP part is early in its development. In this release, the GET request for WML pages and WMLScript files via HTTP works, including compilation for WML and WMLScript to binary forms. Only the data call bearer (UDP) is supported, not SMS. Install this package if you need to develop or recompile applications that use the kannel WAP and SMS gateway. %prep %setup -n gateway-%{version} %patch0 -p0 -b .depend %patch1 -p0 -b .sqlite3 %patch2 -p1 -b .mysql %patch3 -p1 -b .spcc %{?el3:%{__perl} -pi.orig -e 's|^(CFLAGS)=|$1=-I/usr/kerberos/include |' Makefile.in} %{?rh9:%{__perl} -pi.orig -e 's|^(CFLAGS)=|$1=-I/usr/kerberos/include |' Makefile.in} %build export SQLITE="sqlite3" %configure \ --enable-start-stop-daemon \ --with-sqlite \ --with-mysql %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %makeinstall %clean %{__rm} -rf %{buildroot} #post #if [ $1 -eq 1 ]; then # /sbin/chkconfig --add foobar #fi #preun #if [ $1 -eq 0 ]; then # /sbin/service foobar stop >/dev/null 2>&1 || : # /sbin/chkconfig --del foobar #fi #postun #if [ $1 -ge 1 ]; then # /sbin/service foobar condrestart >/dev/null 2>&1 || : #fi %files %defattr(-, root, root, 0755) %doc AUTHORS COPYING ChangeLog NEWS README STATUS %{_bindir}/* %{_sbindir}/* %{_mandir}/man?/* %files devel %defattr(-, root, root, 0755) %{_includedir}/kannel/ %dir %{_libdir}/kannel/ %{_libdir}/kannel/*.a %changelog * Fri Apr 5 2006 William Emmanuel S. Yu 1.4.0-5.wyu - Intergrated SMART CIMD 2.0 SPCC patch of Dido Sevilla * Fri Mar 10 2006 William Emmanuel S. Yu 1.4.0-4.wyu - Patched to use sqlite3 and default mysql compile * Mon Jan 17 2005 Matthias Saou 1.4.0-3 - Added Stefan Radman's patch for kannel bug #173 to fix .depend problem. * Fri Dec 10 2004 Matthias Saou 1.4.0-1 - Update to 1.4.0. - Remove the obsolete OpenSSL workaround. * Thu Nov 4 2004 Matthias Saou 1.3.2-4 - Added pcre support, doc building (almost) and sqlite backend... it still fails with a corrupt first line of .depend on FC3, though. * Tue Aug 24 2004 Matthias Saou 1.3.2-2 - Really comment out all scriplets, they're not yet used. * Thu Jul 29 2004 Matthias Saou 1.3.2-1 - Don't fix the openssl detection for RHL 7.x. * Thu Jul 22 2004 Matthias Saou 1.3.2-0 - Update to 1.3.2 development version. - Added -devel sub-package since there are now headers and a static lib. * Wed Jul 14 2004 Matthias Saou 1.2.1-0 - Initial RPM release, still need to add an init script I think.