]>
Commit | Line | Data |
---|---|---|
e79253cb | 1 | Summary: An ASCII art GFX library |
2 | Name: aalib | |
3 | Version: 1.2 | |
3893b9be | 4 | Release: 6 |
e79253cb | 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 | |
3893b9be | 32 | Requires: %{name}-devel = %{version} |
e79253cb | 33 | |
34 | %description static | |
35 | Static aalib library. | |
36 | ||
37 | %package progs | |
38 | Summary: AA-lib tools | |
3893b9be | 39 | Requires: %{name} = %{version} |
e79253cb | 40 | Group: Utilities/Terminal |
41 | ||
42 | %description progs | |
43 | AA-lib tools | |
44 | ||
45 | %prep | |
46 | %setup -q | |
47 | ||
48 | %build | |
49 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr | |
50 | make | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | make install prefix=$RPM_BUILD_ROOT/usr | |
55 | gzip -9fn $RPM_BUILD_ROOT/usr/info/*.info | |
56 | ||
57 | strip $RPM_BUILD_ROOT/usr/{bin/*,lib/lib*.so.*.*} | |
58 | ||
59 | %post -p /sbin/ldconfig | |
60 | %postun -p /sbin/ldconfig | |
61 | ||
62 | %post devel | |
63 | /sbin/install-info --info-dir=/usr/info /usr/info/aalib.info.gz | |
64 | ||
65 | %preun devel | |
66 | /sbin/install-info --delete --info-dir=/usr/info /usr/info/aalib.info.gz | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %attr(755, root, root) /usr/lib/lib*.so.*.* | |
73 | ||
74 | %files devel | |
75 | %defattr(644, root, root, 755) | |
76 | %doc README NEWS AUTHORS ANNOUNCE | |
77 | /usr/include/*.h | |
78 | /usr/lib/lib*.so | |
79 | /usr/info/*.info.gz | |
80 | ||
81 | %files static | |
82 | %attr(644, root, root) /usr/lib/lib*.a | |
83 | ||
84 | %files progs | |
85 | %attr(755, root, root) /usr/bin/* | |
86 | ||
87 | %changelog | |
3893b9be | 88 |