]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without ada # do not build Ada95 bindings | |
4 | %bcond_without cxx # do not build C++ ncurses bindings and demo programs | |
5 | # # (this is neccessary to build ncurses linked with uClibc). | |
6 | %bcond_without gpm # build without (dynamically loadable) libgpm support | |
7 | # | |
8 | %ifarch sparc64 | |
9 | %undefine with_ada | |
10 | %endif | |
11 | ||
12 | Summary: curses terminal control library | |
13 | Summary(de.UTF-8): curses-Terminal-Control-Library | |
14 | Summary(es.UTF-8): Biblioteca de control de terminal curses | |
15 | Summary(fr.UTF-8): La bibliothéque de contrôle de terminal curses | |
16 | Summary(pl.UTF-8): Biblioteki do kontrolowania terminala | |
17 | Summary(pt_BR.UTF-8): Biblioteca de controle de terminal curses | |
18 | Summary(ru.UTF-8): ncurses - новая библиотека управления терминалами | |
19 | Summary(tr.UTF-8): Terminal kontrol kitaplığı | |
20 | Summary(uk.UTF-8): ncurses - нова бібліотека керування терміналами | |
21 | Name: ncurses | |
22 | Version: 5.7 | |
23 | Release: 31 | |
24 | License: distributable | |
25 | Group: Libraries | |
26 | Source0: ftp://dickey.his.com/ncurses/%{name}-%{version}.tar.gz | |
27 | # Source0-md5: cce05daf61a64501ef6cd8da1f727ec6 | |
28 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 | |
29 | # Source1-md5: 3b05ee835dc20c306e9af2a9d3fbf1f1 | |
30 | ||
31 | # source: ftp://dickey.his.com/ncurses/5.7/ | |
32 | Patch0: patch-5.7-20110108.sh.gz | |
33 | Patch1: ncurses-5.7-20110115.patch.gz | |
34 | Patch2: ncurses-5.7-20110122.patch.gz | |
35 | Patch3: ncurses-5.7-20110205.patch.gz | |
36 | ||
37 | Patch100: %{name}-screen_hpa_fix.patch | |
38 | Patch101: %{name}-xterm_hpa_fix.patch | |
39 | Patch102: %{name}-meta.patch | |
40 | Patch103: %{name}-xterm-home-end.patch | |
41 | Patch104: %{name}-mouse_trafo-warning.patch | |
42 | Patch105: %{name}-gnome-terminal.patch | |
43 | # disable rain demo; triggers gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14998 | |
44 | Patch107: %{name}-no-rain-demo.patch | |
45 | URL: http://dickey.his.com/ncurses/ncurses.html | |
46 | BuildRequires: automake | |
47 | %if %{with ada} | |
48 | BuildRequires: gcc-ada | |
49 | # https://bugzilla.redhat.com/show_bug.cgi?id=613407 | |
50 | BuildRequires: libgnat-static | |
51 | %endif | |
52 | %{?with_gpm:BuildRequires: gpm-devel} | |
53 | %{?with_cxx:BuildRequires: libstdc++-devel} | |
54 | %{?with_ada:BuildRequires: m4} | |
55 | BuildRequires: pkgconfig | |
56 | BuildRequires: sharutils | |
57 | Obsoletes: libncurses5 | |
58 | Conflicts: terminfo < 5.4-0.6 | |
59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
60 | ||
61 | %define _includedir %{_prefix}/include/ncurses | |
62 | ||
63 | %description | |
64 | The curses library routines give the user a terminal-independent | |
65 | method of updating character screens with reasonable optimization. | |
66 | This implementation is ``new curses'' (ncurses) and is the approved | |
67 | replacement for 4.4BSD classic curses, which is being discontinued. | |
68 | ||
69 | %description -l de.UTF-8 | |
70 | Die curses-Library-Routinen geben dem Benutzer eine | |
71 | Terminal-unabhängige Methode zur optimierten Aktualisierung von | |
72 | zeichenbasierenden Bildschirminhalten an die Hand. Die vorliegende | |
73 | Implementierung ist NEW CURSES (ncurses), die offizielle | |
74 | Nachfolgerversion für 4.4BSC (die klassische curses-Version), welche | |
75 | nicht weitergeführt wird. | |
76 | ||
77 | %description -l es.UTF-8 | |
78 | Las rutinas de la biblioteca curses ofrecen al usuario un método | |
79 | independiente de terminal para actualización de las pantallas de | |
80 | caracteres con optimización razonable. Este soporte es "nuevo curses" | |
81 | (ncurses) y es el substituto aprobado para los clásicos curses 4.4BSD, | |
82 | que se quedaban desfasados. | |
83 | ||
84 | %description -l fr.UTF-8 | |
85 | Les routines de la bibliothèque curses donnent à l'utilisateur une | |
86 | méthode indépendante du terminal pour la mise à jour des écrans en | |
87 | mode texte avec une optimisation correcte. Ceci est l'implantation du | |
88 | « nouveau curses » (ncurses) et est le remplacement du curses 4.4BSD | |
89 | classique qui est abandonné. | |
90 | ||
91 | %description -l pl.UTF-8 | |
92 | Biblioteka curses udostępnia funkcje pozwalające użytkownikom na | |
93 | odwoływanie się do zawartości terminala niezależnie od jego typu. | |
94 | Pakiet ten zawiera implementację klasycznej biblioteki curses (z | |
95 | systemu 4.4BSD) o nazwie ncurses (new curses) i jest zarazem jej | |
96 | przyszłym zamiennikiem. | |
97 | ||
98 | %description -l pt_BR.UTF-8 | |
99 | As rotinas da biblioteca curses fornecem ao usuário um método | |
100 | independente de terminal para atualização das telas de caracteres com | |
101 | otimização razoável. Essa implementação é "novo curses" (ncurses) e é | |
102 | o substituto aprovado para os clássicos curses 4.4BSD, que estão se | |
103 | tornando obsoletos. | |
104 | ||
105 | %description -l ru.UTF-8 | |
106 | Программы библиотеки curses предоставляют пользователям возможность | |
107 | терминально-независимого обновления символьных экранов с достаточной | |
108 | оптимизацией. Эта реализация - "новые curses" (ncurses), которая | |
109 | является одобренной заменой классической библиотеки curses из 4.4BSD, | |
110 | в настоящее время "снятой с производства". В PLD Linux ncurses | |
111 | является жизненно необходимой, без нее не будут функционировать многие | |
112 | программы, составляющие базовую систему. Практически все программы, | |
113 | которые выводят что-либо на терминал, используют ncurses. В PLD Linux | |
114 | ни библиотека termcap, ни традиционный файл /etc/termcap, не | |
115 | используются... | |
116 | ||
117 | %description -l tr.UTF-8 | |
118 | curses kitaplığı ile kullanıcıya kullanılan terminal tipinden bağımsız | |
119 | olarak karakter tabanlı ekranlara erişim olanağı sağlanabilmektedir. | |
120 | Bu uyarlama 'new curses' (ncurses), BSD deki klasik curses'in gelişmiş | |
121 | halidir. | |
122 | ||
123 | %description -l uk.UTF-8 | |
124 | Програми бібліотеки curses дають користувачам можливість | |
125 | термінально-незалежного поновлення символьних екранів з достатньою | |
126 | оптимізацією. Ця реалізація - "нові curses" (ncurses), котра є | |
127 | схваленою заміною класичної бібліотеки curses з 4.4BSD, яка наразі | |
128 | "знята з виробництва". В PLD Linux ncurses є життєво необхідною, без | |
129 | неї не буде працювати більшость програм, що складають базову систему. | |
130 | Практично всі програми, котрі виводять щось на термінал, | |
131 | використовують ncurses. В PLD Linux ані бібліотека termcap, ані | |
132 | традиційний файл /etc/termcap не використовуються... | |
133 | ||
134 | %package -n terminfo | |
135 | Summary: Complete terminfo database | |
136 | Summary(es.UTF-8): Banco de datos terminfo para terminales extras (menos usados) | |
137 | Summary(pl.UTF-8): Kompletna baza terminfo | |
138 | Summary(pt_BR.UTF-8): Base de dados terminfo para terminais adicionais (menos usados) | |
139 | Group: Applications/Terminal | |
140 | Requires: %{name} = %{version}-%{release} | |
141 | Obsoletes: ncurses-extraterms | |
142 | ||
143 | %description -n terminfo | |
144 | This package contains complete terminfo database. If you just use the | |
145 | Linux console, xterm and VT100, you probably will not need this this - | |
146 | a minimal %{_datadir}/terminfo tree for these terminal is already | |
147 | included in the ncurses package. | |
148 | ||
149 | %description -n terminfo -l es.UTF-8 | |
150 | Banco de datos terminfo para terminales extras. Las capacidades de los | |
151 | terminales más usados ya están en el paquete principal ncurses. | |
152 | ||
153 | %description -n terminfo -l pl.UTF-8 | |
154 | Pakiet ten zawiera kompletną bazę terminfo. Jeżeli używasz terminali | |
155 | linux, console, xterm, vt100 prawdopodobnie nie bedziesz potrzebował | |
156 | tego pakietu gdyż definicje tych terminali są włączone w pakiet | |
157 | ncurses. | |
158 | ||
159 | %description -n terminfo -l pt_BR.UTF-8 | |
160 | Base de dados terminfo para terminais extras. As definições dos | |
161 | terminais mais usados já estão no pacote principal ncurses. | |
162 | ||
163 | %package devel | |
164 | Summary: Header files for develop ncurses based application | |
165 | Summary(es.UTF-8): Bibliotecas de desarrollo para ncurses | |
166 | Summary(pl.UTF-8): Pliki nagłówkowe do bibliotek ncurses | |
167 | Summary(pt_BR.UTF-8): Bibliotecas de desenvolvimento para ncurses | |
168 | Summary(ru.UTF-8): Хедеры и библиотеки для разработки программ с ncurses | |
169 | Summary(uk.UTF-8): Хедери та бібліотеки для розробки програм з ncurses | |
170 | Group: Development/Libraries | |
171 | Requires: %{name} = %{version}-%{release} | |
172 | Obsoletes: libncurses5-devel | |
173 | Obsoletes: libtermcap-devel | |
174 | ||
175 | %description devel | |
176 | This package includes the header files and libraries necessary to | |
177 | develop applications that use ncurses. | |
178 | ||
179 | %description devel -l es.UTF-8 | |
180 | Este paquete incluye las bibliotecas y archivos de inclusión | |
181 | necesarios al desarrollo de aplicaciones que usan ncurses. | |
182 | ||
183 | %description devel -l pl.UTF-8 | |
184 | Pakiet ten zawiera pliki nagłówkowe niezbędne do pisania/kompilowania | |
185 | programów z wykorzystaniem bibliotek ncurses. | |
186 | ||
187 | %description devel -l pt_BR.UTF-8 | |
188 | Este pacote inclui as bibliotecas e arquivos de inclusão necessários | |
189 | ao desenvolvimento de aplicações que usam ncurses. | |
190 | ||
191 | %description devel -l ru.UTF-8 | |
192 | Этот пакет содержит хедеры и библиотеки, необходимые для разработки | |
193 | программ, использующих ncurses. | |
194 | ||
195 | %description devel -l uk.UTF-8 | |
196 | Цей пакет містить хедери та бібліотеки, необхідні для розробки | |
197 | програм, що використовують ncurses. | |
198 | ||
199 | %package static | |
200 | Summary: Static libraries for ncurses | |
201 | Summary(es.UTF-8): Static libraries for ncurses development | |
202 | Summary(pl.UTF-8): Biblioteki statyczne ncurses | |
203 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com ncurses | |
204 | Summary(ru.UTF-8): Статические библиотеки для разработки программ с ncurses | |
205 | Summary(uk.UTF-8): Статичні бібліотеки для розробки програм з ncurses | |
206 | Group: Development/Libraries | |
207 | Requires: %{name}-devel = %{version}-%{release} | |
208 | ||
209 | %description static | |
210 | This package includes the static libraries necessary to develop | |
211 | applications that use ncurses. | |
212 | ||
213 | %description static -l es.UTF-8 | |
214 | Static libraries for ncurses development. | |
215 | ||
216 | %description static -l pl.UTF-8 | |
217 | Pakiet ten zawiera biblioteki statyczne ncurses. | |
218 | ||
219 | %description static -l pt_BR.UTF-8 | |
220 | Bibliotecas estáticas para desenvolvimento com ncurses. | |
221 | ||
222 | %description static -l ru.UTF-8 | |
223 | Этот пакет содержит статические библиотеки, необходимые для разработки | |
224 | программ, использующих ncurses. | |
225 | ||
226 | %description static -l uk.UTF-8 | |
227 | Цей пакет містить статичні бібліотеки, необхідні для розробки програм, | |
228 | що використовують ncurses. | |
229 | ||
230 | %package ext | |
231 | Summary: Additional ncurses libraries | |
232 | Summary(pl.UTF-8): Dodatkowe biblioteki ncurses | |
233 | Group: Libraries | |
234 | Requires: %{name} = %{version}-%{release} | |
235 | ||
236 | %description ext | |
237 | This package contains addidion ncurses libraries like libforms, | |
238 | libmenu and libpanel for easy making full screen curse application. | |
239 | ||
240 | %description ext -l pl.UTF-8 | |
241 | Pakiet ten zawiera dodatkowe biblioteki libforms, libmenu i libpanel | |
242 | służące do łatwego tworzenia aplikacji pełnoekranowych korzystających | |
243 | z ncurses. | |
244 | ||
245 | %package ext-devel | |
246 | Summary: Header files for additional ncurses libraries | |
247 | Summary(pl.UTF-8): Pliki nagłówkowe dodatkowych bibliotek ncurses | |
248 | Group: Development/Libraries | |
249 | Requires: %{name}-devel = %{version}-%{release} | |
250 | Requires: %{name}-ext = %{version}-%{release} | |
251 | ||
252 | %description ext-devel | |
253 | Header files for additional ncurses libraries (form, menu, panel). | |
254 | ||
255 | %description ext-devel -l pl.UTF-8 | |
256 | Pliki nagłówkowe dodatkowych bibliotek ncurses (form, menu, panel). | |
257 | ||
258 | %package ext-static | |
259 | Summary: Static versions of additional ncurses libraries | |
260 | Summary(pl.UTF-8): Statyczne wersje dodatkowych bibliotek ncurses | |
261 | Group: Development/Libraries | |
262 | Requires: %{name}-ext-devel = %{version}-%{release} | |
263 | ||
264 | %description ext-static | |
265 | Static versions of additional ncurses libraries (form, menu, panel). | |
266 | ||
267 | %description ext-static -l pl.UTF-8 | |
268 | Statyczne wersje dodatkowych bibliotek ncurses (form, menu, panel). | |
269 | ||
270 | %package c++-devel | |
271 | Summary: Header files for develop C++ ncurses based application | |
272 | Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki C++ ncurses | |
273 | Group: Development/Libraries | |
274 | Requires: %{name}-devel = %{version}-%{release} | |
275 | ||
276 | %description c++-devel | |
277 | This package includes the header files and libraries necessary to | |
278 | develop applications that use C++ ncurses. | |
279 | ||
280 | %description c++-devel -l pl.UTF-8 | |
281 | Pakiet ten zawiera pliki nagłówkowe niezbędne do kompilacji programów | |
282 | z wykorzystaniem biblioteki c++-ncurses. | |
283 | ||
284 | %package c++-static | |
285 | Summary: Static libraries for C++ ncurses | |
286 | Summary(pl.UTF-8): Biblioteki statyczne C++ ncurses | |
287 | Group: Development/Libraries | |
288 | Requires: %{name}-c++-devel = %{version}-%{release} | |
289 | ||
290 | %description c++-static | |
291 | This package includes the static libraries necessary to develop | |
292 | applications that use C++ ncurses. | |
293 | ||
294 | %description c++-static -l pl.UTF-8 | |
295 | Pakiet ten zawiera biblioteki statyczne C++ ncurses. | |
296 | ||
297 | %package ada-devel | |
298 | Summary: Header files for develop Ada95 ncurses based application | |
299 | Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki Ada95 ncurses | |
300 | Group: Development/Libraries | |
301 | Requires: %{name}-devel = %{version}-%{release} | |
302 | %{?with_ada:%requires_eq gcc-ada} | |
303 | ||
304 | %description ada-devel | |
305 | This package includes the header files and libraries necessary to | |
306 | develop applications that use Ada95 ncurses. | |
307 | ||
308 | %description ada-devel -l pl.UTF-8 | |
309 | Ten pakiet zawiera pliki nagłówkowe i biblioteki potrzebne do | |
310 | tworzenia aplikacji używających ncurses w języku Ada95. | |
311 | ||
312 | %prep | |
313 | %setup -q | |
314 | zcat %{PATCH0} | /bin/sh - || exit 1 | |
315 | %patch1 -p1 | |
316 | %patch2 -p1 | |
317 | %patch3 -p1 | |
318 | ||
319 | %patch100 -p1 | |
320 | %patch101 -p1 | |
321 | %patch102 -p1 | |
322 | %patch103 -p1 | |
323 | %patch104 -p1 | |
324 | %patch105 -p1 | |
325 | %patch107 -p1 | |
326 | ||
327 | %build | |
328 | unset TERMINFO || : | |
329 | gcc_target=$(gcc -dumpmachine) | |
330 | gcc_version=%{cc_version} | |
331 | CFLAGS="%{rpmcflags} -DPURE_TERMINFO -D_FILE_OFFSET_BITS=64" | |
332 | export PKG_CONFIG_LIBDIR=%{_libdir}/pkgconfig | |
333 | cp -f /usr/share/automake/config.sub . | |
334 | ||
335 | %if "%{pld_release}" == "ti" | |
336 | for t in narrowc widec; do | |
337 | %else | |
338 | for t in narrowc wideclowcolor widec; do | |
339 | %endif | |
340 | install -d obj-$t | |
341 | cd obj-$t | |
342 | ../%configure \ | |
343 | --with-install-prefix=$RPM_BUILD_ROOT \ | |
344 | --with-normal \ | |
345 | --with-shared \ | |
346 | --with%{!?with_ada:out}-ada \ | |
347 | --with%{!?with_cxx:out}-cxx \ | |
348 | --with%{!?with_cxx:out}-cxx-binding \ | |
349 | --with%{!?debug:out}-debug \ | |
350 | --with%{!?with_gpm:out}-gpm \ | |
351 | --without-profile \ | |
352 | --with-termlib \ | |
353 | --with-largefile \ | |
354 | --with-ospeed=unsigned \ | |
355 | --disable-lp64 \ | |
356 | --enable-hard-tabs \ | |
357 | --enable-xmc-glitch \ | |
358 | --enable-pc-files \ | |
359 | --enable-colorfgbg \ | |
360 | --with-chtype='long' \ | |
361 | --with-mmask-t='long' \ | |
362 | --with-manpage-aliases \ | |
363 | --with-manpage-format=normal \ | |
364 | --without-manpage-symlinks \ | |
365 | --with-ada-include=%{_libdir}/gcc/$gcc_target/$gcc_version/adainclude/ \ | |
366 | --with-ada-objects=%{_libdir}/gcc/$gcc_target/$gcc_version/adalib/ \ | |
367 | %if "%{pld_release}" == "ti" | |
368 | `[ "$t" != "widec" ] && echo --with-termlib=tinfo` \ | |
369 | `[ "$t" = "widec" ] && echo --with-termlib=tinfow --enable-widec --includedir=%{_includedir}w` | |
370 | %else | |
371 | `[ "$t" = "narrowc" ] && echo --with-termlib=tinfo` \ | |
372 | `[ "$t" = "wideclowcolor" ] && echo --with-termlib=tinfow --enable-widec --disable-ext-colors --includedir=%{_includedir}wlc` \ | |
373 | `[ "$t" = "widec" ] && echo --with-termlib=tinfow --enable-widec --enable-ext-colors --includedir=%{_includedir}w` | |
374 | %endif | |
375 | ||
376 | %{__make} -j1 | |
377 | ||
378 | cd .. | |
379 | done | |
380 | ||
381 | %install | |
382 | rm -rf $RPM_BUILD_ROOT | |
383 | install -d $RPM_BUILD_ROOT{/%{_lib},%{_mandir}} | |
384 | ||
385 | %if "%{pld_release}" == "ti" | |
386 | for t in widec narrowc; do | |
387 | %else | |
388 | for t in narrowc widec; do | |
389 | %endif | |
390 | %{__make} -C obj-$t install \ | |
391 | INSTALL_PREFIX=$RPM_BUILD_ROOT | |
392 | done | |
393 | ||
394 | ln -sf ../l/linux $RPM_BUILD_ROOT%{_datadir}/terminfo/c/console | |
395 | ||
396 | %if "%{pld_release}" != "ti" | |
397 | mv -f $RPM_BUILD_ROOT%{_libdir}/libtinfow.so.6* $RPM_BUILD_ROOT/%{_lib} | |
398 | mv -f $RPM_BUILD_ROOT%{_libdir}/libncursesw.so.6* $RPM_BUILD_ROOT/%{_lib} | |
399 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libtinfow.so.6.*) $RPM_BUILD_ROOT%{_libdir}/libtinfow.so | |
400 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncursesw.so.6.*) $RPM_BUILD_ROOT%{_libdir}/libncursesw.so | |
401 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncursesw.so.6.*) $RPM_BUILD_ROOT%{_libdir}/libcursesw.so | |
402 | %else | |
403 | mv -f $RPM_BUILD_ROOT%{_libdir}/libtinfow.so.5* $RPM_BUILD_ROOT/%{_lib} | |
404 | mv -f $RPM_BUILD_ROOT%{_libdir}/libncursesw.so.5* $RPM_BUILD_ROOT/%{_lib} | |
405 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libtinfow.so.5.*) $RPM_BUILD_ROOT%{_libdir}/libtinfow.so | |
406 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncursesw.so.5.*) $RPM_BUILD_ROOT%{_libdir}/libcursesw.so | |
407 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncursesw.so.5.*) $RPM_BUILD_ROOT%{_libdir}/libncursesw.so | |
408 | %endif | |
409 | mv -f $RPM_BUILD_ROOT%{_libdir}/libtinfo.so.* $RPM_BUILD_ROOT/%{_lib} | |
410 | mv -f $RPM_BUILD_ROOT%{_libdir}/libncurses.so.* $RPM_BUILD_ROOT/%{_lib} | |
411 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libtinfo.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libtinfo.so | |
412 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncurses.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libcurses.so | |
413 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncurses.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libncurses.so | |
414 | ||
415 | ln -sf libncursesw.a $RPM_BUILD_ROOT%{_libdir}/libcursesw.a | |
416 | ||
417 | %if "%{pld_release}" != "ti" | |
418 | cp -a obj-wideclowcolor/lib/lib*w.so.5* $RPM_BUILD_ROOT%{_libdir} | |
419 | %endif | |
420 | ||
421 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} | |
422 | ||
423 | rm $RPM_BUILD_ROOT%{_libdir}/libcurses.a | |
424 | rm $RPM_BUILD_ROOT%{_libdir}/libcursesw.a | |
425 | rm $RPM_BUILD_ROOT%{_mandir}/README.ncurses-non-english-man-pages | |
426 | ||
427 | # FIXME: should be fixed properly | |
428 | # fix too many w's | |
429 | sed -i -e 's/tinfoww/tinfow/' $RPM_BUILD_ROOT%{_bindir}/ncurses*-config $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc | |
430 | ||
431 | %clean | |
432 | rm -rf $RPM_BUILD_ROOT | |
433 | ||
434 | %post -p /sbin/ldconfig | |
435 | %postun -p /sbin/ldconfig | |
436 | ||
437 | %post ext -p /sbin/ldconfig | |
438 | %postun ext -p /sbin/ldconfig | |
439 | ||
440 | %files | |
441 | %defattr(644,root,root,755) | |
442 | %doc ANNOUNCE README | |
443 | %attr(755,root,root) %{_bindir}/captoinfo | |
444 | %attr(755,root,root) %{_bindir}/clear | |
445 | %attr(755,root,root) %{_bindir}/infocmp | |
446 | %attr(755,root,root) %{_bindir}/infotocap | |
447 | %attr(755,root,root) %{_bindir}/reset | |
448 | %attr(755,root,root) %{_bindir}/tabs | |
449 | %attr(755,root,root) %{_bindir}/tic | |
450 | %attr(755,root,root) %{_bindir}/toe | |
451 | %attr(755,root,root) %{_bindir}/tput | |
452 | %attr(755,root,root) %{_bindir}/tset | |
453 | %attr(755,root,root) /%{_lib}/libncurses.so.*.* | |
454 | %attr(755,root,root) %ghost /%{_lib}/libncurses.so.5 | |
455 | %attr(755,root,root) /%{_lib}/libncursesw.so.*.* | |
456 | %if "%{pld_release}" != "ti" | |
457 | %attr(755,root,root) %ghost /%{_lib}/libncursesw.so.6 | |
458 | %endif | |
459 | %attr(755,root,root) /%{_lib}/libtinfo.so.*.* | |
460 | %attr(755,root,root) %ghost /%{_lib}/libtinfo.so.5 | |
461 | %attr(755,root,root) /%{_lib}/libtinfow.so.*.* | |
462 | %if "%{pld_release}" != "ti" | |
463 | %attr(755,root,root) %ghost /%{_lib}/libtinfow.so.6 | |
464 | %attr(755,root,root) %{_libdir}/libncursesw.so.*.* | |
465 | %attr(755,root,root) %ghost %{_libdir}/libncursesw.so.5 | |
466 | %attr(755,root,root) %{_libdir}/libtinfow.so.*.* | |
467 | %attr(755,root,root) %ghost %{_libdir}/libtinfow.so.5 | |
468 | %else | |
469 | %attr(755,root,root) %ghost /%{_lib}/libtinfow.so.5 | |
470 | %attr(755,root,root) %ghost /%{_lib}/libncursesw.so.5 | |
471 | %endif | |
472 | ||
473 | %{_datadir}/tabset | |
474 | ||
475 | %dir %{_datadir}/terminfo | |
476 | %{_datadir}/terminfo/E | |
477 | %dir %{_datadir}/terminfo/[dgklprsvx] | |
478 | ||
479 | %{_datadir}/terminfo/d/dumb | |
480 | %{_datadir}/terminfo/g/gnome* | |
481 | %{_datadir}/terminfo/k/klone+color | |
482 | %{_datadir}/terminfo/k/konsole* | |
483 | %{_datadir}/terminfo/l/linux* | |
484 | %{_datadir}/terminfo/p/putty* | |
485 | %{_datadir}/terminfo/r/rxvt* | |
486 | %{_datadir}/terminfo/s/screen* | |
487 | %{_datadir}/terminfo/v/vt100 | |
488 | %{_datadir}/terminfo/v/vt220 | |
489 | %{_datadir}/terminfo/v/vt220-8 | |
490 | %{_datadir}/terminfo/v/vt52 | |
491 | %{_datadir}/terminfo/x/xterm* | |
492 | ||
493 | %{_mandir}/man[157]/* | |
494 | %lang(fi) %{_mandir}/fi/man1/* | |
495 | %lang(fr) %{_mandir}/fr/man1/* | |
496 | %lang(hu) %{_mandir}/hu/man1/* | |
497 | %lang(id) %{_mandir}/id/man1/* | |
498 | %lang(it) %{_mandir}/it/man1/* | |
499 | %lang(pl) %{_mandir}/pl/man[157]/* | |
500 | ||
501 | %files -n terminfo | |
502 | %defattr(644,root,root,755) | |
503 | %{_datadir}/terminfo/[1-9ALMNPQXa-ce-jm-rt-uwz] | |
504 | %{_datadir}/terminfo/[dklsvx]/* | |
505 | %exclude %{_datadir}/terminfo/d/dumb | |
506 | %exclude %{_datadir}/terminfo/g/gnome* | |
507 | %exclude %{_datadir}/terminfo/k/klone+color | |
508 | %exclude %{_datadir}/terminfo/k/konsole* | |
509 | %exclude %{_datadir}/terminfo/l/linux* | |
510 | %exclude %{_datadir}/terminfo/p/putty* | |
511 | %exclude %{_datadir}/terminfo/r/rxvt* | |
512 | %exclude %{_datadir}/terminfo/s/screen* | |
513 | %exclude %{_datadir}/terminfo/v/vt100 | |
514 | %exclude %{_datadir}/terminfo/v/vt220 | |
515 | %exclude %{_datadir}/terminfo/v/vt220-8 | |
516 | %exclude %{_datadir}/terminfo/v/vt52 | |
517 | %exclude %{_datadir}/terminfo/x/xterm* | |
518 | ||
519 | %files devel | |
520 | %defattr(644,root,root,755) | |
521 | %doc doc/html/ncurses-intro.html | |
522 | %attr(755,root,root) %{_bindir}/ncurses5-config | |
523 | %if "%{pld_release}" == "ti" | |
524 | %attr(755,root,root) %{_bindir}/ncursesw5-config | |
525 | %else | |
526 | %attr(755,root,root) %{_bindir}/ncursesw6-config | |
527 | %endif | |
528 | %attr(755,root,root) %{_libdir}/libcurses.so | |
529 | %attr(755,root,root) %{_libdir}/libncurses.so | |
530 | %attr(755,root,root) %{_libdir}/libtinfo.so | |
531 | %attr(755,root,root) %{_libdir}/libcursesw.so | |
532 | %attr(755,root,root) %{_libdir}/libncursesw.so | |
533 | %attr(755,root,root) %{_libdir}/libtinfow.so | |
534 | %dir %{_includedir} | |
535 | %{_includedir}/curses.h | |
536 | %{_includedir}/eti.h | |
537 | %{_includedir}/nc_tparm.h | |
538 | %{_includedir}/ncurses.h | |
539 | %{_includedir}/ncurses_dll.h | |
540 | %{_includedir}/term.h | |
541 | %{_includedir}/term_entry.h | |
542 | %{_includedir}/termcap.h | |
543 | %{_includedir}/tic.h | |
544 | %{_includedir}/unctrl.h | |
545 | %dir %{_includedir}w | |
546 | %{_includedir}w/curses.h | |
547 | %{_includedir}w/eti.h | |
548 | %{_includedir}w/nc_tparm.h | |
549 | %{_includedir}w/ncurses.h | |
550 | %{_includedir}w/ncurses_dll.h | |
551 | %{_includedir}w/term.h | |
552 | %{_includedir}w/term_entry.h | |
553 | %{_includedir}w/termcap.h | |
554 | %{_includedir}w/tic.h | |
555 | %{_includedir}w/unctrl.h | |
556 | %{_pkgconfigdir}/*.pc | |
557 | ||
558 | %{_mandir}/man3/* | |
559 | %exclude %{_mandir}/man3/form* | |
560 | %exclude %{_mandir}/man3/menu* | |
561 | %exclude %{_mandir}/man3/panel* | |
562 | %lang(pl) %{_mandir}/pl/man3/* | |
563 | ||
564 | %files static | |
565 | %defattr(644,root,root,755) | |
566 | %{_libdir}/libncurses.a | |
567 | %{_libdir}/libtinfo.a | |
568 | %{_libdir}/libncursesw.a | |
569 | %{_libdir}/libtinfow.a | |
570 | ||
571 | %files ext | |
572 | %defattr(644,root,root,755) | |
573 | %if "%{pld_release}" == "ti" | |
574 | %attr(755,root,root) %{_libdir}/libform.so.* | |
575 | %attr(755,root,root) %{_libdir}/libmenu.so.* | |
576 | %attr(755,root,root) %{_libdir}/libpanel.so.* | |
577 | %attr(755,root,root) %{_libdir}/libformw.so.* | |
578 | %attr(755,root,root) %{_libdir}/libmenuw.so.* | |
579 | %attr(755,root,root) %{_libdir}/libpanelw.so.* | |
580 | %else | |
581 | %attr(755,root,root) %{_libdir}/libform.so.*.* | |
582 | %attr(755,root,root) %ghost %{_libdir}/libform.so.[56] | |
583 | %attr(755,root,root) %{_libdir}/libmenu.so.*.* | |
584 | %attr(755,root,root) %ghost %{_libdir}/libmenu.so.[56] | |
585 | %attr(755,root,root) %{_libdir}/libpanel.so.*.* | |
586 | %attr(755,root,root) %ghost %{_libdir}/libpanel.so.[56] | |
587 | %attr(755,root,root) %{_libdir}/libformw.so.*.* | |
588 | %attr(755,root,root) %ghost %{_libdir}/libformw.so.[56] | |
589 | %attr(755,root,root) %{_libdir}/libmenuw.so.*.* | |
590 | %attr(755,root,root) %ghost %{_libdir}/libmenuw.so.[56] | |
591 | %attr(755,root,root) %{_libdir}/libpanelw.so.*.* | |
592 | %attr(755,root,root) %ghost %{_libdir}/libpanelw.so.[56] | |
593 | %endif | |
594 | ||
595 | %files ext-devel | |
596 | %defattr(644,root,root,755) | |
597 | %attr(755,root,root) %{_libdir}/libform.so | |
598 | %attr(755,root,root) %{_libdir}/libmenu.so | |
599 | %attr(755,root,root) %{_libdir}/libpanel.so | |
600 | %attr(755,root,root) %{_libdir}/libformw.so | |
601 | %attr(755,root,root) %{_libdir}/libmenuw.so | |
602 | %attr(755,root,root) %{_libdir}/libpanelw.so | |
603 | %{_includedir}/form.h | |
604 | %{_includedir}/menu.h | |
605 | %{_includedir}/panel.h | |
606 | %{_includedir}w/form.h | |
607 | %{_includedir}w/menu.h | |
608 | %{_includedir}w/panel.h | |
609 | %{_mandir}/man3/form* | |
610 | %{_mandir}/man3/menu* | |
611 | %{_mandir}/man3/panel* | |
612 | ||
613 | %files ext-static | |
614 | %defattr(644,root,root,755) | |
615 | %{_libdir}/libform.a | |
616 | %{_libdir}/libmenu.a | |
617 | %{_libdir}/libpanel.a | |
618 | %{_libdir}/libformw.a | |
619 | %{_libdir}/libmenuw.a | |
620 | %{_libdir}/libpanelw.a | |
621 | ||
622 | %if %{with cxx} | |
623 | %files c++-devel | |
624 | %defattr(644,root,root,755) | |
625 | %doc c++/{demo.cc,README-first,NEWS,PROBLEMS} | |
626 | %{_includedir}/cursesapp.h | |
627 | %{_includedir}/cursesf.h | |
628 | %{_includedir}/cursesm.h | |
629 | %{_includedir}/cursesp.h | |
630 | %{_includedir}/cursesw.h | |
631 | %{_includedir}/etip.h | |
632 | %{_includedir}/cursslk.h | |
633 | %{_includedir}w/cursesapp.h | |
634 | %{_includedir}w/cursesf.h | |
635 | %{_includedir}w/cursesm.h | |
636 | %{_includedir}w/cursesp.h | |
637 | %{_includedir}w/cursesw.h | |
638 | %{_includedir}w/etip.h | |
639 | %{_includedir}w/cursslk.h | |
640 | ||
641 | %files c++-static | |
642 | %defattr(644,root,root,755) | |
643 | %{_libdir}/libncurses++.a | |
644 | %{_libdir}/libncurses++w.a | |
645 | %endif | |
646 | ||
647 | %if %{with ada} | |
648 | %files ada-devel | |
649 | %defattr(644,root,root,755) | |
650 | %doc Ada95/{README,TODO} | |
651 | %attr(755,root,root) %{_bindir}/adacurses-config | |
652 | %attr(755,root,root) %{_bindir}/adacursesw-config | |
653 | %{_libdir}/gcc/*/*/adainclude/* | |
654 | %{_libdir}/gcc/*/*/adalib/* | |
655 | %endif |