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