File pstngw.spec of Package pstngw
#
# spec file for package pstngw
#
# Copyright (c) 2012 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/
#
%ifarch %ix86
%define arch x86
%else
%define arch %{_target_cpu}
%endif
Name: pstngw
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Open H.323 PSTN (public switched telephone network) Gateway
License: MPL-1.1
Group: Productivity/Telephony/H323/Servers
Version: 1.3.1
Release: 0
Source0: pstngw-%{version}.tar.bz2
%description
This is a very simple PSTN to H.323 gateway program using the OpenH323
library. It allows H.323 clients to make outgoing calls, and incoming
calls to be routed to a specific H.323 client. You might need
specialized hardware (Quicknet LineJACK or Voicetronics VPB4).
%prep
%setup -n pstngw
%build
make PREFIX=/usr OPENH323DIR=/usr/share/openh323 OH323_LIBDIR=%{_libdir} opt
%install
mkdir -p $RPM_BUILD_ROOT/usr/sbin
install -c obj_linux_%{arch}_r/pstngw $RPM_BUILD_ROOT/usr/sbin
%files
%defattr(-,root,root)
%doc ReadMe.txt
/usr/sbin/pstngw
%changelog