openh323.spec
author gheet
Mon, 28 Jul 2003 14:45:48 +0000
changeset 836 3c2106d963ab
child 1025 a32d1ed4f10d
permissions -rw-r--r--
2003-07-28 Ghee Teo <[email protected]> * Added pwlib.spec, openh323.spec and corresponding patches Tarballs copied to tarballs location included pwlib-1.5.0.tar.bz2, Speex-0.8.1.tar.bz2, openh323-1.12.0.tar.bz2 These are libraries exclusively used by gnomemeeting. Since the is really not buildable until suse bug 28237 is resolved. Putting back these spec files and tarballs before tehy got messed up again.

Name:		openh323
License: 	MPL
Group: 		System Environment/Libraries
Version: 	1.12.0
Release: 	1
Distribution: 	Mercury
Vendor:       	Sun Microsystems, Inc.
Summary: 	Library for H323 spec.
URL: 		http://www.openh323.org/
Source0: 	%{name}-%{version}.tar.bz2
Source1: 	Speex-0.8.1.tar.bz2
Patch0:  	openh323-01-libname.diff
BuildRoot: 	%{_tmppath}/%{name}-root
Docdir:		%{_defaultdocdir}/doc

%define pwlib_version 1.5.0
%define xfee86_version 4.3.0

Requires: pwlib >= %{pwlib_version}
BuildRequires: pwlib-devel >= %{pwlib_version}
BuildRequires: XFree86-devel >= %{xfree86_vresion}

%description
Implementation of the ITU H.323 teleconferencing protocol.

%package devel
Summary: Development package for openh323
Group: Development/Libraries
Requires: openh323 = %{version}

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

%prep
%setup -q -n %{name}
%patch0 -p1 

tar -jxf %SOURCE1
ln -s Speex-0.8.1 speex


%build
# First build static Speex libs
cd speex
./configure  --enable-shared=no --enable-static=yes --with-pic=yes
make
cd ..

(mkdir pwlibdir; cd pwlibdir;
ln -s %{_datadir}/pwlib/make make
ln -s %{_datadir} share
ln -s %{_includedir} include
ln -s %{_libdir} lib
mkdir -p tools
ln -s %{_bindir}/asnparser tools/asnparser
ln -s %{_bindir} bin
)

export PWLIBDIR=%{_builddir}/openh323/pwlibdir
export PTLIB_CONFIG=`which ptlib-config`

./configure --prefix=%{_prefix} 	\
	--sysconfdir=%{_sysconfdir}
	

make optshared

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/openh323,%{_bindir},%{_datadir}/misc}
cp -d lib/lib*.so* $RPM_BUILD_ROOT%{_libdir}
install include/*.h $RPM_BUILD_ROOT%{_includedir}/openh323
install speex/libspeex/speex.h speex/libspeex/speex_bits.h speex/libspeex/speex_header.h $RPM_BUILD_ROOT%{_includedir}/openh323

sed -e's@\$(OPENH323DIR)/include@&/openh323@' < openh323u.mak \
	> $RPM_BUILD_ROOT%{_datadir}/misc/openh323u.mak

%clean
rm -rf $RPM_BUILD_ROOT

%post 
ldconfig

%postun 
ldconfig

%files
%defattr(-,root,root)
%doc ReadMe.txt mpl-1.0.htm
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_includedir}/*
%{_datadir}/misc/*

%changelog
* Wed Jul 16 2003 - [email protected]
- Initial Sun Release