ptlib-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. Summary: Portable Tools Library
  2. Name: ptlib
  3. Version: 2.6.7
  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. Requires: cyrus-sasl-devel
  30. Requires: openldap-devel
  31. Requires: openssl-devel
  32. Requires: expat-devel
  33. Requires: SDL-devel
  34. Obsoletes: pwlib-devel
  35. %description devel
  36. The ptlib-devel package includes the libraries and header files for ptlib.
  37. %prep
  38. %setup -q
  39. %build
  40. export CFLAGS="$CFLAGS -DLDAP_DEPRECATED"
  41. %configure --prefix=%{_prefix} --disable-static \
  42. --enable-plugins \
  43. --disable-oss \
  44. --enable-v4l2 \
  45. --enable-avc
  46. make %{?_smp_mflags}
  47. %install
  48. rm -rf $RPM_BUILD_ROOT
  49. make PREFIX=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} install
  50. perl -pi -e 's@PTLIBDIR.*=.*@PTLIBDIR = /usr/share/ptlib@' $RPM_BUILD_ROOT%{_datadir}/ptlib/make/ptbuildopts.mak
  51. # hack to fixup things for bug 197318
  52. find $RPM_BUILD_ROOT%{_libdir} -name '*.so*' -type f -exec chmod +x {} \;
  53. # Remove empty include file
  54. rm -rf $RPM_BUILD_ROOT%{_includedir}/ptlib/devplugin.h
  55. #
  56. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
  57. %clean
  58. rm -rf $RPM_BUILD_ROOT
  59. %post -p /sbin/ldconfig
  60. %postun -p /sbin/ldconfig
  61. %files
  62. %defattr(-,root,root)
  63. %doc History.txt ReadMe.txt mpl-1.0.htm
  64. %attr(755,root,root) %{_libdir}/libpt*.so.*
  65. %dir %{_libdir}/ptlib-%{version}
  66. %dir %{_libdir}/ptlib-%{version}/devices
  67. %dir %{_libdir}/ptlib-%{version}/devices/sound
  68. %dir %{_libdir}/ptlib-%{version}/devices/videoinput
  69. # List these explicitly so we don't get any surprises
  70. %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/alsa_pwplugin.so
  71. %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/v4l2_pwplugin.so
  72. %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/avc_pwplugin.so
  73. %files devel
  74. %defattr(-,root,root)
  75. %{_libdir}/libpt*.so
  76. %{_includedir}/*
  77. %{_datadir}/ptlib
  78. %{_libdir}/pkgconfig/ptlib.pc
  79. %attr(755,root,root) %{_bindir}/*
  80. %changelog
  81. * Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-1
  82. - new upstream release
  83. - add Requires: cyrus-sasl-devel, openldap-devel, openssl-devel, expat-devel, SDL-devel (devel package)
  84. * Sun Mar 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.6-1
  85. - new upstream release
  86. - add BuildRequires: expat-devel
  87. - remove configure option (--enable-opal)
  88. * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.5-1
  89. - new upstream release
  90. - add BuildRequires: libavc1394-devel
  91. - add configure option (--enable-avc)
  92. * Wed Jun 24 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.6.2-3
  93. - rebuilt on ppc w/o libdc1394-devel
  94. * Sun Jun 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-2
  95. - remove dc_pwplugin
  96. - remove BR: libdc1394-devel
  97. * Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-1
  98. - new upstream release
  99. * Sat Apr 4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.4-1
  100. - new upstream release
  101. * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-1
  102. - new upstream release
  103. * Mon Sep 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-1
  104. - initial build for Vine Linux
  105. - Obsoletes: pwlib, pwlib-{alsa,v4l,dc,avc}
  106. * Wed Sep 10 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-2
  107. - Build fixes from package review
  108. * Sun Jun 8 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-1
  109. - Initial version of ptlib