zoem.spec 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. ##
  2. ## zoem.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package version
  25. %define V_major 07
  26. %define V_minor 313
  27. # package information
  28. Name: zoem
  29. Summary: TeX-style Macro Processor
  30. URL: http://micans.org/zoem/
  31. Vendor: Stijn van Dongen
  32. Packager: OpenPKG Foundation e.V.
  33. Distribution: OpenPKG Community
  34. Class: PLUS
  35. Group: MacroProcessor
  36. License: GPL
  37. Version: %{V_major}.%{V_minor}
  38. Release: 20071112
  39. # list of sources
  40. Source0: http://micans.org/zoem/src/zoem-%{V_major}-%{V_minor}.tar.gz
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, make
  45. PreReq: OpenPKG, openpkg >= 20040130
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. Zoem is an interpretive macro language with substantial facilities
  50. for programming. It supports a two-stage process, consisting of
  51. macro interpretation (featuring inside-out evaluation if needed),
  52. followed by a simple and powerful application of stream character
  53. filtering. Its syntax is reminiscent of TeX's, it has dictionary
  54. stacks like PostScript, and various resemblances to m4 and info. It
  55. has interfaces to modules making life easy - counters, references,
  56. arithmetic, multi-dimensional data storage, input/output operations,
  57. and regular expressions.
  58. %track
  59. prog zoem = {
  60. version = %{V_major}-%{V_minor}
  61. url = http://micans.org/zoem/src/
  62. regex = zoem-(__VER__)\.tar\.gz
  63. }
  64. %prep
  65. %setup -q -n zoem-%{V_major}-%{V_minor}
  66. %build
  67. CC="%{l_cc}" \
  68. CFLAGS="%{l_cflags -O}" \
  69. CPPFLAGS="%{l_cppflags}" \
  70. LDFLAGS="%{l_ldflags}" \
  71. ./configure \
  72. --prefix=%{l_prefix}
  73. %{l_make} %{l_mflags -O}
  74. %install
  75. rm -rf $RPM_BUILD_ROOT
  76. %{l_make} %{l_mflags} install \
  77. AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT docdir=%{l_prefix}/share/zoem"
  78. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  79. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  80. %{l_files_std} \
  81. '%doc %{l_prefix}/share/zoem/doc/*'
  82. %files -f files
  83. %clean
  84. rm -rf $RPM_BUILD_ROOT