]>
Commit | Line | Data |
---|---|---|
7c11a1cc | 1 | Summary: Graphics library that outputs text instead of pixels |
7a9c9c6a | 2 | Summary(pl.UTF-8): Biblioteka graficzna wyświetlająca tekst zamiast pikseli |
7c11a1cc | 3 | Name: libcaca |
7f15b6b0 | 4 | Version: 0.99 |
9ac56452 JB |
5 | %define bver beta12 |
6 | Release: 0.%{bver}.1 | |
7f15b6b0 | 7 | License: WTFPL |
7c11a1cc | 8 | Group: Libraries |
7f15b6b0 | 9 | Source0: http://libcaca.zoy.org/files/%{name}-%{version}.%{bver}.tar.gz |
9ac56452 | 10 | # Source0-md5: fde7e63c592314ff737d125bdfe522f3 |
dd2da18c | 11 | URL: http://libcaca.zoy.org/ |
7f15b6b0 | 12 | BuildRequires: OpenGL-devel |
193b2ceb JB |
13 | BuildRequires: autoconf >= 2.50 |
14 | BuildRequires: automake | |
1ab8ffdb | 15 | BuildRequires: doxygen |
7f15b6b0 | 16 | BuildRequires: freeglut-devel >= 2.0.0 |
f307cfb4 | 17 | BuildRequires: imlib2-devel |
7f15b6b0 | 18 | BuildRequires: libstdc++-devel |
193b2ceb | 19 | BuildRequires: libtool |
caeb018d | 20 | BuildRequires: slang-devel >= 2.0.0 |
1ab8ffdb | 21 | # shouldn't these be in doxygen requirements? |
22 | BuildRequires: tetex-fonts-jknappen | |
23 | BuildRequires: tetex-makeindex | |
0ec9276e | 24 | BuildRequires: tetex-metafont |
7f15b6b0 | 25 | BuildRequires: xorg-lib-libX11-devel |
7c11a1cc | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
193b2ceb JB |
28 | %define specflags -fomit-frame-pointer |
29 | ||
7c11a1cc | 30 | %description |
31 | The libcaca library is a graphics library that outputs text instead of | |
32 | pixels, so that it can work on older video cards or text terminals. It | |
33 | is not unlike the famous AAlib library. | |
34 | ||
35 | The differences with AAlib are the following: | |
7c11a1cc | 36 | - 16 available colours for character output (256 colour pairs) |
37 | - dithering of colour images | |
38 | - basic sprite primitives | |
39 | ||
40 | But libcaca also has the following limitations: | |
7c11a1cc | 41 | - no support for brightness, contrast, gamma |
42 | - unefficient character-choosing algorithms | |
43 | - no raw keyboard support | |
44 | ||
cd7f5427 | 45 | %description -l pl.UTF-8 |
7f15b6b0 | 46 | Biblioteka libcaca to biblioteka graficzna wyświetlająca tekst |
47 | zamiast pikseli, dzięki czemu może działać na starszych kartach | |
48 | graficznych oraz terminalach tekstowych. Pod tym względem jest | |
49 | podobna do słynnej biblioteki AAlib. | |
193b2ceb | 50 | |
cd7f5427 JR |
51 | Różnice w stosunku do AAlib są następujące: |
52 | - 16 dostępnych kolorów dla znaków (256 par kolorów) | |
53 | - dithering kolorowych obrazów | |
54 | - proste kształty duszków (sprites) | |
193b2ceb | 55 | |
cd7f5427 JR |
56 | Ale libcaca ma także następujące ograniczenia: |
57 | - brak obsługi jasności, kontrastu, korekcji gamma | |
58 | - mało wydajne algorytmy wyboru znaków | |
59 | - brak obsługi klawiatury w trybie surowym | |
193b2ceb | 60 | |
7f15b6b0 | 61 | %package plugin-GL |
62 | Summary: GL plugin for libcaca library | |
63 | Summary(pl.UTF-8): Wtyczka GL dla biblioteki libcaca | |
64 | Group: Libraries | |
65 | Requires: %{name} = %{version}-%{release} | |
66 | Requires: freeglut >= 2.0.0 | |
67 | ||
68 | %description plugin-GL | |
69 | GL plugin for libcaca library. | |
70 | ||
71 | %description plugin-GL -l pl.UTF-8 | |
72 | Wtyczka GL dla biblioteki libcaca. | |
73 | ||
74 | %package plugin-X11 | |
75 | Summary: X11 plugin for libcaca library | |
76 | Summary(pl.UTF-8): Wtyczka X11 dla biblioteki libcaca | |
77 | Group: Libraries | |
78 | Requires: %{name} = %{version}-%{release} | |
79 | ||
80 | %description plugin-X11 | |
81 | X11 plugin for libcaca library. | |
82 | ||
83 | %description plugin-X11 -l pl.UTF-8 | |
84 | Wtyczka X11 dla biblioteki libcaca. | |
85 | ||
86 | %package img | |
87 | Summary: libcaca-based image viewer and converter | |
88 | Summary(pl.UTF-8): Przeglądarka i konwerter obrazków oparte na libcaca | |
89 | Group: Applications/Graphics | |
90 | Requires: %{name} = %{version}-%{release} | |
91 | ||
92 | %description img | |
93 | libcaca-based image viewer and converter. They use imlib2 to load | |
94 | images. | |
95 | ||
96 | %description img -l pl.UTF-8 | |
97 | Przeglądarka i konwerter obrazków oparte na libcaca. Do wczytywania | |
98 | obrazków używają biblioteki imlib2. | |
99 | ||
193b2ceb JB |
100 | %package devel |
101 | Summary: Header files for libcaca library | |
7a9c9c6a | 102 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libcaca |
193b2ceb | 103 | Group: Development/Libraries |
7f15b6b0 | 104 | Requires: %{name} = %{version}-%{release} |
105 | Requires: slang-devel >= 2.0.0 | |
193b2ceb JB |
106 | |
107 | %description devel | |
108 | Header files for libcaca library. | |
109 | ||
cd7f5427 JR |
110 | %description devel -l pl.UTF-8 |
111 | Pliki nagłówkowe biblioteki libcaca. | |
193b2ceb JB |
112 | |
113 | %package static | |
114 | Summary: Static libcaca library | |
7a9c9c6a | 115 | Summary(pl.UTF-8): Statyczna biblioteka libcaca |
193b2ceb JB |
116 | Group: Development/Libraries |
117 | Requires: %{name}-devel = %{version}-%{release} | |
118 | ||
119 | %description static | |
120 | Static libcaca library. | |
121 | ||
cd7f5427 | 122 | %description static -l pl.UTF-8 |
193b2ceb JB |
123 | Statyczna biblioteka libcaca. |
124 | ||
7f15b6b0 | 125 | %package c++ |
126 | Summary: C++ bindings for libcaca | |
127 | Summary(pl.UTF-8): Wiązania C++ do libcaca | |
128 | Group: Libraries | |
129 | Requires: %{name} = %{version}-%{release} | |
130 | ||
131 | %description c++ | |
132 | C++ bindings for libcaca. | |
133 | ||
134 | %description c++ -l pl.UTF-8 | |
135 | Wiązania C++ do libcaca. | |
136 | ||
137 | %package c++-devel | |
138 | Summary: C++ bindings for libcaca - header files | |
139 | Summary(pl.UTF-8): Wiązania C++ do libcaca - pliki nagłówkowe | |
140 | Group: Development/Libraries | |
141 | Requires: %{name}-c++ = %{version}-%{release} | |
142 | Requires: %{name}-devel = %{version}-%{release} | |
143 | Requires: libstdc++-devel | |
144 | ||
145 | %description c++-devel | |
146 | C++ bindings for libcaca - header files. | |
147 | ||
148 | %description c++-devel -l pl.UTF-8 | |
149 | Wiązania C++ do libcaca - pliki nagłówkowe. | |
150 | ||
151 | %package c++-static | |
152 | Summary: C++ bindings for libcaca - static libraries | |
153 | Summary(pl.UTF-8): Wiązania C++ do libcaca - biblioteki statyczne | |
154 | Group: Development/Libraries | |
155 | Requires: %{name}-c++-devel = %{version}-%{release} | |
156 | ||
157 | %description c++-static | |
158 | C++ bindings for libcaca - static libraries. | |
159 | ||
160 | %description c++-static -l pl.UTF-8 | |
161 | Wiązania C++ do libcaca - biblioteki statyczne. | |
162 | ||
7c11a1cc | 163 | %prep |
7f15b6b0 | 164 | %setup -q -n %{name}-%{version}.%{bver} |
7c11a1cc | 165 | |
166 | %build | |
193b2ceb JB |
167 | %{__libtoolize} |
168 | %{__aclocal} | |
169 | %{__autoconf} | |
170 | %{__autoheader} | |
171 | %{__automake} | |
7c11a1cc | 172 | %configure \ |
f307cfb4 | 173 | --disable-ncurses \ |
7f15b6b0 | 174 | --enable-cxx \ |
175 | --enable-gl \ | |
176 | --enable-plugins \ | |
177 | --enable-slang \ | |
178 | --enable-x11 | |
7c11a1cc | 179 | |
7f15b6b0 | 180 | # ObjC file not used, use plain CC to link library to avoid C++/ObjC deps |
181 | %{__make} \ | |
182 | OBJC="%{__cc}" | |
7c11a1cc | 183 | |
184 | %install | |
185 | rm -rf $RPM_BUILD_ROOT | |
7f15b6b0 | 186 | |
193b2ceb JB |
187 | %{__make} install \ |
188 | DESTDIR=$RPM_BUILD_ROOT | |
7c11a1cc | 189 | |
07c2c308 | 190 | # replace symlink by groff include |
7f15b6b0 | 191 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/cacademo.1 |
192 | echo '.so cacafire.1' > $RPM_BUILD_ROOT%{_mandir}/man1/cacademo.1 | |
193 | ||
194 | rm -f $RPM_BUILD_ROOT%{_libdir}/caca/*.{a,la} | |
195 | # man3 pages have too common base names to be included | |
196 | rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*.3caca | |
197 | rm -rf $RPM_BUILD_ROOT%{_docdir}/libcucul-dev | |
07c2c308 | 198 | |
7c11a1cc | 199 | %clean |
200 | rm -rf $RPM_BUILD_ROOT | |
201 | ||
7f15b6b0 | 202 | %post -p /sbin/ldconfig |
203 | %postun -p /sbin/ldconfig | |
204 | ||
205 | %post c++ -p /sbin/ldconfig | |
206 | %postun c++ -p /sbin/ldconfig | |
193b2ceb | 207 | |
7c11a1cc | 208 | %files |
209 | %defattr(644,root,root,755) | |
7f15b6b0 | 210 | %doc AUTHORS COPYING ChangeLog NEWS NOTES README THANKS TODO |
193b2ceb JB |
211 | %attr(755,root,root) %{_bindir}/cacademo |
212 | %attr(755,root,root) %{_bindir}/cacafire | |
7f15b6b0 | 213 | %attr(755,root,root) %{_bindir}/cacaplay |
214 | %attr(755,root,root) %{_bindir}/cacaserver | |
215 | %attr(755,root,root) %{_libdir}/libcaca.so.*.*.* | |
216 | %attr(755,root,root) %{_libdir}/libcucul.so.*.*.* | |
217 | %dir %{_libdir}/caca | |
7c11a1cc | 218 | %{_datadir}/%{name} |
193b2ceb JB |
219 | %{_mandir}/man1/cacademo.1* |
220 | %{_mandir}/man1/cacafire.1* | |
7f15b6b0 | 221 | %{_mandir}/man1/cacaplay.1* |
222 | %{_mandir}/man1/cacaserver.1* | |
223 | ||
224 | %files plugin-GL | |
225 | %defattr(644,root,root,755) | |
226 | %attr(755,root,root) %{_libdir}/caca/libgl_plugin.so* | |
227 | ||
228 | %files plugin-X11 | |
229 | %defattr(644,root,root,755) | |
230 | %attr(755,root,root) %{_libdir}/caca/libx11_plugin.so* | |
231 | ||
232 | %files img | |
233 | %defattr(644,root,root,755) | |
234 | %attr(755,root,root) %{_bindir}/cacaview | |
235 | %attr(755,root,root) %{_bindir}/img2irc | |
193b2ceb | 236 | %{_mandir}/man1/cacaview.1* |
7f15b6b0 | 237 | %{_mandir}/man1/img2irc.1* |
193b2ceb JB |
238 | |
239 | %files devel | |
240 | %defattr(644,root,root,755) | |
241 | %doc doc/html/* | |
242 | %attr(755,root,root) %{_bindir}/caca-config | |
7f15b6b0 | 243 | %attr(755,root,root) %{_libdir}/libcaca.so |
244 | %attr(755,root,root) %{_libdir}/libcucul.so | |
245 | %{_libdir}/libcaca.la | |
246 | %{_libdir}/libcucul.la | |
247 | %{_includedir}/caca.h | |
248 | %{_includedir}/caca0.h | |
249 | %{_includedir}/cucul.h | |
250 | %{_pkgconfigdir}/caca.pc | |
251 | %{_pkgconfigdir}/cucul.pc | |
1ab8ffdb | 252 | %{_mandir}/man1/caca-config.1* |
193b2ceb JB |
253 | # man3 pages have too common base names to be included |
254 | ||
7f15b6b0 | 255 | %files static |
256 | %defattr(644,root,root,755) | |
257 | %{_libdir}/libcaca.a | |
258 | %{_libdir}/libcucul.a | |
259 | ||
260 | %files c++ | |
261 | %defattr(644,root,root,755) | |
262 | %attr(755,root,root) %{_libdir}/libcaca++.so.*.*.* | |
263 | %attr(755,root,root) %{_libdir}/libcucul++.so.*.*.* | |
264 | ||
265 | %files c++-devel | |
266 | %defattr(644,root,root,755) | |
267 | %attr(755,root,root) %{_libdir}/libcaca++.so | |
268 | %attr(755,root,root) %{_libdir}/libcucul++.so | |
269 | %{_libdir}/libcaca++.la | |
270 | %{_libdir}/libcucul++.la | |
271 | %{_includedir}/caca++.h | |
272 | %{_includedir}/cucul++.h | |
273 | ||
274 | %files c++-static | |
275 | %defattr(644,root,root,755) | |
276 | %{_libdir}/libcaca++.a | |
277 | %{_libdir}/libcucul++.a |