mhonarc.spec 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ##
  2. ## mhonarc.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: mhonarc
  27. Summary: Mail to HTML Conversion Tool
  28. URL: http://www.mhonarc.org/
  29. Vendor: Earl Hood
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: PLUS
  33. Group: Converter
  34. License: GPL
  35. Version: 2.6.9
  36. Release: 20040508
  37. # list of sources
  38. Source0: http://www.mhonarc.org/tar/MHonArc-%{version}.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130, perl
  43. PreReq: OpenPKG, openpkg >= 20040130, perl
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. MHonArc is a Perl mail-to-HTML converter. MHonArc provides HTML mail
  48. archiving with index, mail thread linking, etc; plus other capabilities
  49. including support for MIME and powerful user customization features.
  50. %track
  51. prog mhonarc = {
  52. version = %{version}
  53. url = http://www.mhonarc.org/tar/
  54. regex = MHonArc-(__VER__).tar.gz
  55. }
  56. %prep
  57. %setup -q -n MHonArc-%{version}
  58. %build
  59. %install
  60. rm -rf $RPM_BUILD_ROOT
  61. # perform standard installation procedure
  62. %{l_prefix}/bin/perl install.me \
  63. -batch \
  64. -prefix $RPM_BUILD_ROOT%{l_prefix} \
  65. -binpath $RPM_BUILD_ROOT%{l_prefix}/bin \
  66. -docpath $RPM_BUILD_ROOT%{l_prefix}/share/mhonarc \
  67. -libpath $RPM_BUILD_ROOT%{l_prefix}/libexec/mhonarc \
  68. -manpath $RPM_BUILD_ROOT%{l_prefix}/man \
  69. -perl %{l_prefix}/bin/perl
  70. # post-fix paths in installation files
  71. for prog in mhonarc mha-dbedit mha-dbrecover mha-decode; do
  72. %{l_shtool} subst \
  73. -e "s;$RPM_BUILD_ROOT%{l_prefix}/libexec;%{l_prefix}/libexec;g" \
  74. $RPM_BUILD_ROOT%{l_prefix}/bin/$prog
  75. done
  76. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  77. %files -f files
  78. %clean
  79. rm -rf $RPM_BUILD_ROOT