spread.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ##
  2. ## spread.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 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: spread
  27. Summary: Group Communication Toolkit
  28. URL: http://www.spread.org/
  29. Vendor: Spread Concepts LLC & CNDS
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EXP]
  32. Group: Network
  33. License: BSD-style
  34. Version: 3.16.1
  35. Release: 20011201
  36. # list of sources
  37. Source0: spread-src-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20011227
  42. PreReq: OpenPKG, openpkg >= 20011227
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. Spread is a group communication system that provides a number of
  47. messaging services to applications. These services can then be used
  48. by applications to make it easy to write full-featured reliable
  49. groupware, distributed servers, client-server applications, chat and
  50. news services, and many other networked enabled tools.
  51. %prep
  52. %setup -q -n spread-src-%{version}
  53. %build
  54. makefile="Makefile"
  55. case "%{l_target}" in
  56. *-linux* ) makefile="LINUX_makefile" ;;
  57. *-freebsd* ) makefile="FreeBSD_makefile" ;;
  58. *-solaris2.8* ) makefile="SOLARIS8_makefile" ;;
  59. *-solaris* ) makefile="SOLARIS_makefile" ;;
  60. esac
  61. %{l_make} -f $makefile %{l_mflags} \
  62. CC="%{l_cc} %{l_cflags -O}"
  63. %install
  64. rm -rf $RPM_BUILD_ROOT
  65. %{l_shtool} mkdir -f -p -m 755 \
  66. $RPM_BUILD_ROOT%{l_prefix}/bin \
  67. $RPM_BUILD_ROOT%{l_prefix}/lib \
  68. $RPM_BUILD_ROOT%{l_prefix}/include \
  69. $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  70. $RPM_BUILD_ROOT%{l_prefix}/man/man3
  71. %{l_shtool} install -c -s -m 755 \
  72. spflooder spread sptuser spuser \
  73. $RPM_BUILD_ROOT%{l_prefix}/bin/
  74. %{l_shtool} install -c -m 755 \
  75. *.a $RPM_BUILD_ROOT%{l_prefix}/lib/
  76. %{l_shtool} install -c -m 644 \
  77. sp_*.h $RPM_BUILD_ROOT%{l_prefix}/include/
  78. %{l_shtool} install -c -m 644 \
  79. docs/*.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  80. %{l_shtool} install -c -m 644 \
  81. docs/*.3 $RPM_BUILD_ROOT%{l_prefix}/man/man3/
  82. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  83. %files -f files
  84. %clean
  85. rm -rf $RPM_BUILD_ROOT