ptlib-vl.spec 5.6 KB

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