sio.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. ##
  2. ## sio.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: sio
  26. Summary: I/O Abstraction Library for Layered Stream Communication
  27. URL: http://www.ossp.org/pkg/lib/sio/
  28. Vendor: The OSSP Project
  29. Packager: OpenPKG
  30. Distribution: OpenPKG
  31. Class: PLUS
  32. Group: System
  33. License: MIT/X11-style
  34. Version: 0.9.2
  35. Release: 20050610
  36. # package options
  37. %option with_ex no
  38. %option with_sa no
  39. %option with_bio no
  40. %option with_zlib no
  41. # list of sources
  42. Source0: ftp://ftp.ossp.org/pkg/lib/sio/sio-%{version}.tar.gz
  43. # build information
  44. Prefix: %{l_prefix}
  45. BuildRoot: %{l_buildroot}
  46. BuildPreReq: OpenPKG, openpkg >= 20040130
  47. PreReq: OpenPKG, openpkg >= 20040130
  48. %if "%{with_ex}" == "yes"
  49. BuildPreReq: ex
  50. PreReq: ex
  51. %endif
  52. %if "%{with_sa}" == "yes"
  53. BuildPreReq: sa
  54. PreReq: sa
  55. %endif
  56. %if "%{with_bio}" == "yes"
  57. BuildPreReq: openssl
  58. PreReq: openssl
  59. %endif
  60. %if "%{with_zlib}" == "yes"
  61. BuildPreReq: zlib
  62. PreReq: zlib
  63. %endif
  64. AutoReq: no
  65. AutoReqProv: no
  66. %description
  67. OSSP sio is an I/O abstraction library for layered stream
  68. communication. It was built to deal efficiently with complex I/O
  69. protocols and includes capabilities to filter and multiplex data
  70. streams. Its modular structure is fully supported by the underlying
  71. OSSP al data buffer library.
  72. %track
  73. prog sio = {
  74. version = %{version}
  75. url = ftp://ftp.ossp.org/pkg/lib/sio/
  76. regex = sio-(__VER__)\.tar\.gz
  77. }
  78. %prep
  79. %setup -q
  80. %{l_shtool} subst \
  81. -e '/LINENO: error: C[+]* preprocessor/{N;N;N;N;s/.*/:/;}' \
  82. configure lib_*/configure
  83. %build
  84. CC="%{l_cc}" \
  85. CFLAGS="%{l_cflags -O}" \
  86. CPPFLAGS="%{l_cppflags}" \
  87. LDFLAGS="%{l_ldflags}" \
  88. ./configure \
  89. --prefix=%{l_prefix} \
  90. %if "%{with_ex}" == "yes"
  91. --with-ex=%{l_prefix} \
  92. %endif
  93. %if "%{with_sa}" == "yes"
  94. --enable-sa \
  95. %endif
  96. %if "%{with_bio}" == "yes"
  97. --enable-bio \
  98. %endif
  99. %if "%{with_zlib}" == "yes"
  100. --enable-zlib \
  101. %endif
  102. --disable-shared
  103. %{l_make} %{l_mflags}
  104. %install
  105. rm -rf $RPM_BUILD_ROOT
  106. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  107. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  108. %files -f files
  109. %clean
  110. rm -rf $RPM_BUILD_ROOT