File openh323.spec of Package openh323
#
# spec file for package openh323
#
# 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/
#
#
%define DISTRIBUTABLE 1
#
%ifarch %ix86
%define arch x86
%else
%define arch %{_target_cpu}
%endif
Name: openh323
Summary: An Open Source ITU H.323 Library and Sample Application
License: MPL-1.0
Group: System/Libraries
Version: 1.19.0.1
Release: 0
%define _version 1_19_0_1
Url: http://openh323.sourceforge.net/
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
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libdv
BuildRequires: libgsm-devel
BuildRequires: openldap2-devel
BuildRequires: pwlib-devel = 1.11.0
BuildRequires: speex-devel
%if %DISTRIBUTABLE == 0
BuildRequires: amrnb-devel
%endif
%description
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
charge.
OpenH323 development is coordinated by an Australian company,
Equivalence Pty Ltd (http://www.equival.com), 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
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
%prep
%setup -q -n %{name}_v%{_version}
%patch
%if %DISTRIBUTABLE == 0
%patch1
%endif
%patch2
%patch3
%patch4
%patch5 -p1
%patch6 -p1
chmod 0644 videonotes.rtf
%build
#autoreconf --force --install
autoconf --force
aclocal
cd plugins
autoconf --force
aclocal
cd ..
export CPPFLAGS="-I/usr/include/gsm"
export CCFLAGS="$RPM_OPT_FLAGS"
export OPTCCFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fstack-protector"
# PWlib versioncheck does not work properly
# Can support Transnexus OSP Toolkit
%configure \
--disable-versioncheck
make %{?_smp_mflags}
%install
%makeinstall
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc ChangeLog VoIPBlaster.txt mpl-1.0.htm videonotes.rtf
%{_libdir}/libh323_linux_%{arch}_r.so.*
%dir %{_libdir}/pwlib/codecs
%dir %{_libdir}/pwlib/codecs/audio
%{_libdir}/pwlib/codecs/audio/*
%files devel
%defattr(-,root,root)
%doc ReadMe.txt
%dir %{_includedir}/openh323
%{_includedir}/openh323/*
%dir %{_datadir}/openh323
%{_datadir}/openh323/*
%{_libdir}/libopenh323.so
%{_libdir}/libh323_linux_%{arch}_r.so
%changelog