figlet/figlet.spec

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
parent 511
cd3bc1f98306
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

michael@511 1 ##
michael@511 2 ## figlet.spec -- OpenPKG RPM Package Specification
michael@511 3 ## Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
michael@511 4 ##
michael@511 5 ## Permission to use, copy, modify, and distribute this software for
michael@511 6 ## any purpose with or without fee is hereby granted, provided that
michael@511 7 ## the above copyright notice and this permission notice appear in all
michael@511 8 ## copies.
michael@511 9 ##
michael@511 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@511 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@511 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@511 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@511 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@511 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@511 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@511 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@511 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@511 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@511 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@511 21 ## SUCH DAMAGE.
michael@511 22 ##
michael@511 23
michael@511 24 # package information
michael@511 25 Name: figlet
michael@511 26 Summary: ASCII Figure Fonts
michael@511 27 URL: http://www.figlet.org/
michael@511 28 Vendor: John Cowan
michael@511 29 Packager: OpenPKG Foundation e.V.
michael@511 30 Distribution: OpenPKG Community
michael@511 31 Class: BASE
michael@511 32 Group: Typesetting
michael@511 33 License: BSD
michael@511 34 Version: 2.2.5
michael@512 35 Release: 20120800
michael@511 36
michael@511 37 # list of sources
michael@511 38 Source0: ftp://ftp.figlet.org/pub/figlet/program/unix/figlet-%{version}.tar.gz
michael@512 39 Patch0: figlet.patch
michael@511 40
michael@511 41 # build information
michael@511 42 BuildPreReq: OpenPKG, openpkg >= 20100101
michael@511 43 PreReq: OpenPKG, openpkg >= 20100101
michael@511 44
michael@511 45 %description
michael@511 46 FIGlet is a nifty program for rendering font-based banners with
michael@511 47 plain ASCII text character combinations.
michael@511 48
michael@511 49 %track
michael@511 50 prog figlet = {
michael@511 51 version = %{version}
michael@511 52 url = ftp://ftp.plig.org/pub/figlet/program/unix/
michael@511 53 regex = figlet-(__VER__)\.tar\.gz
michael@511 54 }
michael@511 55
michael@511 56 %prep
michael@511 57 %setup -q
michael@512 58 %patch -p0
michael@511 59
michael@511 60 %build
michael@511 61 %{l_make} %{l_mflags} \
michael@511 62 CC="%{l_cc}" \
michael@511 63 CFLAGS="%{l_cflags -O}" \
michael@511 64 DEFAULTFONTDIR="%{l_prefix}/share/figlet"
michael@511 65
michael@511 66 %install
michael@511 67 %{l_shtool} mkdir -f -p -m 755 \
michael@511 68 $RPM_BUILD_ROOT%{l_prefix}/bin \
michael@511 69 $RPM_BUILD_ROOT%{l_prefix}/man/man6 \
michael@511 70 $RPM_BUILD_ROOT%{l_prefix}/share/figlet
michael@511 71 %{l_shtool} install -c -s -m 755 \
michael@511 72 figlet chkfont $RPM_BUILD_ROOT%{l_prefix}/bin/
michael@511 73 %{l_shtool} install -c -m 755 \
michael@511 74 figlist showfigfonts $RPM_BUILD_ROOT%{l_prefix}/bin/
michael@511 75 %{l_shtool} install -c -m 644 \
michael@511 76 figlet.6 $RPM_BUILD_ROOT%{l_prefix}/man/man6/
michael@511 77 %{l_shtool} install -c -m 644 \
michael@511 78 fonts/*.flf fonts/*.flc $RPM_BUILD_ROOT%{l_prefix}/share/figlet/
michael@511 79 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@511 80
michael@511 81 %files -f files
michael@511 82
michael@511 83 %clean
michael@511 84

mercurial