]> git.pld-linux.org Git - packages/libcaca.git/blob - libcaca.spec
- fixed cacafire.1 link
[packages/libcaca.git] / libcaca.spec
1 Summary:        Graphics library that outputs text instead of pixels
2 Summary(pl):    Biblioteka graficzna wy¶wietlaj±ca tekst zamiast pikseli
3 Name:           libcaca
4 Version:        0.6
5 Release:        1
6 License:        LGPL
7 Group:          Libraries
8 Source0:        http://sam.zoy.org/projects/libcaca/%{name}-%{version}.tar.bz2
9 # Source0-md5:  0540e5c24aa6747c67805958185afe3b
10 Patch0:         %{name}-shared.patch
11 URL:            http://sam.zoy.org/projects/libcaca/
12 BuildRequires:  autoconf >= 2.50
13 BuildRequires:  automake
14 BuildRequires:  imlib2-devel
15 BuildRequires:  libtool
16 BuildRequires:  slang-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         specflags       -fomit-frame-pointer
20
21 %description
22 The libcaca library is a graphics library that outputs text instead of
23 pixels, so that it can work on older video cards or text terminals. It
24 is not unlike the famous AAlib library.
25
26 The differences with AAlib are the following:
27 - 16 available colours for character output (256 colour pairs)
28 - dithering of colour images
29 - basic sprite primitives
30
31 But libcaca also has the following limitations:
32 - no support for brightness, contrast, gamma
33 - unefficient character-choosing algorithms
34 - no raw keyboard support
35
36 %description -l pl
37 Biblioteka libcaca to biblioteka graficzna wy¶wietlaj±ca tekst zamiast
38 pikseli, dziêki czemu mo¿e dzia³aæ na starszych kartach graficznych
39 oraz terminalach tekstowych. Pod tym wzglêdem jest podobna do s³ynnej
40 biblioteki AAlib.
41
42 Ró¿nice w stosunku do AAlib s± nastêpuj±ce:
43 - 16 dostêpnych kolorów dla znaków (256 par kolorów)
44 - dithering kolorowych obrazów
45 - proste kszta³ty duszków (sprites)
46
47 Ale libcaca ma tak¿e nastêpuj±ce ograniczenia:
48 - brak obs³ugi jasno¶ci, kontrakstu, korekcji gamma
49 - ma³o wydajne algorytmy wyboru znaków
50 - brak obs³ugi klawiatury w trybie surowym
51
52 %package devel
53 Summary:        Header files for libcaca library
54 Summary(pl):    Pliki nag³ówkowe biblioteki libcaca
55 Group:          Development/Libraries
56 Requires:       %{name} = %{version}-%{release}
57 Requires:       slang-devel
58
59 %description devel
60 Header files for libcaca library.
61
62 %description devel -l pl
63 Pliki nag³ówkowe biblioteki libcaca.
64
65 %package static
66 Summary:        Static libcaca library
67 Summary(pl):    Statyczna biblioteka libcaca
68 Group:          Development/Libraries
69 Requires:       %{name}-devel = %{version}-%{release}
70
71 %description static
72 Static libcaca library.
73
74 %description static -l pl
75 Statyczna biblioteka libcaca.
76
77 %prep
78 %setup -q
79 %patch0 -p1
80
81 %build
82 %{__libtoolize}
83 %{__aclocal}
84 %{__autoconf}
85 %{__autoheader}
86 %{__automake}
87 %configure \
88         --disable-x11 \
89         --disable-ncurses \
90         --enable-slang
91
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 # replace symlink by groff include
101 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/cacafire.1
102 echo '.so cacademo.1' > $RPM_BUILD_ROOT%{_mandir}/man1/cacafire.1
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post   -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %doc AUTHORS BUGS ChangeLog NEWS NOTES README TODO
113 %attr(755,root,root) %{_bindir}/caca-spritedit
114 %attr(755,root,root) %{_bindir}/cacademo
115 %attr(755,root,root) %{_bindir}/cacafire
116 %attr(755,root,root) %{_bindir}/cacaview
117 %attr(755,root,root) %{_libdir}/libcaca.so.*.*.*
118 %{_datadir}/%{name}
119 %{_mandir}/man1/caca-spritedit.1*
120 %{_mandir}/man1/cacademo.1*
121 %{_mandir}/man1/cacafire.1*
122 %{_mandir}/man1/cacaview.1*
123
124 %files devel
125 %defattr(644,root,root,755)
126 %doc doc/html/*
127 %attr(755,root,root) %{_bindir}/caca-config
128 %attr(755,root,root) %{_libdir}/libcaca.so
129 %{_libdir}/libcaca.la
130 %{_includedir}/*.h
131 # man3 pages have too common base names to be included
132
133 %files static
134 %defattr(644,root,root,755)
135 %{_libdir}/libcaca.a
This page took 0.561932 seconds and 4 git commands to generate.