ptlib-vl.spec 4.0 KB

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