File openh323.spec of Package openh323

# spec file for package openh323 (Version
# Copyright (c) 2010 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

# norootforbuild

%ifarch %ix86
%define arch x86
%define arch %{_arch}

Name:           openh323
Summary:        An Open Source ITU H.323 Library and Sample Application
Release:        233
%define _version 1_19_0_1
License:        MPL ..
Group:          System/Libraries
AutoReqProv:    on
Source:         openh323-v%{_version}-src-tar.bz2
Patch:          openh323_v1_19_0_1.diff
Patch1:         openh323-system-amrnb.diff
Patch2:         openh323-incl.diff
Patch3:         openh323-SHAREDLIBEXT.diff
Patch4:         openh323-OPTCCFLAGS.patch
Patch5:         patches/openh323-nonat_ptrace
Patch6:         openh323.linux-compiler.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  SDL-devel gcc-c++
BuildRequires:  libdv
BuildRequires:  libgsm-devel
BuildRequires:  openldap2-devel
BuildRequires:  pwlib-devel = 1.11.0
BuildRequires:  speex-devel
BuildRequires:  amrnb-devel

The OpenH323 project aims to create a full featured, interoperable, and
open source implementation of the ITU H.323 teleconferencing protocol
that can be used by personal developers and commercial users without

OpenH323 development is coordinated by an Australian company,
Equivalence Pty Ltd (, but is open to any
interested party. Commercial and private use of the OpenH323 code,
including use in commercial products and resale, is encouraged through
use of the MPL (Mozilla Public license).

%package devel
License:        MPL ..
Summary:        OpenH323 Library for developers
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       pwlib-devel = 1.11.0

%description devel
This package contains header and script files of the openh323 library
for developers

%setup -q -n %{name}_v%{_version}
%patch5 -p1
%patch6 -p1
chmod 0644 videonotes.rtf

#autoreconf --force --install
autoconf --force
cd plugins
autoconf --force
cd ..
%{?suse_update_config:%{suse_update_config -f}}
export CPPFLAGS="-I/usr/include/gsm"
export OPTCCFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fstack-protector"
# PWlib versioncheck does not work properly
# Can support Transnexus OSP Toolkit
%configure \

%{__make} %{?jobs:-j%jobs}


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%{__rm} -rf $RPM_BUILD_ROOT

%doc ChangeLog VoIPBlaster.txt mpl-1.0.htm videonotes.rtf
%dir %{_libdir}/pwlib/codecs
%dir %{_libdir}/pwlib/codecs/audio

%files devel
%doc ReadMe.txt
%dir %{_includedir}/openh323
%dir %{_datadir}/openh323

openSUSE Build Service is sponsored by