mathomatic.spec 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ##
  2. ## mathomatic.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: mathomatic
  27. Summary: Computer Algebra System
  28. URL: http://www.mathomatic.com/
  29. Vendor: George Gesslein
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: EVAL
  33. Group: Algorithm
  34. License: Open Source
  35. Version: 11.2e
  36. Release: 20040705
  37. # list of sources
  38. Source0: http://www.panix.com/~gesslein/mathomatic-%{version}.tgz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20040130
  43. PreReq: OpenPKG, openpkg >= 20040130
  44. BuildPreReq: readline, ncurses
  45. PreReq: readline, ncurses
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. Mathomatic is is a highly portable, general purpose Computer Algebra
  50. System (CAS).
  51. %track
  52. prog mathomatic = {
  53. version = %{version}
  54. url = http://www.lightlink.com/computer/math/
  55. regex = mathomatic-(__VER__)\.tar\.gz
  56. }
  57. %prep
  58. %setup -q -n am
  59. %build
  60. %{l_make} %{l_mflags -O} \
  61. CC="%{l_cc}" \
  62. CFLAGS="%{l_cflags -O} %{l_cppflags} -DUNIX -DREADLINE" \
  63. LDFLAGS="%{l_ldflags}" \
  64. LIBS="-lreadline -lcurses -lm"
  65. %install
  66. rm -rf $RPM_BUILD_ROOT
  67. %{l_shtool} mkdir -f -p -m 755 \
  68. $RPM_BUILD_ROOT%{l_prefix}/bin \
  69. $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  70. $RPM_BUILD_ROOT%{l_prefix}/share/mathomatic
  71. %{l_shtool} install -c -s -m 755 \
  72. mathomatic $RPM_BUILD_ROOT%{l_prefix}/bin/
  73. %{l_shtool} install -c -m 644 \
  74. mathomatic.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  75. %{l_shtool} install -c -m 644 \
  76. manual.htm $RPM_BUILD_ROOT%{l_prefix}/share/mathomatic/manual.html
  77. %{l_shtool} install -c -m 644 \
  78. am.htm $RPM_BUILD_ROOT%{l_prefix}/share/mathomatic/am.html
  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