magicpoint.spec 4.0 KB

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