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