magicpoint.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ##
  2. ## magicpoint.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2002 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 information
  26. Name: magicpoint
  27. Summary: Slideset Presentation Tool
  28. URL: http://www.mew.org/mgp/
  29. Vendor: WIDE Project
  30. Packager: rse@openpkg.org
  31. Distribution: OpenPKG [EVAL]
  32. Group: Graphics
  33. License: GPL
  34. Version: 1.09a
  35. Release: 20020810
  36. # list of sources
  37. Source0: ftp://ftp.mew.org/pub/mgp/magicpoint-%{version}.tar.gz
  38. Source1: ftp://ftp.mew.org/pub/mgp/ttf.tar.gz
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20020206, X11, flex, bison, make
  43. PreReq: OpenPKG, openpkg >= 20020206, X11
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. Magicpoint is an X11-based presentation tool which renders
  48. slides from a markup language based description.
  49. %prep
  50. %setup -q
  51. %setup1 -q -T -D -a 1
  52. %build
  53. CC="%{l_cc}" \
  54. CFLAGS="%{l_cflags -O}" \
  55. ./configure \
  56. --prefix=%{l_prefix} \
  57. --disable-vflib \
  58. --disable-nls \
  59. --with-x \
  60. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  61. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir`
  62. PATH="`%{l_prefix}/etc/rc --query x11_bindir`:$PATH"
  63. xmkmf -a
  64. %{l_make} %{l_mflags}
  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/mgp/fonts \
  71. $RPM_BUILD_ROOT%{l_prefix}/share/mgp/image
  72. %{l_shtool} install -c -s -m 755 \
  73. mgp $RPM_BUILD_ROOT%{l_prefix}/bin/
  74. %{l_shtool} install -c -s -m 755 \
  75. mgp2ps $RPM_BUILD_ROOT%{l_prefix}/bin/
  76. %{l_shtool} install -c -m 755 \
  77. mgpembed.pl $RPM_BUILD_ROOT%{l_prefix}/bin/mgpembed
  78. %{l_shtool} install -c -m 755 \
  79. contrib/mgpnet $RPM_BUILD_ROOT%{l_prefix}/bin/
  80. %{l_shtool} install -c -s -m 755 \
  81. contrib/xwintoppm/xwintoppm $RPM_BUILD_ROOT%{l_prefix}/bin/
  82. %{l_shtool} install -c -m 644 \
  83. sample/default.mgp $RPM_BUILD_ROOT%{l_prefix}/share/mgp/
  84. %{l_shtool} install -c -m 644 \
  85. sample/mgp[1-3].jpg $RPM_BUILD_ROOT%{l_prefix}/share/mgp/image/
  86. %{l_shtool} install -c -m 644 \
  87. ttf/typewriter.ttf ttf/standard.ttf ttf/thick.ttf \
  88. $RPM_BUILD_ROOT%{l_prefix}/share/mgp/fonts/
  89. %{l_shtool} install -c -m 644 \
  90. USAGE SYNTAX $RPM_BUILD_ROOT%{l_prefix}/share/mgp/
  91. %{l_shtool} install -c -m 644 \
  92. mgp.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/mgp.1
  93. %{l_shtool} install -c -m 644 \
  94. mgp2ps.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/mgp2ps.1
  95. %{l_shtool} install -c -m 644 \
  96. mgpembed.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/mgpembed.1
  97. %{l_shtool} install -c -m 644 \
  98. contrib/mgpnet.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/mgpnet.1
  99. %{l_shtool} install -c -m 644 \
  100. contrib/xwintoppm/xwintoppm.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/xwintoppm.1
  101. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  102. %files -f files
  103. %clean
  104. # rm -rf $RPM_BUILD_ROOT