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