]>
Commit | Line | Data |
---|---|---|
e79253cb | 1 | Summary: An ASCII art GFX library |
2 | Name: aalib | |
3 | Version: 1.2 | |
4 | Release: 5 | |
5 | Copyright: LGPL | |
6 | Group: Libraries | |
7 | Source: ftp://ftp.ta.jcu.cz/pub/aa/%{name}-%{version}.tar.gz | |
8 | URL: http://horac.ta.jcu.cz/aa/aalib/ | |
9 | Buildroot: /tmp/%{name}-%{version}-root | |
10 | ||
11 | %description | |
12 | AA-lib is a low level gfx library just as many other libraries are. | |
13 | The main difference is that AA-lib does not require graphics device. In | |
14 | fact, there is no graphical output possible. AA-lib replaces those | |
15 | old-fashioned output methods with powerful ascii-art renderer. Now my | |
16 | linux boots with a nice penguin logo at secondary display (yes! Like | |
17 | Win95 does:) AA-lib API is designed to be similar to other graphics | |
18 | libraries. Learning a new API would be a piece of cake! | |
19 | ||
20 | %package devel | |
21 | Summary: header files libraries for aalib | |
22 | Group: Libraries | |
23 | Requires: aalib = %{version} | |
24 | Prereq: /sbin/install-info | |
25 | ||
26 | %description devel | |
27 | The header files for development of programs using the AAlib. | |
28 | ||
29 | %package static | |
30 | Summary: Static aalib library | |
31 | Group: Libraries | |
32 | Requires: aalib = %{version} | |
33 | Prereq: /sbin/install-info | |
34 | ||
35 | %description static | |
36 | Static aalib library. | |
37 | ||
38 | %package progs | |
39 | Summary: AA-lib tools | |
40 | Requires: aalib = %{version} | |
41 | Group: Utilities/Terminal | |
42 | ||
43 | %description progs | |
44 | AA-lib tools | |
45 | ||
46 | %prep | |
47 | %setup -q | |
48 | ||
49 | %build | |
50 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr | |
51 | make | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | make install prefix=$RPM_BUILD_ROOT/usr | |
56 | gzip -9fn $RPM_BUILD_ROOT/usr/info/*.info | |
57 | ||
58 | strip $RPM_BUILD_ROOT/usr/{bin/*,lib/lib*.so.*.*} | |
59 | ||
60 | %post -p /sbin/ldconfig | |
61 | %postun -p /sbin/ldconfig | |
62 | ||
63 | %post devel | |
64 | /sbin/install-info --info-dir=/usr/info /usr/info/aalib.info.gz | |
65 | ||
66 | %preun devel | |
67 | /sbin/install-info --delete --info-dir=/usr/info /usr/info/aalib.info.gz | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %attr(755, root, root) /usr/lib/lib*.so.*.* | |
74 | ||
75 | %files devel | |
76 | %defattr(644, root, root, 755) | |
77 | %doc README NEWS AUTHORS ANNOUNCE | |
78 | /usr/include/*.h | |
79 | /usr/lib/lib*.so | |
80 | /usr/info/*.info.gz | |
81 | ||
82 | %files static | |
83 | %attr(644, root, root) /usr/lib/lib*.a | |
84 | ||
85 | %files progs | |
86 | %attr(755, root, root) /usr/bin/* | |
87 | ||
88 | %changelog | |
89 |