ptlib-vl.spec 3.8 KB

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