1 Summary: Graphics library that outputs text instead of pixels
2 Summary(pl.UTF-8): Biblioteka graficzna wyświetlająca tekst zamiast pikseli
8 Source0: http://libcaca.zoy.org/files/%{name}-%{version}.tar.bz2
9 # Source0-md5: c7d5c46206091a9203fcb214abb25e4a
10 URL: http://libcaca.zoy.org/
11 BuildRequires: autoconf >= 2.50
12 BuildRequires: automake
13 BuildRequires: doxygen
14 BuildRequires: imlib2-devel
15 BuildRequires: libtool
16 BuildRequires: slang-devel >= 2.0.0
17 # shouldn't these be in doxygen requirements?
18 BuildRequires: tetex-fonts-jknappen
19 BuildRequires: tetex-makeindex
20 BuildRequires: tetex-metafont
21 BuildRequires: XFree86-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define specflags -fomit-frame-pointer
27 The libcaca library is a graphics library that outputs text instead of
28 pixels, so that it can work on older video cards or text terminals. It
29 is not unlike the famous AAlib library.
31 The differences with AAlib are the following:
32 - 16 available colours for character output (256 colour pairs)
33 - dithering of colour images
34 - basic sprite primitives
36 But libcaca also has the following limitations:
37 - no support for brightness, contrast, gamma
38 - unefficient character-choosing algorithms
39 - no raw keyboard support
41 %description -l pl.UTF-8
42 Biblioteka libcaca to biblioteka graficzna wyświetlająca tekst zamiast
43 pikseli, dzięki czemu może działać na starszych kartach graficznych
44 oraz terminalach tekstowych. Pod tym względem jest podobna do słynnej
47 Różnice w stosunku do AAlib są następujące:
48 - 16 dostępnych kolorów dla znaków (256 par kolorów)
49 - dithering kolorowych obrazów
50 - proste kształty duszków (sprites)
52 Ale libcaca ma także następujące ograniczenia:
53 - brak obsługi jasności, kontrastu, korekcji gamma
54 - mało wydajne algorytmy wyboru znaków
55 - brak obsługi klawiatury w trybie surowym
58 Summary: Header files for libcaca library
59 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libcaca
60 Group: Development/Libraries
61 # to be restored when switching to shared lib
62 #Requires: %{name} = %{version}-%{release}
66 Header files for libcaca library.
68 %description devel -l pl.UTF-8
69 Pliki nagłówkowe biblioteki libcaca.
72 Summary: Static libcaca library
73 Summary(pl.UTF-8): Statyczna biblioteka libcaca
74 Group: Development/Libraries
75 Requires: %{name}-devel = %{version}-%{release}
78 Static libcaca library.
80 %description static -l pl.UTF-8
81 Statyczna biblioteka libcaca.
100 rm -rf $RPM_BUILD_ROOT
101 mv doc/man/man3caca doc/man/man3
103 DESTDIR=$RPM_BUILD_ROOT
105 # replace symlink by groff include
106 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/caca{ball,fire,moir,plas}.1
107 echo '.so cacademo.1' > $RPM_BUILD_ROOT%{_mandir}/man1/cacaball.1
108 echo '.so cacademo.1' > $RPM_BUILD_ROOT%{_mandir}/man1/cacafire.1
109 echo '.so cacademo.1' > $RPM_BUILD_ROOT%{_mandir}/man1/cacamoir.1
110 echo '.so cacademo.1' > $RPM_BUILD_ROOT%{_mandir}/man1/cacaplas.1
113 rm -rf $RPM_BUILD_ROOT
115 #%post -p /sbin/ldconfig
116 #%postun -p /sbin/ldconfig
119 %defattr(644,root,root,755)
120 %doc AUTHORS BUGS ChangeLog NEWS NOTES README TODO
121 %attr(755,root,root) %{_bindir}/cacaball
122 %attr(755,root,root) %{_bindir}/cacademo
123 %attr(755,root,root) %{_bindir}/cacafire
124 %attr(755,root,root) %{_bindir}/cacamoir
125 %attr(755,root,root) %{_bindir}/cacaplas
126 %attr(755,root,root) %{_bindir}/cacaview
127 #%attr(755,root,root) %{_libdir}/libcaca.so.*.*.*
130 %{_mandir}/man1/cacaball.1*
131 %{_mandir}/man1/cacademo.1*
132 %{_mandir}/man1/cacafire.1*
133 %{_mandir}/man1/cacamoir.1*
134 %{_mandir}/man1/cacaplas.1*
135 %{_mandir}/man1/cacaview.1*
138 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_bindir}/caca-config
141 #%attr(755,root,root) %{_libdir}/libcaca.so
142 #%{_libdir}/libcaca.la
144 %{_libdir}/libcaca_pic.a
146 %{_mandir}/man1/caca-config.1*
147 # man3 pages have too common base names to be included
150 #%defattr(644,root,root,755)
151 #%{_libdir}/libcaca.a