File opal.spec of Package opal

# spec file for package opal (Version 3.3.0)
#
# based on
#
# spec file for package opal (Version 2.2.11)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please _DON'T_ submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           libopal3_4_4
BuildRequires:  gcc-c++ libstdc++-devel libpt2_4_4-devel speex-devel
Summary:        Open Phone Abstraction Library
Provides:       opal
Obsoletes:      opal
Url:            http://openh323.sourceforge.net/
License:        MOZILLA PUBLIC LICENSE (MPL/NPL)
Group:          System/Libraries
Version:        3.4.4
Release:        0.1
#Source0:        %{name}-snapshot-20080720.tar.gz
Source0:        opal-%{version}.tar.bz2
#Patch0:         opal-make.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
Requires:       libpt2_4_4

%description
Open Phone Abstraction Library, implementation of the ITU H.323
teleconferencing protocol, and successor of the openh323 library. It
supports the H.323 protocol as well as SIP and IAX2.



%debug_package
%package devel
License:        MOZILLA PUBLIC LICENSE (MPL/NPL)
Summary:        Development package for opal
Group:          Development/Libraries/C and C++
Requires:       libopal3_4_4 = %{version}

%description devel
Static libraries and header files for development with opal.



%prep
#%setup -n %{name}
%setup -n opal-%{version}
#%patch -p1
# this GPL file is not needed - to avoid license issues delete it before build
rm -f include/lids/vpbapi.h

%build
#autoconf --force
#%{?suse_update_config:%{suse_update_config -f}}
# PWlib versioncheck does not work properly
# Can support Voicetronix vpb
#./configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir}\
#  --disable-versioncheck
./configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir}
make OPTCCFLAGS="$RPM_OPT_FLAGS" %{?jobs:-j%jobs}

%install
echo "RPM_OPT_FLAGS=$RPM_OPT_FLAGS"
make install DESTDIR=$RPM_BUILD_ROOT OPTCCFLAGS="$RPM_OPT_FLAGS" %{?jobs:-j%jobs}

%post
%run_ldconfig

%postun
%run_ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc  mpl-1.0.htm
%{_libdir}/*.so.*
##NOTE: additional files with plugins; split out into new package(s)?
%dir %{_libdir}/opal-%{version}
%dir %{_libdir}/opal-%{version}/codecs
%dir %{_libdir}/opal-%{version}/codecs/audio
%dir %{_libdir}/opal-%{version}/codecs/video
%dir %{_libdir}/opal-%{version}/lid
%{_libdir}/opal-%{version}/codecs/audio/*
%{_libdir}/opal-%{version}/codecs/video/*
%{_libdir}/opal-%{version}/lid/*

%files devel
%defattr(-,root,root)
%dir %{_includedir}/opal
%dir %{_includedir}/opal/asn
%dir %{_includedir}/opal/codec
%dir %{_includedir}/opal/h323
%dir %{_includedir}/opal/h460
%dir %{_includedir}/opal/iax2
%dir %{_includedir}/opal/lids
%dir %{_includedir}/opal/opal
%dir %{_includedir}/opal/rtp
%dir %{_includedir}/opal/sip
%dir %{_includedir}/opal/t120
%dir %{_includedir}/opal/t38
%dir %{_includedir}/opal/zrtp
%{_includedir}/opal/opal.h
%{_includedir}/opal/*/*.h
%{_libdir}/*.so
%{_libdir}/libopal_s.a
%{_libdir}/pkgconfig/opal.pc

%changelog
* Thu Sep 25 2008 hschaa@suse.de
- Updated to 2.4.1
* Sat Jul 19 2008 michael.monreal@gmail.com
- Updating SPECs for ptlib/opal/ekiga SVN
* Fri Oct 05 2007 kkeil@suse.de
- readd opal-C-fix.diff it was only partly upstream
* Wed Sep 19 2007 mauro@suse.de
- Update to 2.2.11 to make ekiga (for gnome 2.20) happy.
* Mon Jul 09 2007 kkeil@suse.de
- change library name to make rpmlint happy (#290347)
* Sat May 05 2007 kkeil@suse.de
- removed additional "-fstack-protector" from OPTCCFLAGS it is
  already in RPM_OPT_FLAGS
* Tue Apr 24 2007 maw@suse.de
- Update to version 2.2.8
  - bugfix release
* Thu Feb 15 2007 kkeil@suse.de
- downgrade to stable 2.2.5 version
* Tue Oct 24 2006 kkeil@suse.de
- clean up undefined C code (#213075)
* Wed Oct 11 2006 sbrabec@suse.cz
- Fixed invalid SIP header response quotation. Fixes problems with
  registration on certain servers.
* Fri Sep 29 2006 kkeil@suse.de
- fix double response frames (patch from sbrabec@suse.cz)
- updates from current stable to handle reinvites better
* Wed Sep 06 2006 kkeil@suse.de
- delete optional GPL file before build to avoid license issues
  (#202829)
* Thu Aug 10 2006 sbrabec@suse.cz
- Reduced BuildRequires.
* Thu Aug 10 2006 kkeil@suse.de
- first version (2.3.1) for autobuild
openSUSE Build Service is sponsored by