pwlib-vl.spec 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. Summary: Portable Windows Libary
  2. Name: pwlib
  3. Version: 1.10.10
  4. Release: 2%{?_dist_release}
  5. URL: http://openh323.sourceforge.net/
  6. Source0: http://www.ekiga.org/admin/downloads/latest/sources/sources/pwlib-%{version}.tar.gz
  7. License: MPL
  8. Group: System Environment/Libraries
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: expat, openssl-devel, pkgconfig
  11. BuildRequires: openldap-devel, alsa-lib-devel
  12. BuildRequires: libdv-devel, libraw1394-devel, libavc1394-devel
  13. BuildRequires: libdc1394-devel
  14. Requires: libdv, libraw1394, libavc1394
  15. %description
  16. PWLib is a moderately large class library that has its genesis many
  17. years ago as a method to produce applications to run on both Microsoft
  18. Windows and Unix X-Window systems. It also was to have a Macintosh
  19. port as well but this never eventuated. This version does not contain
  20. any UI code.
  21. It is supplied mainly to support the open H323 project, but that shouldn't stop
  22. you from using it in whatever project you have in mind if you so desire.
  23. You should install some add-on plugin packages to use sound/video devices.
  24. There are following plugins.
  25. - pwlib-alsa : ALSA sound plugin
  26. - pwlib-v4l : V4L/V4L2 video plugin
  27. - pwlib-avc : libavc1394 video plugin
  28. - pwlib-dc : libdc1394 video plugin
  29. #'
  30. %package devel
  31. Summary: Development package for pwlib
  32. Group: Development/Libraries
  33. Requires: pwlib = %{version}-%{release}
  34. Requires: openssl-devel
  35. %description devel
  36. The pwlib-devel package includes the libraries and header files for pwlib.
  37. %package alsa
  38. Summary: ALSA sound plugin for pwlib
  39. Group: System Environment/Libraries
  40. Requires: pwlib = %{version}-%{release}
  41. Requires: alsa-lib >= 1.0.2
  42. Obsoletes: %{name}-oss < 1.10.1
  43. %description alsa
  44. ALSA sound plugins for pwlib.
  45. %package v4l
  46. Summary: V4L video plugin for pwlib
  47. Group: System Environment/Libraries
  48. Requires: %{name} = %{version}-%{release}
  49. %description v4l
  50. V4L video plugins for pwlib.
  51. %package avc
  52. Summary: libavc1394 video plugin for pwlib
  53. Group: System Environment/Libraries
  54. Requires: %{name} = %{version}-%{release}
  55. Requires: libraw1394, libdv, libavc1394
  56. %description avc
  57. libavc1394 video plugins for pwlib.
  58. %package dc
  59. Summary: libdc1394 video plugin for pwlib
  60. Group: System Environment/Libraries
  61. Requires: %{name} = %{version}-%{release}
  62. Requires: libraw1394, libdv, libdc1394
  63. %description dc
  64. libdc1394 video plugins for pwlib.
  65. %prep
  66. %setup -q
  67. %build
  68. autoconf
  69. %configure --prefix=%{_prefix} --enable-opal --enable-openh323 \
  70. --enable-plugins --disable-oss --enable-v4l2
  71. make OPTCCFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
  72. %install
  73. rm -rf $RPM_BUILD_ROOT
  74. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  75. mkdir -p $RPM_BUILD_ROOT%{_libdir}
  76. make PREFIX=$RPM_BUILD_ROOT%{_prefix} LIBDIR=$RPM_BUILD_ROOT%{_libdir} install
  77. rm -rf $RPM_BUILD_ROOT%{_includedir}/CVS
  78. rm -rf $RPM_BUILD_ROOT%{_includedir}/ptclib/CVS
  79. rm -rf $RPM_BUILD_ROOT%{_includedir}/ptlib/CVS
  80. rm -rf $RPM_BUILD_ROOT%{_includedir}/ptlib/unix/CVS
  81. rm -rf $RPM_BUILD_ROOT%{_includedir}/ptlib/unix/ptlib/CVS
  82. rm -rf $RPM_BUILD_ROOT%{_datadir}/pwlib/make/CVS
  83. perl -pi -e 's@PWLIBDIR.*=.*@PWLIBDIR = /usr/share/pwlib@' $RPM_BUILD_ROOT%{_datadir}/pwlib/make/ptbuildopts.mak
  84. # changed permission
  85. chmod 755 $RPM_BUILD_ROOT%{_libdir}/libpt*.so.*
  86. chmod 755 $RPM_BUILD_ROOT%{_libdir}/pwlib/devices/*/*.so
  87. %clean
  88. rm -rf $RPM_BUILD_ROOT
  89. %post -p /sbin/ldconfig
  90. %postun -p /sbin/ldconfig
  91. %files
  92. %defattr(-,root,root)
  93. %doc History.txt ReadMe.txt mpl-1.0.htm
  94. %{_libdir}/libpt*.so.*
  95. %dir %{_libdir}/pwlib
  96. %dir %{_libdir}/pwlib/devices
  97. %dir %{_libdir}/pwlib/devices/sound
  98. %dir %{_libdir}/pwlib/devices/videoinput
  99. %files alsa
  100. %defattr(-,root,root)
  101. %{_libdir}/pwlib/devices/sound/alsa_*.so
  102. %files v4l
  103. %defattr(-,root,root)
  104. %{_libdir}/pwlib/devices/videoinput/v4l_*.so
  105. %{_libdir}/pwlib/devices/videoinput/v4l2_*.so
  106. %files avc
  107. %defattr(-,root,root)
  108. %{_libdir}/pwlib/devices/videoinput/avc_*.so
  109. %files dc
  110. %defattr(-,root,root)
  111. %{_libdir}/pwlib/devices/videoinput/*
  112. %files devel
  113. %defattr(-,root,root)
  114. %{_libdir}/libpt*.so
  115. %{_includedir}/*
  116. %{_datadir}/pwlib
  117. %attr(755,root,root) %{_bindir}/*
  118. %changelog
  119. * Sat Jun 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.10.10-2vl5
  120. - rebuilt with new libdc1394
  121. * Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 1.10.10-1vl5
  122. - applied new versioning policy
  123. * Sat Sep 29 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.10.10-0vl1
  124. - new upstream release
  125. * Thu May 17 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.10.7-0vl3
  126. - rebuild with new openssl
  127. * Sat May 12 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.10.7-0vl2
  128. - rebuilt with new toolchains
  129. * Sat Apr 14 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.10.7-0vl1
  130. - new upstream release
  131. - fixed typo in spec file
  132. * Fri Feb 23 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.10.4-0vl1
  133. - new upstream release
  134. - updated Source URL
  135. * Sat Feb 3 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.10.3-0vl1
  136. - new upstream release
  137. - updated URL
  138. * Tue Aug 29 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.10.1-0vl1
  139. - new upstream release
  140. - add BuildRequires: openldap-devel, alsa-lib-devel
  141. - rebuild with new openldap-2.3.24
  142. - disable oss support
  143. * Thu Aug 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-1vl5
  144. - rebuild with libraw1394-1.2.0, libavc1394-0.5.3, libdc1394-1.2.0, libdv-0.104
  145. * Sat Jun 11 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-1vl4
  146. - rebuild with libraw1394-1.1.0, libavc1394-0.5.0, libdc1394-1.1.0, libdv-0.102
  147. * Thu Apr 15 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.3-1vl3
  148. - rebuild with libdv-0.102
  149. * Sat Mar 20 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.3-1vl2
  150. - build with alsa-lib, libdc1394
  151. - split each plugins to sub-packages.
  152. * Wed Mar 3 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.3-1vl1
  153. - initial build for Vine Linux
  154. * Thu Feb 26 2004 Alexander Larsson <alexl@redhat.com> 1.6.3-1
  155. - update to 1.6.3 final
  156. * Fri Feb 20 2004 Alexander Larsson <alexl@redhat.com> 1.6.3-0.pre1.0
  157. - update to 1.6.3pre1
  158. * Tue Feb 17 2004 Alexander Larsson <alexl@redhat.com> 1.5.0-4
  159. - add ranges security fix
  160. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  161. - rebuilt
  162. * Fri Jul 4 2003 Alexander Larsson <alexl@redhat.com> 1.5.0-2
  163. - Add patch to recognize ppc64 ad 64bit
  164. * Tue Jul 1 2003 Alexander Larsson <alexl@redhat.com> 1.5.0-1
  165. - Update to 1.5.0
  166. - Update all patches for new makefile
  167. * Mon Jun 30 2003 Alexander Larsson <alexl@redhat.com> 1.4.7-6.EL
  168. - rebuild for ppc64 crt*.o problems
  169. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  170. - rebuilt
  171. * Wed Jun 4 2003 Alexander Larsson <alexl@redhat.com> 1.4.7-5
  172. - Add patch to workaround bison problem (bug #92262)
  173. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  174. - rebuilt
  175. * Wed Jan 8 2003 Alexander Larsson <alexl@redhat.com> 1.4.7-3
  176. - pwlib-1.4.7-noipv6.patch: Disable ipv6 check, damien claims it's unstable.
  177. * Wed Jan 8 2003 Alexander Larsson <alexl@redhat.com> 1.4.7-2
  178. - Oops. deleted a bit much from the specfile
  179. * Wed Jan 8 2003 Alexander Larsson <alexl@redhat.com> 1.4.7-1
  180. - Update to 1.4.7
  181. * Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 1.3.11-2
  182. - rebuild
  183. * Fri Jan 3 2003 Nalin Dahyabhai <nalin@redhat.com>
  184. - Use pkg-config to find OpenSSL if pkg-config admits to knowing anything.
  185. * Wed Oct 23 2002 Alexander Larsson <alexl@redhat.com> 1.3.11-1
  186. - Upgrade to 1.3.11
  187. - Remove pwlib-alpha patch. I don't think it's necessary anymore.
  188. - fix %doc
  189. * Fri Aug 30 2002 Alexander Larsson <alexl@redhat.com> 1.3.3-5
  190. - Use %{_libdir} etc instead of hardcoding
  191. * Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
  192. - rebuilt with gcc-3.2 (we hope)
  193. * Mon Jul 22 2002 Tim Powers <timp@redhat.com> 1.3.3-3
  194. - rebuilt using gcc-3.2-0.1
  195. * Fri Jul 19 2002 Jakub Jelinek <jakub@redhat.com> 1.3.3-2
  196. - Use glibc regex (and at the same time get rid of non-fpic code)
  197. * Thu Jul 11 2002 Alexander Larsson <alexl@redhat.com> 1.3.3-1
  198. - Update to 1.3.3
  199. * Mon Jul 1 2002 Alexander Larsson <alexl@redhat.com> 1.3.1-1
  200. - Update to 1.3.1
  201. * Fri Mar 22 2002 Alex Larsson <alexl@redhat.com>
  202. - Added versioned dependency in the devel package
  203. - Fixed line-to-long error in description
  204. * Fri Mar 8 2002 Alex Larsson <alexl@redhat.com>
  205. - Add the video patch from damien needed for GM 0.85.1
  206. * Mon Feb 25 2002 Alex Larsson <alexl@redhat.com>
  207. - Update to 1.2.12
  208. * Thu Nov 29 2001 Alex Larsson <alexl@redhat.com> 1.2.5-1
  209. - Updated to 1.2.5
  210. * Mon Oct 01 2001 Alex Larsson <alexl@redhat.com> 1.1.36-4
  211. - Added defattr
  212. * Wed Sep 28 2001 Alex Larsson <alexl@redhat.com> 1.1.36-3
  213. - made the devel package require the binary package
  214. * Wed Sep 19 2001 Alex Larsson <alexl@redhat.com> 1.1.36-2
  215. - Added new patch from damien
  216. * Mon Aug 13 2001 Alexander Larsson <alexl@redhat.com> 1.1.36-1
  217. - Upgraded to 1.1.36
  218. * Wed Jul 4 2001 Elliot Lee <sopwith@redhat.com>
  219. - Patch asnparser makefile so 'make -j...' works completely.
  220. * Wed Jul 4 2001 Alexander Larsson <alexl@redhat.com>
  221. - Borrow some stuff from the Mandrake specfile
  222. * Wed Jul 4 2001 Jonathan Blandford <jrb@redhat.com>
  223. - Initial build.