magicpoint.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ##
  2. ## magicpoint.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2003 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2003 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2003 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: The OpenPKG Project
  31. Distribution: OpenPKG [EVAL]
  32. Group: Graphics
  33. License: GPL
  34. Version: 1.09a
  35. Release: 20030519
  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. Source2: default.mgp
  40. Patch0: magicpoint.patch
  41. # build information
  42. Prefix: %{l_prefix}
  43. BuildRoot: %{l_buildroot}
  44. BuildPreReq: OpenPKG, openpkg >= 20020206, X11, flex, bison, make, gcc
  45. PreReq: OpenPKG, openpkg >= 20020206, X11
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. Magicpoint is an X11-based presentation tool which renders
  50. slides from a markup language based description.
  51. %prep
  52. %setup0 -q
  53. %setup1 -q -T -D -a 1
  54. %patch0 -p0
  55. %build
  56. # patch paths to data directory
  57. %{l_shtool} subst \
  58. -e 's;/usr/X11R6/lib/X11/mgp;%{l_prefix}/share/mgp;g' \
  59. USAGE
  60. %{l_shtool} subst \
  61. -e 's;\$(LIBDIR)/mgp;%{l_prefix}/share/mgp;g' \
  62. Imakefile.in
  63. CC="%{l_cc}" \
  64. CFLAGS="%{l_cflags -O}" \
  65. ./configure \
  66. --prefix=%{l_prefix} \
  67. --disable-vflib \
  68. --disable-nls \
  69. --with-x \
  70. --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
  71. --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir`
  72. PATH="`%{l_prefix}/etc/rc --query x11_bindir`:$PATH"
  73. x11config=`%{l_prefix}/etc/rc --query x11_libdir`/X11/config
  74. imake -DHasGcc2 -UHasSunC -DUseInstalled -I$x11config
  75. %{l_make} Makefiles IMAKE_DEFINES="-DHasGcc2 -UHasSunC" MAKE=%{l_make}
  76. %{l_make} includes MAKE=%{l_make}
  77. %{l_make} %{l_mflags} MAKE=%{l_make}
  78. %install
  79. rm -rf $RPM_BUILD_ROOT
  80. %{l_shtool} mkdir -f -p -m 755 \
  81. $RPM_BUILD_ROOT%{l_prefix}/bin \
  82. $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  83. $RPM_BUILD_ROOT%{l_prefix}/share/mgp/fonts \
  84. $RPM_BUILD_ROOT%{l_prefix}/share/mgp/image
  85. %{l_shtool} install -c -s -m 755 \
  86. mgp $RPM_BUILD_ROOT%{l_prefix}/bin/
  87. %{l_shtool} install -c -s -m 755 \
  88. mgp2ps $RPM_BUILD_ROOT%{l_prefix}/bin/
  89. %{l_shtool} install -c -m 755 \
  90. mgpembed.pl $RPM_BUILD_ROOT%{l_prefix}/bin/mgpembed
  91. %{l_shtool} install -c -m 755 \
  92. contrib/mgpnet $RPM_BUILD_ROOT%{l_prefix}/bin/
  93. %{l_shtool} install -c -s -m 755 \
  94. contrib/xwintoppm/xwintoppm $RPM_BUILD_ROOT%{l_prefix}/bin/
  95. %{l_shtool} install -c -m 644 \
  96. %{SOURCE default.mgp} $RPM_BUILD_ROOT%{l_prefix}/share/mgp/
  97. %{l_shtool} install -c -m 644 \
  98. sample/mgp[1-3].jpg $RPM_BUILD_ROOT%{l_prefix}/share/mgp/image/
  99. %{l_shtool} install -c -m 644 \
  100. ttf/typewriter.ttf ttf/standard.ttf ttf/thick.ttf \
  101. $RPM_BUILD_ROOT%{l_prefix}/share/mgp/fonts/
  102. %{l_shtool} install -c -m 644 \
  103. USAGE SYNTAX $RPM_BUILD_ROOT%{l_prefix}/share/mgp/
  104. %{l_shtool} install -c -m 644 \
  105. mgp.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/mgp.1
  106. %{l_shtool} install -c -m 644 \
  107. mgp2ps.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/mgp2ps.1
  108. %{l_shtool} install -c -m 644 \
  109. mgpembed.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/mgpembed.1
  110. %{l_shtool} install -c -m 644 \
  111. contrib/mgpnet.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/mgpnet.1
  112. %{l_shtool} install -c -m 644 \
  113. contrib/xwintoppm/xwintoppm.man $RPM_BUILD_ROOT%{l_prefix}/man/man1/xwintoppm.1
  114. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  115. %files -f files
  116. %clean
  117. rm -rf $RPM_BUILD_ROOT