hypermail.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. ##
  2. ## hypermail.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2005 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: hypermail
  27. Summary: Mail Web Archiver
  28. URL: http://www.hypermail.org/
  29. Vendor: Hypermail.org
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: PLUS
  33. Group: Mail
  34. License: Open Source
  35. Version: 2.1.8
  36. Release: 20050218
  37. # list of sources
  38. Source0: http://www.hypermail.org/dist/hypermail-%{version}.tar.gz
  39. Patch0: hypermail.patch
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040130, bison, gcc
  44. PreReq: OpenPKG, openpkg >= 20040130
  45. BuildPreReq: gdbm
  46. PreReq: gdbm
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. Hypermail is a program that takes a file of mail messages in
  51. UNIX mailbox format and generates a set of cross-referenced HTML
  52. documents. Each file that is created represents a separate message
  53. in the mail archive and contains links to other articles, so that
  54. the entire archive can be browsed in a number of ways by following
  55. links. Archives generated by Hypermail can be incrementally updated,
  56. and Hypermail is set by default to only update archives when changes
  57. are detected.
  58. %track
  59. prog hypermail = {
  60. version = %{version}
  61. url = http://www.hypermail.org/dist/
  62. regex = hypermail-(__VER__)\.tar\.gz
  63. }
  64. %prep
  65. %setup -q
  66. %patch -p0
  67. %build
  68. CC="%{l_cc}" \
  69. CFLAGS="%{l_cflags -O}" \
  70. LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}" \
  71. LIBS="%{l_fsl_libs}" \
  72. CPPFLAGS="%{l_cppflags}" \
  73. ./configure \
  74. --prefix=%{l_prefix} \
  75. --with-gdbm=%{l_prefix} \
  76. --with-cgidir=%{l_prefix}/var/hypermail/cgi-bin \
  77. --with-htmldir=%{l_prefix}/var/hypermail/htdocs \
  78. --disable-shared
  79. %{l_make} %{l_mflags}
  80. %install
  81. rm -rf $RPM_BUILD_ROOT
  82. %{l_shtool} mkdir -f -p -m 755 \
  83. $RPM_BUILD_ROOT%{l_prefix}/bin \
  84. $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  85. $RPM_BUILD_ROOT%{l_prefix}/man/man4 \
  86. $RPM_BUILD_ROOT%{l_prefix}/var/hypermail/htdocs/images
  87. %{l_shtool} install -c -m 755 \
  88. src/hypermail $RPM_BUILD_ROOT%{l_prefix}/bin/
  89. %{l_shtool} install -c -m 755 \
  90. docs/hypermail.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  91. %{l_shtool} install -c -m 755 \
  92. docs/hmrc.4 $RPM_BUILD_ROOT%{l_prefix}/man/man4/
  93. %{l_shtool} install -c -m 755 \
  94. docs/hr.yellow.png docs/hypermail.png \
  95. docs/hypermail.html docs/customizing.html \
  96. docs/hmrc.html $RPM_BUILD_ROOT%{l_prefix}/var/hypermail/htdocs/
  97. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  98. %files -f files
  99. %clean
  100. rm -rf $RPM_BUILD_ROOT