ptlib-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. Summary: Portable Tools Library
  2. Name: ptlib
  3. Version: 2.10.10
  4. Release: 1%{?_dist_release}
  5. URL: http://www.opalvoip.org/
  6. Source0: ftp://ftp.gnome.org/pub/gnome/sources/ptlib/2.10/%{name}-%{version}.tar.xz
  7. License: MPLv1.0
  8. Group: System Environment/Libraries
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. Patch0: libpt2-fix-avc-plugin.patch
  11. BuildRequires: openssl-devel
  12. BuildRequires: alsa-lib-devel
  13. BuildRequires: libstdc++3-devel
  14. BuildRequires: openldap-devel
  15. BuildRequires: expat-devel
  16. BuildRequires: SDL-devel
  17. BuildRequires: pulseaudio-libs-devel
  18. BuildRequires: flex
  19. BuildRequires: bison
  20. BuildRequires: libraw1394-devel
  21. BuildRequires: libdv-devel
  22. BuildRequires: libavc1394-devel
  23. Obsoletes: pwlib, pwlib-alsa, pwlib-avc, pwlib-dc, pwlib-oss, pwlib-v4l
  24. Vendor: Project Vine
  25. Distribution: Vine Linux
  26. %description
  27. PTLib (Portable Tools Library) is a moderately large class library that
  28. has it's genesis many years ago as PWLib (portable Windows Library), a
  29. method to product applications to run on both Microsoft Windows and Unix
  30. systems. It has also been ported to other systems such as Mac OSX, VxWorks
  31. and other embedded systems.
  32. It is supplied mainly to support the OPAL project, but that shouldn't stop
  33. you from using it in whatever project you have in mind if you so desire.
  34. %package devel
  35. Summary: Development package for ptlib
  36. Group: Development/Libraries
  37. Requires: ptlib = %{version}-%{release}
  38. Requires: pkgconfig
  39. Requires: cyrus-sasl-devel
  40. Requires: openldap-devel
  41. Requires: openssl-devel
  42. Requires: expat-devel
  43. Requires: SDL-devel
  44. Obsoletes: pwlib-devel
  45. %description devel
  46. The ptlib-devel package includes the libraries and header files for ptlib.
  47. %prep
  48. %setup -q
  49. %patch0 -p1 -b .1394
  50. %build
  51. export CFLAGS="$CFLAGS -DLDAP_DEPRECATED"
  52. %configure --prefix=%{_prefix} --disable-static \
  53. --enable-plugins \
  54. --disable-oss \
  55. --enable-v4l2 \
  56. --enable-avc \
  57. --enable-pulse
  58. make %{?_smp_mflags}
  59. %install
  60. rm -rf $RPM_BUILD_ROOT
  61. make PREFIX=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} install
  62. perl -pi -e 's@PTLIBDIR.*=.*@PTLIBDIR = /usr/share/ptlib@' $RPM_BUILD_ROOT%{_datadir}/ptlib/make/ptbuildopts.mak
  63. # hack to fixup things for bug 197318
  64. find $RPM_BUILD_ROOT%{_libdir} -name '*.so*' -type f -exec chmod +x {} \;
  65. #
  66. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a
  67. %clean
  68. rm -rf $RPM_BUILD_ROOT
  69. %post -p /sbin/ldconfig
  70. %postun -p /sbin/ldconfig
  71. %files
  72. %defattr(-,root,root)
  73. %doc History.txt ReadMe.txt mpl-1.0.htm
  74. %attr(755,root,root) %{_libdir}/libpt*.so.*
  75. %dir %{_libdir}/ptlib-%{version}
  76. %dir %{_libdir}/ptlib-%{version}/devices
  77. %dir %{_libdir}/ptlib-%{version}/devices/sound
  78. %dir %{_libdir}/ptlib-%{version}/devices/videoinput
  79. # List these explicitly so we don't get any surprises
  80. %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/alsa_pwplugin.so
  81. %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/sound/pulse_pwplugin.so
  82. %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/v4l2_pwplugin.so
  83. %attr(755,root,root) %{_libdir}/ptlib-%{version}/devices/videoinput/avc_pwplugin.so
  84. %files devel
  85. %defattr(-,root,root)
  86. %{_libdir}/libpt*.so
  87. %{_includedir}/*
  88. %{_datadir}/ptlib
  89. %{_libdir}/pkgconfig/ptlib.pc
  90. %attr(755,root,root) %{_bindir}/*
  91. %changelog
  92. * Sun Mar 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.10-1
  93. - new upstream release
  94. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.9-1
  95. - new upstream release
  96. - add BuildRequires: pulseaudio-libs-devel
  97. * Sat Oct 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.7-2
  98. - rebuild with libraw1394-2.1.0
  99. - add Patch0 (libpt2-fix-avc-plugin.patch) from suse
  100. * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.7-1
  101. - new upstream release
  102. * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.2-1
  103. - new upstream release
  104. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.1-1
  105. - new upstream release
  106. * Mon Jan 10 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-2
  107. - rebuild with openssl-1.0.0c
  108. * Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.7-1
  109. - new upstream release
  110. - add Requires: cyrus-sasl-devel, openldap-devel, openssl-devel, expat-devel, SDL-devel (devel package)
  111. * Sun Mar 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.6-1
  112. - new upstream release
  113. - add BuildRequires: expat-devel
  114. - remove configure option (--enable-opal)
  115. * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.6.5-1
  116. - new upstream release
  117. - add BuildRequires: libavc1394-devel
  118. - add configure option (--enable-avc)
  119. * Wed Jun 24 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.6.2-3
  120. - rebuilt on ppc w/o libdc1394-devel
  121. * Sun Jun 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-2
  122. - remove dc_pwplugin
  123. - remove BR: libdc1394-devel
  124. * Thu May 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.2-1
  125. - new upstream release
  126. * Sat Apr 4 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.4-1
  127. - new upstream release
  128. * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-1
  129. - new upstream release
  130. * Mon Sep 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-1
  131. - initial build for Vine Linux
  132. - Obsoletes: pwlib, pwlib-{alsa,v4l,dc,avc}
  133. * Wed Sep 10 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-2
  134. - Build fixes from package review
  135. * Sun Jun 8 2008 Peter Robinson <pbrobinson@gmail.com> - 2.3.1-1
  136. - Initial version of ptlib