File kannel.spec of Package kannel

#
# spec file for package kannel
#
# Copyright (c) 2014, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           kannel
Version:        1.4.5
Release:        0
Summary:        WAP and SMS gateway
# see file: LICENSE
License:        Kannel Software License
Group:          Productivity/Telephony/Utilities
URL:            http://www.kannel.org
Source:         gateway-%{version}.tar.bz2
Patch0:         gateway-1.4.5.patch
BuildRequires:  bison
BuildRequires:  byacc
BuildRequires:  flex
BuildRequires:  libopenssl-devel
BuildRequires:  pkgconfig
#BuildRequires:	pkgconfig(gsoap)
BuildRequires:  pkgconfig(libpcre)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sqlite3)

%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/C and C++
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 -q -n gateway-%{version}
%patch0 -p1

%build
%configure \
  --with-sqlite3
#  --with-gsoap=/usr/share/gsoap/
make #%{?_smp_mflags} # parallel build ist br0ken
# see http://kannel.6189.n7.nabble.com/Request-for-new-release-td33193.html

%install
%make_install

%files
%license COPYING
%doc AUTHORS ChangeLog NEWS README STATUS
%{_bindir}/decode_emimsg
%{_bindir}/gw-config
%{_bindir}/mtbatch
%{_bindir}/seewbmp
%{_bindir}/wmlsc
%{_bindir}/wmlsdasm
%{_sbindir}/bearerbox
%{_sbindir}/run_kannel_box
%{_sbindir}/smsbox
%{_sbindir}/wapbox
%{_mandir}/man?/*

%files devel
%{_includedir}/kannel/
%exclude %{_libdir}/kannel/*.a

%changelog