ptlib-vl.spec 4.9 KB

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