File ptlib.spec of Package ptlib
# spec file for package ptlib (Version 2.4.x)
#
# based on
#
# spec file for package pwlib (Version 1.10.10)
#
# 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
#%define snapshot 20080823
Name: libpt2_4
Version: 2.4.1
Release: 0.1
BuildRequires: SDL-devel bison esound-devel flex gcc-c++ libavc1394-devel libdc1394_control12-devel libdv-devel libstdc++-devel openldap2-devel
Url: http://www.openh323.org/
License: MOZILLA PUBLIC LICENSE (MPL/NPL)
Group: System/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: on
Provides: ptlib-plugins-alsa ptlib-plugins-oss ptlib-plugins-v4l pwlib libpt2_3
Obsoletes: ptlib-plugins-alsa ptlib-plugins-oss ptlib-plugins-v4l pwlib libpt2_3
Summary: Portable Tools Libary
Source: ptlib-%{version}.tar.gz
#Source: ptlib-snapshot-%{snapshot}.tar.gz # http://snapshots.ekiga.net/
Patch: ptlib.diff
%description
<UPDATE ME>
PWLib is a moderately large class library that was created many years
ago as a method to produce applications that run on both Microsoft
Windows and the X Window System. It was supposed to have a Macintosh
port as well but this never happened.
It is used for the OpenH323 project, see www.openh323.org for details.
Authors:
--------
Equivalence Pty. Ltd. <support@equival.com.au>
%debug_package
%package devel
License: MOZILLA PUBLIC LICENSE (MPL/NPL)
Requires: %{name} = %{version} SDL-devel libexpat-devel openldap2-devel openssl-devel
Summary: PTLib package for developers (includes headers and scripts)
Group: Development/Libraries/C and C++
%description devel
<UPDATE ME>
This package includes header files and scripts needed for developers
using the PWLIB library.
Authors:
--------
Equivalence Pty. Ltd. <support@equival.com.au>
%package plugins-avc
License: MOZILLA PUBLIC LICENSE (MPL/NPL)
Provides: ptlib-video-plugin
Summary: AVC plugin for PTLib
Group: System/Libraries
%description plugins-avc
<UPDATE ME>
This plugin enables AVC (firewire control for digital video cameras)
support in pwlib
Authors:
--------
Equivalence Pty. Ltd. <support@equival.com.au>
%package plugins-dc
License: MOZILLA PUBLIC LICENSE (MPL/NPL)
Provides: ptlib-video-plugin
Summary: DC plugin for PTLib
Group: System/Libraries
%description plugins-dc
<UPDATE ME>
This plugin enables DC control (via firewire for digital video cameras)
for pwlib
Authors:
--------
Equivalence Pty. Ltd. <support@equival.com.au>
%package plugins-v4l2
License: MOZILLA PUBLIC LICENSE (MPL/NPL)
Provides: ptlib-video-plugin
Summary: V4L2 support for PTLib
Group: System/Libraries
%description plugins-v4l2
<UPDATE ME>
This plugin enables 'video for linux' (version 2) support (e.g. for USB
cameras) for pwlib.
Authors:
--------
Equivalence Pty. Ltd. <support@equival.com.au>
%prep
#%setup -n %{name}
#%setup -n ptlib
%setup -n ptlib-%{version}
#%patch -p0
%patch -p1
%build
aclocal # needed since r20685
autoconf --force
#aclocal
cd plugins
aclocal # needed since r20685
autoconf --force
#aclocal
cd ..
%{?suse_update_config:%{suse_update_config -f}}
PWINSTDIR=/usr/share/ptlib X11LIBDIR=/usr/X11R6/%_lib ./configure \
--prefix=/usr \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--enable-plugins\
--enable-v4l2\
--enable-avc\
--enable-dc\
--enable-vidfile\
--enable-alsa\
--enable-oss
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fstack-protector" %{?jobs:-j %jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc mpl-1.0.htm History.txt
%{_libdir}/libpt*.2*
%{_libdir}/ptlib-%{version}/devices/sound/alsa_pwplugin.so
%{_libdir}/ptlib-%{version}/devices/sound/oss_pwplugin.so
%files devel
%defattr(-,root,root)
%doc ReadMe.txt ReadMe_QOS.txt
%dir /usr/share/ptlib
/usr/share/ptlib/*
%attr (0644, root, root) /usr/include/ptbuildopts.h
%attr (0644, root, root) /usr/include/ptlib.h
%dir /usr/include/ptlib
%dir /usr/include/ptlib/unix
%dir /usr/include/ptlib/unix/ptlib
%attr (0644, root, root) /usr/include/ptlib/*.h
%attr (0644, root, root) /usr/include/ptlib/*.inl
%attr (0644, root, root) /usr/include/ptlib/unix/ptlib/*.h
%attr (0644, root, root) /usr/include/ptlib/unix/ptlib/*.inl
%dir /usr/include/ptclib
%attr (0644, root, root) /usr/include/ptclib/*.h
%{_bindir}/ptlib-config
%{_libdir}/libpt.so
%{_libdir}/libpt_s.a
%{_libdir}/pkgconfig/ptlib.pc
%files plugins-avc
%defattr(-,root,root)
%{_libdir}/ptlib-%{version}/devices/videoinput/avc_pwplugin.so
%files plugins-dc
%defattr(-,root,root)
%{_libdir}/ptlib-%{version}/devices/videoinput/dc_pwplugin.so
%files plugins-v4l2
%defattr(-,root,root)
%{_libdir}/ptlib-%{version}/devices/videoinput/v4l2_pwplugin.so
%changelog
* Sat Sep 24 2008 michael.monreal@gmail.com
- Updating SPECs for new ptlib/opal/ekiga releases
* Sat Jul 19 2008 michael.monreal@gmail.com
- Updating SPECs for ptlib/opal/ekiga SVN
* Mon Mar 03 2008 kkeil@suse.de
- fix missing ldap_r library, it is not for normal ldap clients
* Tue Dec 04 2007 rhafer@suse.de
- removed unneeded openldap2 (the server package) from BuildRequires
* Thu Oct 04 2007 kkeil@suse.de
- fix possible buffer overrun in Pstring functions (#309814)
* Wed Sep 19 2007 mauro@suse.de
- Update to 1.10.10 (needed it for ekiga in gnome 2.20)
* Fri Aug 10 2007 olh@suse.de
- do not include linux/time.h before sys/time.h in configure script
* Sat Aug 04 2007 olh@suse.de
- change libdc1394-devel to libdc1394_control12-devel
* Mon Jul 09 2007 kkeil@suse.de
- change library name to make rpmlint happy (#290347)
* Thu May 03 2007 prusnak@suse.cz
- changed expat to libexpat-devel in Requires of devel subpackage
* Tue Apr 24 2007 maw@suse.de
- Update to version 1.10.7
- bugfix release
* Fri Mar 30 2007 aj@suse.de
- Add bison, flex to BuildRequires.
* Tue Feb 27 2007 kkeil@suse.de
- fix configure.ac to detect atomic types for gcc 4.2
* Wed Feb 14 2007 kkeil@suse.de
- downgrade to current stable release 1.10.4
* Mon Oct 02 2006 kkeil@suse.de
- remove unused patches
* Tue Aug 22 2006 sbrabec@suse.cz
- Fixed plugindir to not search in the whole home directory.
- Enabled alsa_default patch from Sourceforge tracker.
* Wed Aug 09 2006 sbrabec@suse.cz
- Require devel packages referenced in ptbuildopts.mak.
* Tue Aug 08 2006 sbrabec@suse.cz
- Updated to version 1.11.1:
* shared memory support
* video file support
* compilation fixes
* bug fixes
* compatibility with SSL v0.9.8b
* Mon Jan 30 2006 aj@suse.de
- Fix BuildRequires.
* Sun Jan 29 2006 coolo@suse.de
- fixing BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 11 2006 kkaempf@suse.de
- build with '-fstack-protector' to catch stack overflows
* Mon Dec 19 2005 kkaempf@suse.de
- add /usr/bin/ptlib-config to -devel filelist.
* Tue Nov 22 2005 kkaempf@suse.de
- add -fno-strict-aliasing to make.
* Mon Oct 24 2005 ro@suse.de
- added libdv-devel to nfb
* Tue Oct 18 2005 kkaempf@suse.de
- add '-DLDAP_DEPRECATED' to cflags.
- fix arm-style friend-injection and other things for GCC 4.1.
- remove tools/msvc6chk directory from source (#91188).
* Fri Oct 14 2005 ro@suse.de
- remove some invalid casts
* Tue Jul 26 2005 kkaempf@suse.de
- update to 1.9.1, lots of fixes:
better video subsystem, better network timeout detection,
IPv6 improvements
- move libpt.so to pwlib-devel (#86488).
- fix typos in changelog.
* Mon May 23 2005 schwab@suse.de
- Fix missing declaration.
* Fri Apr 08 2005 kkaempf@suse.de
- update to 1.9.0
- some gcc4 fixes (virtual destructors)
- some automake fixes (Header Present But Cannot Be Compiled)
* Wed Jan 26 2005 kkaempf@suse.de
- Drop requirement for 'pwlib-video-plugin' since one
(pwlib-plugins-v4l) is already included.
* Mon Jan 10 2005 schwab@suse.de
- Fix requires.
* Thu Dec 16 2004 kkaempf@suse.de
- update to 1.8.3
- merge subpackages pwlib-plugins-alsa, pwlib-plugins-oss,
and pwlib-plugins-v4l back to main package.
- new subpackage pwlib-plugins-v4l2.
* Wed Aug 18 2004 kkaempf@suse.de
- let ptlib-config report correct library path on 64bit systems.
* Tue Aug 17 2004 kkaempf@suse.de
- update to 1.8.0
* Mon Mar 22 2004 kkaempf@suse.de
- update to 1.6.5, drop all SUSE patches (they're included now !)
- improvements for NAT traversal
* Fri Mar 19 2004 kkaempf@suse.de
- fix %%attr() correctly this time.
* Thu Mar 18 2004 kkaempf@suse.de
- fix %%attr() for *.h files (#36388)
* Mon Mar 08 2004 ro@suse.de
- added libdc1394-devel to neededforbuild
* Fri Mar 05 2004 kkaempf@suse.de
- plugin directory belongs to main file
* Thu Mar 04 2004 kkaempf@suse.de
- update to final 1.6.3
* Mon Mar 01 2004 kkaempf@suse.de
- split the plugins off to separate files to reduce dependencies
and make the package compatible to the maintainer's
recommendations
* Tue Feb 24 2004 kkaempf@suse.de
- include plugins into the main package
* Mon Feb 23 2004 kkaempf@suse.de
- drop -fPIC from OPTCCFLAGS, it's duplicate
* Mon Feb 23 2004 kkaempf@suse.de
- fix library name for ppc64
* Sat Feb 21 2004 kkaempf@suse.de
- update to 1.6.3pre1
- enable plugins
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Sat Jan 10 2004 adrian@suse.de
- add %%run_ldconfig
* Tue Sep 09 2003 kkaempf@suse.de
- Fixed alphaev67 naming problem.
* Mon Sep 08 2003 meissner@suse.de
- Fixed powerpc64 naming problem.
* Mon Aug 25 2003 kkaempf@suse.de
- fix 'swab()' ambiguity
* Sat Aug 16 2003 ro@suse.de
- avoid including linux/device.h
* Fri Jul 25 2003 kkaempf@suse.de
- drop "-fno-rtti" from configure. The gnugk gatekeeper needs rtti.
* Wed Jul 23 2003 kkaempf@suse.de
- make ptlib-config accessible in normal path.
* Thu Jul 03 2003 kkaempf@suse.de
- update to 1.5.2 (from CVS, as advised on openh323 mailing list)
- fix %%build in specfile, pwlib uses autoconf/automake now
- install libraries to %%libdir,
install includes to /usr/include/pwlib,
install shared files to /usr/share/pwlib
- added support for ieee1394 (Firewire) cameras
- enable IPv6 (untested)
* Fri Feb 07 2003 kkaempf@suse.de
- disable IPv6, it's still experimental.
* Thu Feb 06 2003 kkaempf@suse.de
- update to 1.4.9
* Fri Jan 24 2003 meissner@suse.de
- ppc64 port added.
- Pass RPM_OPT_FLAGS to compile, so we get -fsigned-char and/or
-mminimal-toc if needed.
* Wed Jan 15 2003 kkaempf@suse.de
- add -fPIC to OPTCCFLAGS as well.
- fix .so suffixes in symlinks for 1.4.x
* Wed Jan 08 2003 kkaempf@suse.de
- update to 1.4.7
* Thu Dec 19 2002 kkaempf@suse.de
- resolve gcc 3.3 ambiguities
* Mon Dec 16 2002 kkaempf@suse.de
- update to 1.4.6
* Mon Nov 18 2002 kkaempf@suse.de
- gcc 3.x deprecates strstream.h, use strsteam instead
* Fri Nov 15 2002 kkaempf@suse.de
- add expat for xml support, needed by openivr
- update to 1.4.4
* Wed Nov 13 2002 kkaempf@suse.de
- update to 1.4.3
* Thu Nov 07 2002 ro@suse.de
- update to current 1.4.2
* Sat Aug 17 2002 kkaempf@suse.de
- Update to 1.3.5:
Fixed memory leaks
Added lots of stuff from OpalVXML
Add support for GetCyberPatrol
* Tue Aug 06 2002 kkaempf@suse.de
- Update to 1.3.4
* Wed Jul 10 2002 kkaempf@suse.de
- Update to 1.3.3. Needed for openam 1.9.3.
* Tue Jul 09 2002 kkaempf@suse.de
- Update to 1.3.2.
* Thu Jun 27 2002 schwab@suse.de
- Fix typo in last change.
* Thu Jun 27 2002 schwab@suse.de
- Define P_64BIT in header to make them self-contained.
* Mon Jun 24 2002 ro@suse.de
- use -fPIC for objects that will be used for a shared lib
* Wed May 22 2002 ro@suse.de
- update to 1.2.19
* Mon May 13 2002 ro@suse.de
- added x86_64 recognition
* Thu Apr 18 2002 ro@suse.de
- make operator= public (not protected) in asner.h
* Wed Apr 17 2002 ro@suse.de
- don't define PINDEX as int but fix code instead
(provide operator with int as argument) to fix segfault
* Tue Apr 16 2002 ro@suse.de
- update to 1.2.15
- define PINDEX as "int" for operator[] arg mess with gcc-3
* Tue Jan 29 2002 kkaempf@suse.de
- Update to 1.2.11
* Mon Jan 28 2002 ro@suse.de
- fix for updated bison
* Wed Jan 23 2002 schwab@suse.de
- Fix for gcc3.
* Tue Dec 18 2001 kkaempf@suse.de
- Update to 1.2.8
- Use %%{_libdir} in Makefiles
* Mon Dec 17 2001 kkaempf@suse.de
- Fix .so symlinks
- Use %%{_libdir} in .spec file.
* Mon Dec 17 2001 kkaempf@suse.de
- Update to 1.2.7
* Mon Dec 03 2001 adrian@suse.de
- fix mips and arm recognition.
* Mon Dec 03 2001 schwab@suse.de
- Fix getdate parser to use %%pure_parser instead of YYPURE.
- Fix endian configuration: alpha is little endian, s390* is big endian.
* Fri Oct 19 2001 schwab@suse.de
- Fix use of <localeinfo.h>.
* Fri Aug 17 2001 kkaempf@suse.de
- update to 1.1.36
fix ppc recognition.
* Thu Aug 16 2001 kkaempf@suse.de
- implement RPM_BUILD_ROOT in spec file.
* Mon Aug 06 2001 kkaempf@suse.de
- update to pwlib-1.1.34
* Wed Jun 20 2001 kkaempf@suse.de
- fix machtype recognition for s390/s390x
- mark s390x as 64bit
* Tue Jun 19 2001 kkaempf@suse.de
- add s390x as target
- clean up specfile
* Wed Apr 11 2001 froh@suse.de
- recognize s390
* Fri Mar 02 2001 kkaempf@suse.de
- fix sparc recognition in unix.mak
* Thu Feb 15 2001 kkaempf@suse.de
- recognize sparc and sparc64
- set P_64BIT define for ia64
* Wed Feb 14 2001 kkaempf@suse.de
- properly call va_end() after va_start() inside a block
(newer gcc checks for this)
- override MACHTYPE to contain architecture only on alpha
* Thu Jan 04 2001 kkaempf@suse.de
- provide .so in -devel package only
* Wed Jan 03 2001 kkaempf@suse.de
- move files from /opt/h323/pwlib to /usr/lib/pwlib
install libraries in /usr/lib
install development components in /usr/lib/pwlib
* Tue Jan 02 2001 kkaempf@suse.de
- update to maintenance release 1.1pl19
* Mon Nov 20 2000 kkaempf@suse.de
- recognize ia64 in MACHTYPE
* Thu Nov 16 2000 kkaempf@suse.de
- use %%doc in filelist
* Wed Nov 15 2000 kkaempf@suse.de
- fixed filelist, *.inl are include files :-}
* Wed Nov 15 2000 kkaempf@suse.de
- split pwlib and pwlib-devel
added minimal readme to pwlib-devel
* Fri Nov 10 2000 kkaempf@suse.de
- fix MACHTYPE for sparc and alpha
* Fri Nov 03 2000 kkaempf@suse.de
- fixed neededforbuild, removed bison
* Tue Sep 05 2000 kkaempf@suse.de
- update to 1.1.18
* Thu Jul 13 2000 kkaempf@suse.de
- fix namespace std bug
* Wed Jul 12 2000 kkaempf@suse.de
- fix sparc machtype
* Wed Jul 12 2000 kkaempf@suse.de
- cvs update
* Mon Jul 10 2000 kkaempf@suse.de
- fix specfile for alpha and ia64
* Tue Jul 04 2000 kkaempf@suse.de
- fix dirpath in specfile
* Mon Jul 03 2000 kkaempf@suse.de
- fix build error
* Mon Jun 26 2000 kkaempf@suse.de
- fix libname for alpha
* Wed Jun 21 2000 ro@suse.de
- specfile fix
* Wed Jun 21 2000 kkaempf@suse.de
- adapt to non-x86 architectures
* Tue Jun 20 2000 kkaempf@suse.de
- created package