figlet.spec 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. ##
  2. ## figlet.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 The OpenPKG Project <http://www.openpkg.org/>
  5. ## Copyright (c) 2000-2001 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. %define V_orig 22
  26. %define V_here 2.2
  27. # package information
  28. Name: figlet
  29. Summary: ASCII Figure Fonts
  30. URL: http://st-www.cs.uiuc.edu/~chai/figlet.html
  31. Vendor: John Cowan
  32. Packager: The OpenPKG Project
  33. Distribution: OpenPKG [REL]
  34. Group: Text
  35. License: BSD
  36. Version: %{V_here}
  37. Release: 20011201
  38. # list of sources
  39. Source0: ftp://ftp.plig.org/pub/figlet/program/unix/figlet%{V_orig}.tar.gz
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20011227
  44. PreReq: OpenPKG, openpkg >= 20011227
  45. AutoReq: no
  46. AutoReqProv: no
  47. %description
  48. FIGlet is a nifty program for rendering font-based banners with
  49. plain ASCII text character combinations.
  50. %prep
  51. %setup0 -q -n figlet%{V_orig}
  52. %build
  53. %{l_make} %{l_mflags} \
  54. CC="%{l_cc}" \
  55. CFLAGS="%{l_cflags -O}" \
  56. DEFAULTFONTDIR="%{l_prefix}/share/figlet" \
  57. %install
  58. rm -rf $RPM_BUILD_ROOT
  59. %{l_shtool} mkdir -f -p -m 755 \
  60. $RPM_BUILD_ROOT%{l_prefix}/bin \
  61. $RPM_BUILD_ROOT%{l_prefix}/man/man6 \
  62. $RPM_BUILD_ROOT%{l_prefix}/share/figlet
  63. %{l_shtool} install -c -s -m 755 \
  64. figlet chkfont $RPM_BUILD_ROOT%{l_prefix}/bin/
  65. %{l_shtool} install -c -m 755 \
  66. figlist showfigfonts $RPM_BUILD_ROOT%{l_prefix}/bin/
  67. %{l_shtool} install -c -m 644 \
  68. figlet.6 $RPM_BUILD_ROOT%{l_prefix}/man/man6/
  69. %{l_shtool} install -c -m 644 \
  70. fonts/*.flf fonts/*.flc $RPM_BUILD_ROOT%{l_prefix}/share/figlet/
  71. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  72. %files -f files
  73. %clean
  74. rm -rf $RPM_BUILD_ROOT