]> git.pld-linux.org Git - packages/aalib.git/blob - aalib.spec
- fix building with texinfo 5.x
[packages/aalib.git] / aalib.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4
5 %define         subver  rc5
6 %define         rel             16
7 Summary:        An ASCII art GFX library
8 Summary(fr.UTF-8):      Bibliothèque AA (Ascii Art)
9 Summary(es.UTF-8):      Biblioteca ASCII art
10 Summary(pl.UTF-8):      Biblioteka graficzna ASCII Art
11 Summary(pt_BR.UTF-8):   Uma biblioteca para ASCII art
12 Summary(ru.UTF-8):      Библиотека консольной графики (ASCII Art)
13 Summary(uk.UTF-8):      Бібліотека консольної графіки (ASCII Art)
14 Name:           aalib
15 Version:        1.4
16 Release:        0.%{subver}.%{rel}
17 Epoch:          1
18 License:        LGPL
19 Group:          Libraries
20 Source0:        http://downloads.sourceforge.net/aa-project/%{name}-%{version}%{subver}.tar.gz
21 # Source0-md5:  9801095c42bba12edebd1902bcf0a990
22 Source1:        %{name}-config.1
23 Patch0:         %{name}-info.patch
24 Patch1:         %{name}-debian_man.patch
25 Patch2:         %{name}-am18.patch
26 URL:            http://aa-project.sourceforge.net/aalib/
27 BuildRequires:  autoconf
28 BuildRequires:  automake
29 BuildRequires:  gpm-devel
30 BuildRequires:  libtool
31 BuildRequires:  slang-devel >= 2.0.0
32 BuildRequires:  texinfo
33 BuildRequires:  xorg-lib-libX11-devel
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 AA-lib is a low level gfx library just as many other libraries are.
38 The main difference is that AA-lib does not require graphics device.
39 In fact, there is no graphical output possible. AA-lib replaces those
40 old-fashioned output methods with powerful ascii-art renderer. Now my
41 linux boots with a nice penguin logo at secondary display (yes! Like
42 Win95 does:) AA-lib API is designed to be similar to other graphics
43 libraries. Learning a new API would be a piece of cake!
44
45 %description -l fr.UTF-8
46 La bibliothèque AA est nécessaire pour GIMP. Elle offre la possibilité
47 de travailler dans des contextes graphiques sans affichage.
48
49 %description -l pl.UTF-8
50 AA-lib jest niskopoziomową biblioteką graficzną podobnie jak wiele
51 innych bibliotek. Główna różnica pomiędzy nimi jest taka, że AA-lib
52 nie wymaga trybu graficznego. Właściwie nie ma możliwości wyświetlenia
53 czegoś w trybie graficznym. AA-lib zastępuje te staromodne metody
54 wysoko wydajnym narzędziem do renderowania ascii-art. Teraz mój Linux
55 startuje z ładnym logo pingwina na drugim monitorze. AA-lib API jest
56 zaprojektowane tak by być podobnym do innych graficznych bibliotek.
57 Nauka nowego API będzie bułką z masłem!
58
59 %description -l pt_BR.UTF-8
60 Uma biblioteca para trabalhar com ASCII art.
61
62 %description -l ru.UTF-8
63 AA-lib - это низкоуровневая графическая библиотека. Ее основное
64 отличие от других графических библиотек в том, что AA-lib не требует
65 графического устройства. На самом деле, графический (в обычном смысле
66 этого слова) вывод и невозможен. AA-lib переводит графику в так
67 называемый ASCII-Art.
68
69 %description -l uk.UTF-8
70 AA-lib - це низькорівнева графічна бібліотека. Головна відмінність її
71 від інших графічних бібліотек в тому, о AA-lib не потребує графічного
72 пристрою. Насправді, графічний (в звичному розумінні цього слова)
73 вивід і неможливий. AA-lib перетворює графіку в так званий ASCII-Art.
74
75 %package devel
76 Summary:        Header files and libraries for aalib
77 Summary(pl.UTF-8):      Pliki nagłówkowe dla aalib
78 Summary(ru.UTF-8):      Хедеры для построения программ с AAlib
79 Summary(uk.UTF-8):      Хедери для побудови програм з AAlib
80 Group:          Development/Libraries
81 Requires:       %{name} = %{epoch}:%{version}-%{release}
82 Requires:       gpm-devel
83 Requires:       slang-devel
84 Requires:       xorg-lib-libX11-devel
85
86 %description devel
87 The header files for development of programs using the AAlib.
88
89 %description devel -l pl.UTF-8
90 Pliki nagłówkowe do pisania programów używających AAlib.
91
92 %description devel -l ru.UTF-8
93 Хедеры для построения программ с AAlib.
94
95 %description devel -l uk.UTF-8
96 Хедери для побудови програм з AAlib.
97
98 %package static
99 Summary:        Static aalib library
100 Summary(pl.UTF-8):      Statyczna biblioteka aalib
101 Summary(ru.UTF-8):      Статическая библиотека для построения программ с aalib
102 Summary(uk.UTF-8):      Статична бібліотека для побудови програм з aalib
103 Group:          Development/Libraries
104 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
105
106 %description static
107 Static aalib library.
108
109 %description static -l pl.UTF-8
110 Statyczna biblioteka aalib.
111
112 %description static -l ru.UTF-8
113 Статическая библиотека для программирования с aalib.
114
115 %description static -l uk.UTF-8
116 Статична бібліотека для програмування з aalib.
117
118 %package progs
119 Summary:        AA-lib tools
120 Summary(pl.UTF-8):      Narzędzia AA-lib
121 Summary(ru.UTF-8):      Утилиты для AA-lib
122 Summary(uk.UTF-8):      Утиліти для AA-lib
123 Group:          Applications/Terminal
124 Requires:       %{name} = %{epoch}:%{version}-%{release}
125
126 %description progs
127 AA-lib tools.
128
129 %description progs -l pl.UTF-8
130 Narzędzia AA-lib.
131
132 %description progs -l ru.UTF-8
133 Утилиты для AA-lib.
134
135 %description progs -l uk.UTF-8
136 Утиліти для AA-lib.
137
138 %prep
139 %setup -q -n %{name}-%{version}.0
140 %patch0 -p1
141 %patch1 -p1
142 %patch2 -p1
143
144 # don't include aclocal.m4 from configure.in
145 tail -n +2 configure.in > c.tmp
146 mv -f c.tmp configure.in
147
148 %build
149 %{__libtoolize}
150 %{__aclocal}
151 %{__autoconf}
152 %{__automake}
153 %configure \
154         %{!?with_static_libs:--disable-static}
155 %{__make}
156
157 %install
158 rm -rf $RPM_BUILD_ROOT
159 %{__make} install \
160         DESTDIR=$RPM_BUILD_ROOT
161
162 install -D %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/aalib-config.1
163
164 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
165
166 %clean
167 rm -rf $RPM_BUILD_ROOT
168
169 %post   -p /sbin/ldconfig
170 %postun -p /sbin/ldconfig
171
172 %post devel     -p      /sbin/postshell
173 -/usr/sbin/fix-info-dir -c %{_infodir}
174
175 %postun devel   -p      /sbin/postshell
176 -/usr/sbin/fix-info-dir -c %{_infodir}
177
178 %files
179 %defattr(644,root,root,755)
180 %doc README NEWS AUTHORS ANNOUNCE ChangeLog
181 %attr(755,root,root) %{_libdir}/libaa.so.*.*
182 %ghost %{_libdir}/libaa.so.1
183
184 %files devel
185 %defattr(644,root,root,755)
186 %attr(755,root,root) %{_bindir}/aalib-config
187 %{_libdir}/libaa.so
188 %{_libdir}/libaa.la
189 %{_includedir}/*.h
190 %{_infodir}/*.info*
191 %{_mandir}/man1/aalib-config.1*
192 %{_mandir}/man3/*
193 %{_aclocaldir}/*.m4
194
195 %if %{with static_libs}
196 %files static
197 %defattr(644,root,root,755)
198 %{_libdir}/libaa.a
199 %endif
200
201 %files progs
202 %defattr(644,root,root,755)
203 %attr(755,root,root) %{_bindir}/aafire
204 %attr(755,root,root) %{_bindir}/aainfo
205 %attr(755,root,root) %{_bindir}/aasavefont
206 %attr(755,root,root) %{_bindir}/aatest
207 %{_mandir}/man1/aafire.1*
This page took 0.105023 seconds and 4 git commands to generate.