openh323-vl.spec 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. %define pkgver v1_18_0
  2. Summary: Library for H323 spec.
  3. Summary(ja): H323 ¥é¥¤¥Ö¥é¥ê
  4. Name: openh323
  5. Version: 1.18.0
  6. Release: 0vl5
  7. URL: http://openh323.sourceforge.net/
  8. Source0: %{name}-%{pkgver}-src-tar.gz
  9. Patch1: openh323-1.13.2-libname.patch
  10. Patch2: openh323-1.12.0-asnparser.patch
  11. Patch3: openh323-1.12.0-nosamples.patch
  12. Patch4: openh323-1.12.0-prefix.patch
  13. Patch5: openh323-1.12.0-PIC.patch
  14. Patch6: openh323-1.13.2-ptlib-config.patch
  15. License: MPL
  16. Group: System Environment/Libraries
  17. Requires: pwlib >= 1.6.3
  18. Requires: speex
  19. BuildRequires: pwlib-devel >= 1.6.3
  20. BuildRequires: XOrg-devel speex-devel openldap-devel
  21. BuildRequires: gcc-c++
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. %description
  24. Implementation of the ITU H.323 teleconferencing protocol.
  25. %package devel
  26. Summary: Development package for openh323
  27. Group: Development/Libraries
  28. Requires: openh323 = %{version}-%{release}
  29. Requires: pwlib-devel >= 1.6.3
  30. %description devel
  31. Static libraries and header files for development with openh323.
  32. %prep
  33. %setup -q -n openh323_%{pkgver}
  34. #patch1 -p1 -b .libname
  35. #patch2 -p1 -b .ansparser
  36. #patch3 -p1 -b .nosamples
  37. #patch4 -p1 -b .prefix
  38. #patch5 -p1 -b .PIC
  39. #patch6 -p1 -b .ptlib-config
  40. %build
  41. #autoconf
  42. CFLAGS="$CFLAGS -fPIC"; export CFLAGS
  43. CCFLAGS="$CCFLAGS -fPIC"; export CCFLAGS
  44. %configure
  45. #configure --prefix=%{_prefix} --libdir=%{_libdir} --enable-localspeex=no
  46. %ifarch ia64
  47. # Disable optimization due to g++ segfault (#116369)
  48. make optshared OPTCCFLAGS="$RPM_OPT_FLAGS" || true
  49. g++ -DP_USE_PRAGMA -fno-rtti -D_REENTRANT -Wall -DP_64BIT -fPIC -DPTRACING -Iinclude -DHAS_OSS -DPTRACING -I/usr/share/pwlib//include -DNDEBUG -x c++ -c src/h245_1.cxx -o lib/obj_linux_ia64_r/h245_1.o
  50. g++ -DP_USE_PRAGMA -fno-rtti -D_REENTRANT -Wall -DP_64BIT -fPIC -DPTRACING -Iinclude -DHAS_OSS -DPTRACING -I/usr/share/pwlib//include -DNDEBUG -x c++ -c src/h245_2.cxx -o lib/obj_linux_ia64_r/h245_2.o
  51. g++ -DP_USE_PRAGMA -fno-rtti -D_REENTRANT -Wall -DP_64BIT -fPIC -DPTRACING -Iinclude -DHAS_OSS -DPTRACING -I/usr/share/pwlib//include -DNDEBUG -x c++ -c src/h245_3.cxx -o lib/obj_linux_ia64_r/h245_3.o
  52. make optshared OPTCCFLAGS="$RPM_OPT_FLAGS"
  53. %else
  54. make optshared OPTCCFLAGS="$RPM_OPT_FLAGS"
  55. %endif
  56. #Remove this for now, seems to break stuff: %{?_smp_mflags}
  57. %install
  58. rm -rf $RPM_BUILD_ROOT
  59. #makeinstall
  60. make DESTDIR=$RPM_BUILD_ROOT install
  61. mv $RPM_BUILD_ROOT%{_libdir}/libopenh323.@SHAREDLIBEXT@ $RPM_BUILD_ROOT%{_libdir}/libopenh323.so
  62. #chmod 755 $RPM_BUILD_ROOT%{_libdir}/libh323_linux_x86_r.so.*
  63. chmod 755 $RPM_BUILD_ROOT%{_libdir}/libh323_linux_*_r.so.*
  64. %clean
  65. rm -rf $RPM_BUILD_ROOT
  66. %post -p /sbin/ldconfig
  67. %postun -p /sbin/ldconfig
  68. %files
  69. %defattr(-,root,root)
  70. %doc ReadMe.txt mpl-1.0.htm
  71. %{_libdir}/*.so.*
  72. %{_libdir}/pwlib/codecs/audio/*.so
  73. %files devel
  74. %defattr(-,root,root)
  75. %{_libdir}/*.so
  76. %{_includedir}/*
  77. %{_datadir}/openh323
  78. %changelog
  79. * Sun Oct 7 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.18.0-0vl5
  80. - rebuilt with pwlib-1.10.10
  81. * Tue May 23 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.18.0-0vl4
  82. - rebuilt with new toolchain and pwlib-1.10.7
  83. * Sat Mar 17 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.18.0-0vl3
  84. - Hey Mr.Somebody, don't assume that there is only x86 target on Vine :(
  85. libh323_linux_x86_r.so.* -> libh323_linux_*_r.so.* in %%install section
  86. * Fri Feb 23 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.18.0-0vl2
  87. - rebuilt with pwlib-1.10.4
  88. * Sat Feb 3 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.18.0-0vl1
  89. - new upstream release
  90. - updated URL
  91. * Wed Mar 3 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.13.2-1vl1
  92. - initial build for Vine Linux
  93. * Thu Feb 26 2004 Alexander Larsson <alexl@redhat.com> 1.13.2-1
  94. - update to 1.13.2 final
  95. * Mon Feb 23 2004 Alexander Larsson <alexl@redhat.com> 1.13.2-0.pre1.1
  96. - better ia64 workaround
  97. * Fri Feb 20 2004 Alexander Larsson <alexl@redhat.com> 1.13.2-0.pre1.0
  98. - update to 1.13.2pre1
  99. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  100. - rebuilt
  101. * Fri Jul 4 2003 Alexander Larsson <alexl@redhat.com> 1.12.0-2
  102. - Rebuild with right P_64BIT define on ppc64
  103. * Tue Jul 1 2003 Alexander Larsson <alexl@redhat.com> 1.12.0-1
  104. - Update to 1.12.0
  105. - Redo all patches for new makefiles
  106. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  107. - rebuilt
  108. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  109. - rebuilt
  110. * Wed Jan 8 2003 Alexander Larsson <alexl@redhat.com> 1.11.2-3
  111. - Update the PIC patch for the speex codec.
  112. * Wed Jan 8 2003 Alexander Larsson <alexl@redhat.com> 1.11.2-2
  113. - Actually mkdir datadir/openh323
  114. * Wed Jan 8 2003 Alexander Larsson <alexl@redhat.com> 1.11.2-1
  115. - Update to 1.11.2
  116. - Removed extra speex source as it's now built in
  117. - Update build patches
  118. - Moved openh323u.mak to datadir/openh323
  119. * Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 1.9.10-5
  120. - Rebuild
  121. * Wed Oct 23 2002 Alexander Larsson <alexl@redhat.com> 1.9.10-4
  122. - Add speex header files
  123. * Wed Oct 23 2002 Alexander Larsson <alexl@redhat.com> 1.9.10-3
  124. - Fix unpackages files
  125. * Wed Oct 23 2002 Alexander Larsson <alexl@redhat.com> 1.9.10-2
  126. - Fix speex linking
  127. - Remove custom strndup that was colliding with system one
  128. * Wed Oct 23 2002 Alexander Larsson <alexl@redhat.com> 1.9.10-1
  129. - Update to 1.9.10
  130. - Include speex tarball
  131. * Wed Oct 9 2002 Alex Larsson <alexl@redhat.com> 1.9.3-5
  132. - Change to use _libdir etc. throughout specfile
  133. - Build with -fPIC
  134. * Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
  135. - rebuilt with gcc-3.2 (we hope)
  136. * Tue Aug 6 2002 Alexander Larsson <alexl@redhat.com> 1.9.3-3
  137. - Removed excludearch ia64
  138. * Mon Jul 22 2002 Tim Powers <timp@redhat.com> 1.9.3-2
  139. - rebuild using gcc-3.2-0.1
  140. * Thu Jul 11 2002 Alexander Larsson <alexl@redhat.com> 1.9.3-1
  141. - Update to 1.9.3
  142. * Tue Jul 2 2002 Alexander Larsson <alexl@redhat.com> 1.9.1-1
  143. - Updated to 1.9.1, some changes borrowed from
  144. - the rpms by Carl-Johan Kjellander
  145. * Fri Mar 22 2002 Alex Larsson <alexl@redhat.com>
  146. - Add versioned dependency on main package in devel package
  147. - Fix to long line in desctiption
  148. * Fri Mar 8 2002 Alex Larsson <alexl@redhat.com>
  149. - Bump version to rebuild against new pwlib
  150. * Mon Feb 25 2002 Alex Larsson <alexl@redhat.com>
  151. - Update to 1.8.0
  152. * Wed Sep 28 2001 Alex Larsson <alexl@redhat.com> 1.6.1-3
  153. - made the devel package require the binary package
  154. * Mon Aug 13 2001 Alexander Larsson <alexl@redhat.com> 1.6.0-2
  155. - Changed libname to liboh323
  156. * Mon Aug 13 2001 Alexander Larsson <alexl@redhat.com> 1.6.0-1
  157. - Upgraded to 1.6.0
  158. * Thu Jul 5 2001 Elliot Lee <sopwith@redhat.com> 1.5.5-3
  159. - Remove PLATFORM_TYPE from libname
  160. * Wed Jul 4 2001 Elliot Lee <sopwith@redhat.com> 1.5.5-2
  161. - More fixups. The patch is not named IHATEYOU because of a loving relationship...
  162. * Wed Jul 4 2001 Jonathan Blandford <jrb@redhat.com>
  163. - Initial build.