File openmcu.spec of Package openmcu

#
# spec file for package openmcu
#
# 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/
#


Name:           openmcu
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:        H.323 Multipoint Control Unit
License:        MPL-1.1
Group:          Productivity/Telephony/H323/Servers
Version:        2.2.1
Release:        0
Source0:        openmcu-v2_2_1-src.tar.bz2
Patch:          openmcu_missing_includes.patch

%description
OpenMCU implements a multipoint control unit for video conferences
according to the H.323 standard. You might use ohphone as a client
application.



%prep
%setup -n openmcu_v2_2_1
%patch -p1

%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fstack-protector"
make PREFIX=/usr OPENH323DIR=/usr/share/openh323 OH323_LIBDIR=%{_libdir} opt

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
export M=`uname -m`
case $M in
	*86)      export M="x86" ;;	# treat i586 and i686 alike
esac
mkdir -p $RPM_BUILD_ROOT/usr/sbin
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
install -c obj_linux_"$M"_r/openmcu $RPM_BUILD_ROOT/usr/sbin
install -m644 -c openmcu.1 $RPM_BUILD_ROOT/usr/share/man/man1

%clean
rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-,root,root)
/usr/sbin/openmcu
%{_mandir}/man1/openmcu.1.gz

%changelog