ptlib-vl.spec 4.6 KB

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