zoem.spec 3.2 KB

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