magicpoint.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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: ??
  30. Packager: rse@openpkg.org
  31. Distribution: OpenPKG [DEV]
  32. Group: Graphics
  33. License: GPL
  34. Version: 1.09a
  35. Release: 20011201
  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 >= 20011227, flex, bison, make
  43. PreReq: OpenPKG, openpkg >= 20011227
  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. xmkmf -a
  60. %{l_make} %{l_mflags}
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. %{l_shtool} mkdir -f -p -m 755 \
  64. $RPM_BUILD_ROOT%{l_prefix}/bin \
  65. $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  66. $RPM_BUILD_ROOT%{l_prefix}/share/mgp/fonts \
  67. $RPM_BUILD_ROOT%{l_prefix}/share/mgp/image
  68. %{l_shtool} install -c -s -m 755 \
  69. mgp $RPM_BUILD_ROOT%{l_prefix}/bin/
  70. %{l_shtool} install -c -s -m 755 \
  71. mgp2ps $RPM_BUILD_ROOT%{l_prefix}/bin/
  72. %{l_shtool} install -c -m 755 \
  73. mgpembed.pl $RPM_BUILD_ROOT%{l_prefix}/bin/mgpembed
  74. %{l_shtool} install -c -m 755 \
  75. contrib/mgpnet $RPM_BUILD_ROOT%{l_prefix}/bin/
  76. %{l_shtool} install -c -s -m 755 \
  77. contrib/xwintoppm/xwintoppm $RPM_BUILD_ROOT%{l_prefix}/bin/
  78. %{l_shtool} install -c -m 644 \
  79. sample/default.mgp $RPM_BUILD_ROOT%{l_prefix}/share/mgp/
  80. %{l_shtool} install -c -m 644 \
  81. sample/mgp[1-3].jpg $RPM_BUILD_ROOT%{l_prefix}/share/mgp/image/
  82. %{l_shtool} install -c -m 644 \
  83. ttf/typewriter.ttf ttf/standard.ttf ttf/thick.ttf \
  84. $RPM_BUILD_ROOT%{l_prefix}/share/mgp/fonts/
  85. %{l_shtool} install -c -m 644 \
  86. USAGE SYNTAX $RPM_BUILD_ROOT%{l_prefix}/share/mgp/
  87. %{l_shtool} install -c -m 644 \
  88. mgp.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/mgp.1
  89. %{l_shtool} install -c -m 644 \
  90. mgp2ps.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/mgp2ps.1
  91. %{l_shtool} install -c -m 644 \
  92. mgpembed.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/mgpembed.1
  93. %{l_shtool} install -c -m 644 \
  94. contrib/mgpnet.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/mgpnet.1
  95. %{l_shtool} install -c -m 644 \
  96. contrib/xwintoppm/xwintoppm.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/xwintoppm.1
  97. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  98. %files -f files
  99. %clean
  100. # rm -rf $RPM_BUILD_ROOT