ptlib.spec revision 15354
13598N/A#
13598N/A# spec file for package ptlib
13598N/A#
13598N/A# Copyright 2007 Sun Microsystems, Inc.
13598N/A# This file and all modifications and additions to the pristine
13598N/A# package are under the same license as the package itself.
13598N/A#
16714N/A# Owner: elaine
13598N/A#
13611N/AName: ptlib
13598N/ALicense: MPL
13598N/AGroup: System/Libraries
13598N/AVersion: 2.4.1
13611N/ARelease: 1
13598N/ADistribution: Java Desktop System
13611N/AVendor: Sun Microsystems, Inc.
13598N/ASummary: PTLib Class Library
16714N/ASource: http://www.ekiga.org/admin/downloads/latest/sources/ekiga_3.0.0/%{name}-%{version}.tar.gz
13598N/A
14049N/A# owner:davelam date:2006-04-14 type:branding
14049N/A# use cxxflags to fix build problem
13611N/A# updated by elaine
13611N/APatch1: ptlib-01-cxxflags.diff
13598N/A
13598N/A# owner:davelam date:2006-04-14 type:branding
13598N/A# change library naming rule to fit unix style
13598N/APatch2: ptlib-02-libname.diff
13598N/A
14049N/A# owner:elaine date:2008-11-11 type:branding
13598N/A# help ekiga to find the ptlib.pc
13598N/APatch3: ptlib-03-no-public-pc.diff
13598N/A
13598N/A# owner:elaine date:2007-06-12 type:bug
13598N/A# bugzilla:445066
13598N/APatch4: ptlib-04-rm-flush.diff
13598N/A
13598N/AURL: http://www.ekiga.org
13598N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
13598N/ADocdir: %{_defaultdocdir}/%{name}
13598N/AAutoreqprov: on
13598N/A
13598N/A%description
13598N/APTLib is a moderately large class library that was created many years
13598N/Aago as a method to produce applications that run on both Microsoft
13598N/AWindows and the X Window System.
13598N/A
13598N/A%package devel
13598N/ASummary: Headers for developing programs that will use ptlib
13598N/AGroup: Development/Libraries
13598N/ARequires: %{name}
13598N/A
13598N/A%description devel
13598N/AThis package contains the headers that programmers will need to develop
16714N/Aapplications which will use ptlib.
16714N/A
14049N/A%prep
14049N/A%setup -q -n %{name}-%{version}
14049N/A%patch1 -p1
13611N/A#%patch2 -p1
13611N/A%patch3 -p1
13611N/A%patch4 -p1
13611N/A
13598N/A# symlink the make dir to bin so that ptlib-config is found by ekiga
13598N/A# ln -s make bin
13598N/A
%build
%ifos linux
if [ -x /usr/bin/getconf ]; then
CPUS=`getconf _NPROCESSORS_ONLN`
fi
%else
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
%endif
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
cd plugins
aclocal
autoconf
cd ..
aclocal
autoconf
# unix.mak adds this to a STDCCFLAGS, which is also used for C++ builds
export RPM_OPT_FLAGS=""
export CFLAGS="%optflags"
export CXXFLAGS="%cxx_optflags"
export LDFLAGS="%_ldflags"
./configure \
--prefix=%{_prefix} \
--libdir=%{?ekiga_libdir}%{?!ekiga_libdir:%{_libdir}} \
--bindir=%{_bindir} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--enable-plugins \
--enable-resolver \
--enable-opal \
--enable-sunaudio \
--enable-v4l2
make -j $CPUS
%install
make install DESTDIR=$RPM_BUILD_ROOT
# need the -f to remove write protected file
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-, root, root)
%{ekiga_libdir}/*.so.*
%files devel
%defattr(-, root, root)
%{ekiga_libdir}/*.so
%changelog
* Fri Nov 14 2008 - elaine.xiong@sun.com
- Rename to ptlib.spec from pwlib.spec.
- Bump to 2.4.1. Add new patches and remove obsolete patches.
- update build options for new version.
* Wed Sep 03 2008 - elaine.xiong@sun.com
- Add note to not bump to 2.3.1 as ekiga depends on it.
* Sun Dec 23 2007 - patrick.ale@gmail.com
- Download tar.gz instead of tar.bz2 . bz2 tarball is N/A
* Mon Nov 19 2007 - elaine.xiong@sun.com
- Add pwlib-06-idct-mlib.diff to fix bugzilla#498082.
* Tue Sep 18 2007 - damien.carbery@sun.com
- Bump to 1.10.10. Remove upstream patches, 07-sunaudio-vol-range and
05-medialib. Renumber rest.
* Tue Jun 26 2007 - elaine.xiong@sun.com
- Add pwlib-07-sunaudio-vol-range.diff to fix bugster6572725.
Change pwlib-05-medialib.diff status to upstreamable.
* Tue Jun 12 2007 - elaine.xiong@sun.com
- Add pwlib-06-rm-flush.diff to fix bugzilla445066.
* Wed Apr 25 2007 - elaine.xiong@sun.com
- Update owner name for pwlib-05-medialib.diff.
* Thu Apr 19 2007 - elaine.xiong@sun.com
- Bump to 1.10.7.
* Thu Apr 5 2007 - laca@sun.com
- Create