sio.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. ##
  2. ## sio.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 Ralf S. Engelschall <rse@engelschall.com>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: sio
  27. Summary: I/O Abstraction Library for Layered Stream Communication
  28. URL: http://www.ossp.org/pkg/lib/sio/
  29. Vendor: The OSSP Project
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [PLUS]
  32. Group: System
  33. License: MIT/X11-style
  34. Version: 0.9.1
  35. Release: 20030617
  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 >= 20030103
  47. PreReq: OpenPKG, openpkg >= 20030103
  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. %prep
  73. %setup -q
  74. %build
  75. CC="%{l_cc}" \
  76. CFLAGS="%{l_cflags -O}" \
  77. CPPFLAGS="%{l_cppflags}" \
  78. LDFLAGS="%{l_ldflags}" \
  79. ./configure \
  80. --prefix=%{l_prefix} \
  81. %if "%{with_ex}" == "yes"
  82. --with-ex=%{l_prefix} \
  83. %endif
  84. %if "%{with_sa}" == "yes"
  85. --enable-sa \
  86. %endif
  87. %if "%{with_bio}" == "yes"
  88. --enable-bio \
  89. %endif
  90. %if "%{with_zlib}" == "yes"
  91. --enable-zlib \
  92. %endif
  93. --disable-shared
  94. %{l_make} %{l_mflags -O}
  95. %install
  96. rm -rf $RPM_BUILD_ROOT
  97. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
  98. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  99. %files -f files
  100. %clean
  101. rm -rf $RPM_BUILD_ROOT