figlet.spec 2.8 KB

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