kimwitu.spec 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ##
  2. ## kimwitu.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 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 version
  26. %define V_here 4.6.1
  27. %define V_real 4_6_1
  28. # package information
  29. Name: kimwitu
  30. Summary: Term Processor
  31. URL: http://fmt.cs.utwente.nl/kimwitu/
  32. Vendor: Axel Belinfante
  33. Packager: The OpenPKG Project
  34. Distribution: OpenPKG [PLUS]
  35. Group: Converter
  36. License: GPL
  37. Version: %{V_here}
  38. Release: 20020715
  39. # list of sources
  40. Source0: ftp://ftp.cs.utwente.nl/pub/src/kimwitu/kc-distr.V%{V_real}.tar.gz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20020206
  45. PreReq: OpenPKG, openpkg >= 20020206
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. Kimwitu is a system that supports the construction of programs that
  50. use trees or terms as their main data structure. It is a `meta-tool'
  51. in the development process of tools. Its input is an abstract
  52. description of terms, annotated with implementation directives,
  53. plus a definition of functions on these terms. The output consists
  54. of a number of C-files that contain data-structure definitions for
  55. the terms, a number of standard functions on those terms, and a
  56. translation (in C) of the function definitions in the input (eg.
  57. term rewriting). The standard functions can be used to create terms,
  58. compare them for equality, read and write them on files in various
  59. formats and do manipulations like list concatenation.
  60. %prep
  61. %setup -q -n kc-distr.V%{V_real}
  62. %build
  63. ( cd src
  64. %{l_make} %{l_mflags -O} \
  65. CC="%{l_cc}" \
  66. CFLAGS="%{l_cflags -O}" )
  67. %install
  68. rm -rf $RPM_BUILD_ROOT
  69. %{l_shtool} mkdir -f -p -m 755 \
  70. $RPM_BUILD_ROOT%{l_prefix}/bin \
  71. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  72. %{l_shtool} install -c -s -m 755 \
  73. src/Gen/kc $RPM_BUILD_ROOT%{l_prefix}/bin/
  74. %{l_shtool} install -c -m 644 \
  75. man/kc.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  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