libwvstreams-vl.spec 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. Name: libwvstreams
  2. Version: 4.6.1
  3. Release: 4%{?_dist_release}
  4. Summary: WvStreams is a network programming library written in C++
  5. Summary(ja): WvStreams - C++ で記述されたネットワークプログラミングライブラリ
  6. License: LGPLv2+
  7. Group: System Environment/Libraries
  8. URL: https://code.google.com/p/wvstreams/
  9. Source: http://wvstreams.googlecode.com/files/wvstreams-%{version}.tar.gz
  10. #fixed multilib issue (bug #192717)
  11. Patch1: wvstreams-4.2.2-multilib.patch
  12. #install-xplc target was missing
  13. Patch2: wvstreams-4.5-noxplctarget.patch
  14. #Fix parallel build (#226061)
  15. Patch3: wvstreams-4.6.1-make.patch
  16. #sys/stat.h is missing some files in rawhide build
  17. Patch4: wvstreams-4.6.1-statinclude.patch
  18. #const X509V3_EXT_METHOD * -> X509V3_EXT_METHOD * conversion not allowed
  19. #by rawhide gcc
  20. Patch5: wvstreams-4.6.1-gcc.patch
  21. # fix missing unistd.h header for gcc 4.7
  22. Patch6: wvstreams-4.6.1-gcc47.patch
  23. Patch7: wvstreams-4.6.1-magic.patch
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  25. BuildRequires: openssl-devel, pkgconfig, zlib-devel, readline-devel, dbus-devel
  26. %description
  27. WvStreams aims to be an efficient, secure, and easy-to-use library for
  28. doing network applications development.
  29. %package devel
  30. Summary: Development files for WvStreams
  31. Summary(ja): WvStreams の開発用ファイル
  32. Group: Development/Libraries
  33. Requires: %{name} = %{version}-%{release}
  34. %description devel
  35. WvStreams aims to be an efficient, secure, and easy-to-use library for
  36. doing network applications development. This package contains the files
  37. needed for developing applications which use WvStreams.
  38. %prep
  39. %setup -q -n wvstreams-%{version}
  40. %patch1 -p1 -b .multilib
  41. %patch2 -p1 -b .xplctarget
  42. %patch3 -p1 -b .make
  43. %patch4 -p1 -b .statinclude
  44. %patch5 -p1 -b .gcc
  45. %patch6 -p1 -b .gcc47
  46. %patch7 -p1 -b .magic
  47. %build
  48. export CXXFLAGS="$RPM_OPT_FLAGS -fPIC -fpermissive -fno-strict-aliasing -fno-tree-dce -fno-optimize-sibling-calls"
  49. export CFLAGS="$RPM_OPT_FLAGS -fPIC -fno-strict-aliasing"
  50. # --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  51. # --with-dbus DBUS
  52. # --with-openssl OpenSSL >= 0.9.7 (required)
  53. # --with-pam PAM
  54. # --with-tcl Tcl
  55. # --with-qt Qt
  56. # --with-zlib zlib (required)
  57. touch configure
  58. %configure --with-dbus --with-pam --with-openssl --without-tcl --without-qt --with-zlib
  59. make COPTS="$RPM_OPT_FLAGS -fPIC -fpermissive" CXXOPTS="$RPM_OPT_FLAGS -fPIC -fpermissive" VERBOSE=1
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. make install DESTDIR=$RPM_BUILD_ROOT
  63. chmod 755 $RPM_BUILD_ROOT%{_libdir}/*.so.*
  64. rm -fr $RPM_BUILD_ROOT/usr/bin
  65. pushd $RPM_BUILD_ROOT
  66. rm -f \
  67. ./etc/uniconf.conf \
  68. .%{_bindir}/uni \
  69. .%{_libdir}/pkgconfig/liboggspeex.pc \
  70. .%{_libdir}/pkgconfig/liboggvorbis.pc \
  71. .%{_libdir}/pkgconfig/libwvfft.pc \
  72. .%{_libdir}/pkgconfig/libwvqt.pc \
  73. .%{_sbindir}/uniconfd \
  74. .%{_mandir}/man8/uni.8* \
  75. .%{_mandir}/man8/uniconfd.8* \
  76. .%{_var}/lib/uniconf/uniconfd.ini
  77. popd
  78. %clean
  79. rm -rf $RPM_BUILD_ROOT
  80. %files
  81. %defattr(-,root,root)
  82. %doc LICENSE README
  83. %{_libdir}/*.so.*
  84. %files devel
  85. %defattr(-,root,root)
  86. %{_includedir}/wvstreams
  87. %{_libdir}/*.so
  88. %{_libdir}/*.a
  89. %{_libdir}/valgrind/*.supp
  90. %{_libdir}/pkgconfig/*.pc
  91. %post -p /sbin/ldconfig
  92. %postun -p /sbin/ldconfig
  93. %changelog
  94. * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.6.1-4
  95. - rebuild with openssl-1.0.2
  96. * Sun Aug 02 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.6.1-3
  97. - rebuild with readline-6.3
  98. * Tue Feb 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.6.1-2
  99. - added Patch6 and 7 from Feroda
  100. * Mon Jun 04 2012 Michal Sekletar <msekleta@redhat.com> - 4.6.1-5
  101. - Fix crashes caused by compiler optimizations, #812651
  102. * Thu Jan 05 2012 Jan Synáček <jsynacek@redhat.com> - 4.6.1-4
  103. - Fix missing unistd.h header for gcc 4.7
  104. - updated URL
  105. * Sun Mar 20 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.6.1-1
  106. - update to 4.6.1
  107. - fix Patch1 (wvstreams-4.2.2-multilib.patch)
  108. - add Patch2 (wvstreams-4.5-noxplctarget.patch) from FC package
  109. - add Patch3 (wvstreams-4.6.1-make.patch) from FC package
  110. - add Patch4 (wvstreams-4.6.1-statinclude.patch) from FC package
  111. - add Patch5 (wvstreams-4.6.1-gcc.patch) from FC package
  112. * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 4.4-1vl5
  113. - applied new versioning policy, spec in utf-8
  114. * Mon Nov 19 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 4.4-0vl1
  115. - initial build for Vine Linux
  116. * Fri Aug 17 2007 Harald Hoyer <harald@rawhide.home> - 4.4-1
  117. - version 4.4
  118. - changed license tag to LGPLv2+
  119. * Thu Jun 28 2007 Harald Hoyer <harald@redhat.com> - 4.3-2
  120. - added static libs, esp. xplc-cxx
  121. * Thu Jun 28 2007 Harald Hoyer <harald@redhat.com> - 4.3-1
  122. - version 4.3
  123. * Wed Apr 18 2007 Harald Hoyer <harald@redhat.com> - 4.2.2-4
  124. - specfile review
  125. * Wed Jan 24 2007 Harald Hoyer <harald@redhat.com> - 4.2.2-3
  126. - fixed code for new g++ version
  127. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 4.2.2-2.1
  128. - rebuild
  129. * Fri Jun 02 2006 Harald Hoyer <harald@redhat.com> 4.2.2-2
  130. - more corrections to multilib patch (bug #192717)
  131. * Wed May 24 2006 Harald Hoyer <harald@redhat.com> 4.2.2-1
  132. - version 4.2.2
  133. - fixed multilib issue (bug #192717)
  134. * Fri Mar 10 2006 Bill Nottingham <notting@redhat.com> - 4.2.1-2
  135. - rebuild for ppc TLS issue (#184446)
  136. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 4.2.1-1.2
  137. - bump again for double-long bug on ppc(64)
  138. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.2.1-1.1
  139. - rebuilt for new gcc4.1 snapshot and glibc changes
  140. * Mon Dec 19 2005 Harald Hoyer <harald@redhat.com> 4.2.1-1
  141. - version 4.2.1
  142. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  143. - rebuilt
  144. * Wed Nov 9 2005 Tomas Mraz <tmraz@redhat.com> 3.75.0-6
  145. - rebuilt against new openssl
  146. - the gcc4 patch shouldn't be used anymore
  147. * Mon Mar 14 2005 Harald Hoyer <harald@redhat.com> 3.75.0-5
  148. - gcc4 patch added
  149. * Wed Mar 2 2005 Jindrich Novy <jnovy@redhat.com> 3.75.0-4
  150. - rebuilt
  151. * Wed Feb 09 2005 Harald Hoyer <harald@redhat.com>
  152. - rebuilt
  153. * Mon Jun 28 2004 Harald Hoyer <harald@redhat.com> 3.75.0-2
  154. - added libwvstreams-3.75.0-stringbuf.patch (114996)
  155. * Mon Jun 21 2004 Harald Hoyer <harald@redhat.com> 3.75.0-1
  156. - version 3.75.0
  157. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  158. - rebuilt
  159. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  160. - rebuilt
  161. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  162. - rebuilt
  163. * Fri Oct 10 2003 Nalin Dahyabhai <nalin@redhat.com> 3.70-12
  164. - link libwvstreams shared libs against libcrypt, upon which they depend
  165. * Mon Sep 8 2003 Nalin Dahyabhai <nalin@redhat.com> 3.70-11
  166. - rebuild
  167. * Mon Sep 8 2003 Nalin Dahyabhai <nalin@redhat.com> 3.70-10
  168. - rebuild
  169. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  170. - rebuilt
  171. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  172. - rebuilt
  173. * Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 3.70-7
  174. - rebuild
  175. * Fri Jan 3 2003 Nalin Dahyabhai <nalin@redhat.com>
  176. - correct an const/not-const type mismatch that breaks compilation with newer
  177. OpenSSL
  178. - add flags from pkgconfig so that OpenSSL is always found
  179. * Tue Sep 10 2002 Mike A. Harris <mharris@redhat.com> 3.70-6
  180. - use FHS macros for multilib systems
  181. * Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
  182. - rebuilt with gcc-3.2 (we hope)
  183. * Mon Jul 22 2002 Tim Powers <timp@redhat.com>
  184. - rebuild using gcc-3.2-0.1
  185. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  186. - automated rebuild
  187. * Sun May 26 2002 Tim Powers <timp@redhat.com>
  188. - automated rebuild
  189. * Mon May 20 2002 Nalin Dahyabhai <nalin@redhat.com> 3.70-1
  190. - patch to build with gcc 3.x
  191. - build with -fPIC
  192. * Wed Apr 10 2002 Nalin Dahyabhai <nalin@redhat.com>
  193. - update to 3.70
  194. * Wed Mar 27 2002 Nalin Dahyabhai <nalin@redhat.com> 3.69-1
  195. - pull in from upstream tarball
  196. * Wed Feb 27 2002 Nalin Dahyabhai <nalin@redhat.com>
  197. - merge the main and -devel packages into one .spec file
  198. - use globbing to shorten the file lists
  199. - don't define name, version, and release as macros (RPM does this by default)
  200. - use the License: tag instead of Copyright: (equivalent at the package level,
  201. but License: reflects the intent of the tag better)
  202. - use a URL to point to the source of the source tarball
  203. - add BuildRequires: openssl-devel (libwvcrypto uses libcrypto)
  204. - move the buildroot to be under %%{_tmppath}, so that it can be moved by
  205. altering RPM's configuration
  206. * Tue Jan 29 2002 Patrick Patterson <ppatters@nit.ca>
  207. - Initial Release of WvStreams