File openam.spec of Package openam

#
# spec file for package openam
#
# 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:           openam
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:        A Simple Answering Machine Using the H.323 Protocol
License:        MPL-1.1
Group:          Productivity/Telephony/H323/Servers
Version:        1.1.18
Release:        0
Source0:        openam-1.1.18.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
OpenAM is a simple answering machine using the H.323 protocol. It
requires the OpenH323 library (see http://www.openh323.org for more
information). It is known to run on Linux and Solaris. If you run the
program successfully on another platform, please send an e-mail to
openh323@openh323.org.



%prep
%setup -q -n openam

%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/openam $RPM_BUILD_ROOT/usr/sbin

%files
%defattr(-,root,root)
%doc ReadMe.txt
%doc run_example
%doc new_msg
%doc sample_message*
/usr/sbin/openam

%changelog
openSUSE Build Service is sponsored by