libevent.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. ##
  2. ## libevent.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.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: libevent
  27. Summary: Asynchronous Event Notification Library
  28. URL: http://monkey.org/~provos/libevent/
  29. Vendor: Dug Song
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: PLUS
  33. Group: Network
  34. License: BSD License
  35. Version: 0.8a
  36. Release: 20040613
  37. # list of sources
  38. Source0: http://monkey.org/~provos/libevent-%{version}.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, make
  43. PreReq: OpenPKG, openpkg >= 20040130
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. The libevent API provides a mechanism to execute a callback function
  48. when a specific event occurs on a file descriptor or after a timeout
  49. has been reached.
  50. %track
  51. prog libevent = {
  52. version = %{version}
  53. url = http://monkey.org/~provos/libevent/
  54. regex = libevent-(__VER__)\.tar\.gz
  55. }
  56. %prep
  57. %setup -q
  58. %build
  59. %{l_shtool} subst \
  60. -e 's;\(ACLOCAL\)=.*;\1=true;' \
  61. -e 's;\(AUTOCONF\)=.*;\1=true;' \
  62. -e 's;\(AUTOMAKE\)=.*;\1=true;' \
  63. -e 's;\(AUTOHEADER\)=.*;\1=true;' \
  64. -e 's;\(MAKEINFO\)=.*;\1=true;' \
  65. -e 's;\(AMTAR\)=.*;\1=true;' \
  66. configure
  67. CC="%{l_cc}" \
  68. CFLAGS="%{l_cflags} -g" \
  69. CPPFLAGS="%{l_cppflags}" \
  70. LDFLAGS="%{l_ldflags}" \
  71. ./configure \
  72. --prefix=%{l_prefix} \
  73. --mandir=%{l_prefix}/man
  74. %{l_make} %{l_mflags -O} SUBDIRS=.
  75. %install
  76. rm -rf $RPM_BUILD_ROOT
  77. %{l_shtool} mkdir -p $RPM_BUILD_ROOT%{l_prefix}/man/man3
  78. %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT SUBDIRS=.
  79. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  80. %files -f files
  81. %clean
  82. rm -rf $RPM_BUILD_ROOT