ptlib-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. Summary: Portable Tools Library
  2. Name: ptlib
  3. Version: 2.6.2
  4. Release: 3%{?_dist_release}
  5. URL: http://www.opalvoip.org/
  6. Source0: ftp://ftp.gnome.org/pub/gnome/sources/ptlib/2.6/%{name}-%{version}.tar.bz2
  7. License: MPLv1.0
  8. Group: System Environment/Libraries
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildRequires: expat openssl-devel pkgconfig
  11. BuildRequires: alsa-lib-devel, libstdc++3-devel, libv4l-devel
  12. BuildRequires: openldap-devel, expat-devel, SDL-devel, flex, bison
  13. BuildRequires: libraw1394-devel, libdv-devel
  14. Obsoletes: pwlib, pwlib-alsa, pwlib-avc, pwlib-dc, pwlib-oss, pwlib-v4l
  15. %description
  16. PTLib (Portable Tools Library) is a moderately large class library that
  17. has it's genesis many years ago as PWLib (portable Windows Library), a
  18. method to product applications to run on both Microsoft Windows and Unix
  19. systems. It has also been ported to other systems such as Mac OSX, VxWorks
  20. and other embedded systems.
  21. It is supplied mainly to support the OPAL project, but that shouldn't stop
  22. you from using it in whatever project you have in mind if you so desire.
  23. %package devel
  24. Summary: Development package for ptlib
  25. Group: Development/Libraries
  26. Requires: ptlib = %{version}-%{release}
  27. Requires: pkgconfig
  28. Obsoletes: pwlib-devel
  29. %description devel
  30. The ptlib-devel package includes the libraries and header files for ptlib.
  31. %prep
  32. %setup -q
  33. %build
  34. export CFLAGS="$CFLAGS -DLDAP_DEPRECATED"
  35. %configure --prefix=%{_prefix} --disable-static \
  36. --enable-opal \
  37. --enable-plugins \
  38. --disable-oss \
  39. --enable-v4l2
  40. make %{?_smp_mflags}
  41. %install
  42. rm -rf $RPM_BUILD_ROOT
  43. make PREFIX=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} install
  44. perl -pi -e 's@PTLIBDIR.*=.*@PTLIBDIR = /usr/share/ptlib@' $RPM_BUILD_ROOT%{_datadir}/ptlib/make/ptbuildopts.mak
  45. # hack to fixup things for bug 197318
  46. find $RPM_BUILD_ROOT%{_libdir} -name '*.so*' -type f -exec chmod +x {} \;
  47. # Remove empty include file
  48. rm -rf $RPM_BUILD_ROOT%{_includedir}/ptlib/devplugin.h
  49. #
  50. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
  51. %clean
  52. rm -rf $RPM_BUILD_ROOT
  53. %post -p /sbin/ldconfig
  54. %postun -p /sbin/ldconfig
  55. %files
  56. %defattr(-,root,root)
  57. %doc History.txt ReadMe.txt mpl-1.0.htm
  58. %attr(755,root,root) %{_libdir}/libpt*.so.*
  59. %dir %{_libdir}/ptlib-%{version}
  60. %dir %{_libdir}/ptlib-%{version}/devices
  61. %dir %{_libdir}/ptlib-%{version}/devices/sound
  62. %dir %{_libdir}/ptlib-%{version}/devices/videoinput
  63. # List these explicitly so we don't get any surprises
  64. %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/alsa_pwplugin.so
  65. %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/v4l2_pwplugin.so
  66. %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/avc_pwplugin.so
  67. %files devel
  68. %defattr(-,root,root)
  69. %{_libdir}/libpt*.so
  70. %{_includedir}/*
  71. %{_datadir}/ptlib
  72. %{_libdir}/pkgconfig/ptlib.pc
  73. %attr(755,root,root) %{_bindir}/*
  74. %changelog
  75. * Wed Jun 24 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.6.2-3
  76. - rebuilt on ppc w/o libdc1394-devel
  77. * Sun Jun 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-2
  78. - remove dc_pwplugin
  79. - remove BR: libdc1394-devel
  80. * Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-1
  81. - new upstream release
  82. * Sat Apr 4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.4-1
  83. - new upstream release
  84. * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-1
  85. - new upstream release
  86. * Mon Sep 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-1
  87. - initial build for Vine Linux
  88. - Obsoletes: pwlib, pwlib-{alsa,v4l,dc,avc}
  89. * Wed Sep 10 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-2
  90. - Build fixes from package review
  91. * Sun Jun 8 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-1
  92. - Initial version of ptlib