ptlib-vl.spec 6.3 KB

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