File t38modem.spec of Package t38modem

#
# spec file for package t38modem
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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:           t38modem
BuildRequires:  SDL-devel
BuildRequires:  gcc-c++
BuildRequires:  libdv
BuildRequires:  openh323-devel
BuildRequires:  openldap2-devel
BuildRequires:  pwlib-devel
BuildRequires:  speex-devel
Url:            http://www.openh323.org
Summary:        T.38 for OpenH323 (modem-compatible interface for IP telephony)
License:        MPL-1.1
Group:          Productivity/Telephony/H323/Servers
Version:        0.7.0
Release:        0
Source0:        t38modem-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains a modem interface for IP telephony using the
H.323 and T.38 protocol standards. It implements a 'tty' interface
which resembles a FAX modem. A sample HylaFAX setup is also provided.



%prep
%setup -q -n t38modem

%build
make PREFIX=/usr OPENH323DIR=/usr/share/openh323 OH323_LIBDIR=%{_libdir} opt

%install
export M=`uname -m`
case $M in
	*86)      M="x86" ;;
	armv7l)   M="armv7hl" ;;
esac
export M
mkdir -p $RPM_BUILD_ROOT/usr/sbin
install -c obj_linux_"$M"_r/t38modem $RPM_BUILD_ROOT/usr/sbin

%files
%defattr(-,root,root)
%doc README
%doc HylaFAX/config.ttyx
/usr/sbin/t38modem

%changelog
openSUSE Build Service is sponsored by