File ohphone.spec of Package ohphone
#
# spec file for package ohphone
#
# Copyright (c) 2011 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: ohphone
BuildRequires: SDL-devel
BuildRequires: kdelibs3-devel
BuildRequires: libdv
BuildRequires: openh323-devel
BuildRequires: openldap2-devel
BuildRequires: pwlib-devel
BuildRequires: speex-devel
URL: http://www.openh323.org
Summary: An H.323 Net Telephone Application
License: MPL-1.0
Group: Productivity/Telephony/H323/Clients
Version: 1.4.6
Release: 0
Source0: ohphone-1.4.6pre.tar.bz2
Patch0: ohphone.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package provides an Internet telephony application according to
the H.323 standard.
%prep
%setup -q -n ohphone
%patch0 -p1
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
make XLIBDIR=/usr/X11R6/%{_lib} OPENH323DIR=/usr/share/openh323 \
PREFIX=/usr OH323_LIBDIR=%{_libdir} opt %{?_smp_mflags}
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
export M=`uname -m`
case $M in
*86) export M="x86" ;; # treat i586 and i686 alike
esac
install -c obj_linux_"$M"_r/ohphone $RPM_BUILD_ROOT/usr/bin
install -m644 -c ohphone.1 $RPM_BUILD_ROOT/usr/share/man/man1
%files
%defattr(-,root,root)
%{_mandir}/man1/ohphone.1.gz
/usr/bin/ohphone
%changelog