]>
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 |
8c7c07e6 | 23 | Release: 2 |
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 \ |
f98533be | 375 | --with-termlib \ |
652b7e23 | 376 | --with-largefile \ |
fa5052d9 | 377 | --with-ospeed=unsigned \ |
652b7e23 | 378 | --disable-lp64 \ |
fa5052d9 AM |
379 | --enable-hard-tabs \ |
380 | --enable-xmc-glitch \ | |
1de3072c | 381 | --enable-pc-files \ |
fa5052d9 | 382 | --enable-colorfgbg \ |
652b7e23 AM |
383 | --with-chtype='long' \ |
384 | --with-mmask-t='long' \ | |
86edd651 | 385 | --with-manpage-aliases \ |
ff180380 | 386 | --with-manpage-format=normal \ |
0590ad17 | 387 | --without-manpage-symlinks \ |
b0b405d4 | 388 | --with-ada-include=%{_libdir}/gcc/$gcc_target/$gcc_version/adainclude/ \ |
389 | --with-ada-objects=%{_libdir}/gcc/$gcc_target/$gcc_version/adalib/ \ | |
e034c592 | 390 | %if "%{pld_release}" == "ti" |
391 | `[ "$t" != "widec" ] && echo --with-termlib=tinfo` \ | |
392 | `[ "$t" = "widec" ] && echo --with-termlib=tinfow --enable-widec --includedir=%{_includedir}w` | |
393 | %else | |
86745d8b | 394 | `[ "$t" = "narrowc" ] && echo --with-termlib=tinfo` \ |
bfe1efd6 AM |
395 | `[ "$t" = "wideclowcolor" ] && echo --with-termlib=tinfow --enable-widec --disable-ext-colors --includedir=%{_includedir}wlc` \ |
396 | `[ "$t" = "widec" ] && echo --with-termlib=tinfow --enable-widec --enable-ext-colors --includedir=%{_includedir}w` | |
e034c592 | 397 | %endif |
46e682ba | 398 | |
9784f57c | 399 | %{__make} -j1 |
46e682ba | 400 | |
0590ad17 JB |
401 | cd .. |
402 | done | |
f0a3cad1 | 403 | |
404 | %install | |
697b1c3d | 405 | rm -rf $RPM_BUILD_ROOT |
b125fe8f | 406 | install -d $RPM_BUILD_ROOT{/%{_lib},%{_mandir}} |
697b1c3d | 407 | |
e034c592 | 408 | %if "%{pld_release}" == "ti" |
409 | for t in widec narrowc; do | |
410 | %else | |
faa32778 | 411 | for t in narrowc widec; do |
e034c592 | 412 | %endif |
0590ad17 | 413 | %{__make} -C obj-$t install \ |
ff180380 | 414 | INSTALL_PREFIX=$RPM_BUILD_ROOT |
0590ad17 | 415 | done |
03a65fe5 | 416 | |
9144fb94 | 417 | ln -sf ../l/linux $RPM_BUILD_ROOT%{_datadir}/terminfo/c/console |
03a65fe5 | 418 | |
0543da40 | 419 | %if "%{pld_release}" != "ti" |
420 | mv -f $RPM_BUILD_ROOT%{_libdir}/libtinfow.so.6* $RPM_BUILD_ROOT/%{_lib} | |
ffe37d7f | 421 | mv -f $RPM_BUILD_ROOT%{_libdir}/libncursesw.so.6* $RPM_BUILD_ROOT/%{_lib} |
73723af5 | 422 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libtinfow.so.6.*) $RPM_BUILD_ROOT%{_libdir}/libtinfow.so |
0543da40 | 423 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncursesw.so.6.*) $RPM_BUILD_ROOT%{_libdir}/libncursesw.so |
73723af5 | 424 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncursesw.so.6.*) $RPM_BUILD_ROOT%{_libdir}/libcursesw.so |
0543da40 | 425 | %else |
426 | mv -f $RPM_BUILD_ROOT%{_libdir}/libtinfow.so.5* $RPM_BUILD_ROOT/%{_lib} | |
427 | mv -f $RPM_BUILD_ROOT%{_libdir}/libncursesw.so.5* $RPM_BUILD_ROOT/%{_lib} | |
73723af5 JB |
428 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libtinfow.so.5.*) $RPM_BUILD_ROOT%{_libdir}/libtinfow.so |
429 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncursesw.so.5.*) $RPM_BUILD_ROOT%{_libdir}/libcursesw.so | |
0543da40 | 430 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncursesw.so.5.*) $RPM_BUILD_ROOT%{_libdir}/libncursesw.so |
431 | %endif | |
73723af5 JB |
432 | mv -f $RPM_BUILD_ROOT%{_libdir}/libtinfo.so.* $RPM_BUILD_ROOT/%{_lib} |
433 | mv -f $RPM_BUILD_ROOT%{_libdir}/libncurses.so.* $RPM_BUILD_ROOT/%{_lib} | |
434 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libtinfo.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libtinfo.so | |
02913cb5 JB |
435 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncurses.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libcurses.so |
436 | ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libncurses.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libncurses.so | |
ffe37d7f | 437 | |
f028bbe4 | 438 | ln -sf libncursesw.a $RPM_BUILD_ROOT%{_libdir}/libcursesw.a |
4dca32b3 | 439 | |
e034c592 | 440 | %if "%{pld_release}" != "ti" |
86745d8b | 441 | cp -a obj-wideclowcolor/lib/lib*w.so.5* $RPM_BUILD_ROOT%{_libdir} |
e034c592 | 442 | %endif |
e39bc433 | 443 | |
6311b3f9 | 444 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
34d400f8 | 445 | |
19773ec3 ER |
446 | rm $RPM_BUILD_ROOT%{_libdir}/libcurses.a |
447 | rm $RPM_BUILD_ROOT%{_libdir}/libcursesw.a | |
19773ec3 ER |
448 | rm $RPM_BUILD_ROOT%{_mandir}/README.ncurses-non-english-man-pages |
449 | ||
c277e513 ER |
450 | # FIXME: should be fixed properly |
451 | # fix too many w's | |
8d40a5af | 452 | sed -i -e 's/tinfoww/tinfow/' $RPM_BUILD_ROOT%{_bindir}/ncurses*-config $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc |
c277e513 | 453 | |
83df94a1 JB |
454 | %clean |
455 | rm -rf $RPM_BUILD_ROOT | |
34d400f8 | 456 | |
e0340545 | 457 | %post -p /sbin/ldconfig |
458 | %postun -p /sbin/ldconfig | |
f0a3cad1 | 459 | |
e0340545 | 460 | %post ext -p /sbin/ldconfig |
461 | %postun ext -p /sbin/ldconfig | |
f0a3cad1 | 462 | |
463 | %files | |
03a65fe5 | 464 | %defattr(644,root,root,755) |
ff180380 | 465 | %doc ANNOUNCE README |
740d1fbf JB |
466 | %attr(755,root,root) %{_bindir}/captoinfo |
467 | %attr(755,root,root) %{_bindir}/clear | |
468 | %attr(755,root,root) %{_bindir}/infocmp | |
469 | %attr(755,root,root) %{_bindir}/infotocap | |
470 | %attr(755,root,root) %{_bindir}/reset | |
02913cb5 | 471 | %attr(755,root,root) %{_bindir}/tabs |
740d1fbf JB |
472 | %attr(755,root,root) %{_bindir}/tic |
473 | %attr(755,root,root) %{_bindir}/toe | |
474 | %attr(755,root,root) %{_bindir}/tput | |
475 | %attr(755,root,root) %{_bindir}/tset | |
02913cb5 JB |
476 | %attr(755,root,root) /%{_lib}/libncurses.so.*.* |
477 | %attr(755,root,root) %ghost /%{_lib}/libncurses.so.5 | |
ffe37d7f AM |
478 | %attr(755,root,root) /%{_lib}/libncursesw.so.*.* |
479 | %if "%{pld_release}" != "ti" | |
480 | %attr(755,root,root) %ghost /%{_lib}/libncursesw.so.6 | |
481 | %endif | |
02913cb5 JB |
482 | %attr(755,root,root) /%{_lib}/libtinfo.so.*.* |
483 | %attr(755,root,root) %ghost /%{_lib}/libtinfo.so.5 | |
80214309 | 484 | %attr(755,root,root) /%{_lib}/libtinfow.so.*.* |
0543da40 | 485 | %if "%{pld_release}" != "ti" |
80214309 | 486 | %attr(755,root,root) %ghost /%{_lib}/libtinfow.so.6 |
02913cb5 | 487 | %attr(755,root,root) %{_libdir}/libncursesw.so.*.* |
e39bc433 | 488 | %attr(755,root,root) %ghost %{_libdir}/libncursesw.so.5 |
02913cb5 | 489 | %attr(755,root,root) %{_libdir}/libtinfow.so.*.* |
e39bc433 | 490 | %attr(755,root,root) %ghost %{_libdir}/libtinfow.so.5 |
0543da40 | 491 | %else |
492 | %attr(755,root,root) %ghost /%{_lib}/libtinfow.so.5 | |
493 | %attr(755,root,root) %ghost /%{_lib}/libncursesw.so.5 | |
494 | %endif | |
03a65fe5 | 495 | |
9144fb94 | 496 | %{_datadir}/tabset |
a58274aa | 497 | |
9144fb94 | 498 | %dir %{_datadir}/terminfo |
b4ea1dfd | 499 | %{_datadir}/terminfo/E |
454a5487 | 500 | %dir %{_datadir}/terminfo/[cdgklprsvx] |
a58274aa | 501 | |
454a5487 | 502 | %{_datadir}/terminfo/c/cygwin* |
5dd40f65 | 503 | %{_datadir}/terminfo/d/dumb |
cfa7950f | 504 | %{_datadir}/terminfo/g/gnome* |
c6a56298 | 505 | %{_datadir}/terminfo/k/klone+color |
1f69be4c | 506 | %{_datadir}/terminfo/k/konsole* |
9144fb94 | 507 | %{_datadir}/terminfo/l/linux* |
cfa7950f AM |
508 | %{_datadir}/terminfo/p/putty* |
509 | %{_datadir}/terminfo/r/rxvt* | |
b4ea1dfd | 510 | %{_datadir}/terminfo/s/screen* |
9144fb94 | 511 | %{_datadir}/terminfo/v/vt100 |
512 | %{_datadir}/terminfo/v/vt220 | |
513 | %{_datadir}/terminfo/v/vt220-8 | |
514 | %{_datadir}/terminfo/v/vt52 | |
515 | %{_datadir}/terminfo/x/xterm* | |
03a65fe5 | 516 | |
e31aaaa7 | 517 | %{_mandir}/man[157]/* |
6311b3f9 | 518 | %lang(fi) %{_mandir}/fi/man1/* |
519 | %lang(fr) %{_mandir}/fr/man1/* | |
520 | %lang(hu) %{_mandir}/hu/man1/* | |
521 | %lang(id) %{_mandir}/id/man1/* | |
522 | %lang(it) %{_mandir}/it/man1/* | |
523 | %lang(pl) %{_mandir}/pl/man[157]/* | |
03a65fe5 | 524 | |
03a65fe5 | 525 | %files -n terminfo |
526 | %defattr(644,root,root,755) | |
c6a56298 | 527 | %{_datadir}/terminfo/[1-9ALMNPQXa-ce-jm-rt-uwz] |
ff180380 | 528 | %{_datadir}/terminfo/[dklsvx]/* |
454a5487 | 529 | %exclude %{_datadir}/terminfo/c/cygwin* |
58e6c940 | 530 | %exclude %{_datadir}/terminfo/d/dumb |
cfa7950f | 531 | %exclude %{_datadir}/terminfo/g/gnome* |
c6a56298 | 532 | %exclude %{_datadir}/terminfo/k/klone+color |
14fb6b63 | 533 | %exclude %{_datadir}/terminfo/k/konsole* |
58e6c940 | 534 | %exclude %{_datadir}/terminfo/l/linux* |
cfa7950f AM |
535 | %exclude %{_datadir}/terminfo/p/putty* |
536 | %exclude %{_datadir}/terminfo/r/rxvt* | |
58e6c940 AF |
537 | %exclude %{_datadir}/terminfo/s/screen* |
538 | %exclude %{_datadir}/terminfo/v/vt100 | |
539 | %exclude %{_datadir}/terminfo/v/vt220 | |
540 | %exclude %{_datadir}/terminfo/v/vt220-8 | |
541 | %exclude %{_datadir}/terminfo/v/vt52 | |
542 | %exclude %{_datadir}/terminfo/x/xterm* | |
f0a3cad1 | 543 | |
544 | %files devel | |
03a65fe5 | 545 | %defattr(644,root,root,755) |
57666f05 | 546 | %doc doc/html/ncurses-intro.html |
740d1fbf | 547 | %attr(755,root,root) %{_bindir}/ncurses5-config |
e034c592 | 548 | %if "%{pld_release}" == "ti" |
549 | %attr(755,root,root) %{_bindir}/ncursesw5-config | |
550 | %else | |
67ab943f | 551 | %attr(755,root,root) %{_bindir}/ncursesw6-config |
e034c592 | 552 | %endif |
ff180380 JB |
553 | %attr(755,root,root) %{_libdir}/libcurses.so |
554 | %attr(755,root,root) %{_libdir}/libncurses.so | |
555 | %attr(755,root,root) %{_libdir}/libtinfo.so | |
0590ad17 JB |
556 | %attr(755,root,root) %{_libdir}/libcursesw.so |
557 | %attr(755,root,root) %{_libdir}/libncursesw.so | |
558 | %attr(755,root,root) %{_libdir}/libtinfow.so | |
00ed8ef1 | 559 | %dir %{_includedir} |
06c46e64 | 560 | %{_includedir}/curses.h |
561 | %{_includedir}/eti.h | |
abe0dae1 | 562 | %{_includedir}/nc_tparm.h |
06c46e64 | 563 | %{_includedir}/ncurses.h |
43c9b3d0 | 564 | %{_includedir}/ncurses_dll.h |
06c46e64 | 565 | %{_includedir}/term.h |
abe0dae1 | 566 | %{_includedir}/term_entry.h |
06c46e64 | 567 | %{_includedir}/termcap.h |
abe0dae1 | 568 | %{_includedir}/tic.h |
06c46e64 | 569 | %{_includedir}/unctrl.h |
0590ad17 JB |
570 | %dir %{_includedir}w |
571 | %{_includedir}w/curses.h | |
572 | %{_includedir}w/eti.h | |
abe0dae1 | 573 | %{_includedir}w/nc_tparm.h |
0590ad17 JB |
574 | %{_includedir}w/ncurses.h |
575 | %{_includedir}w/ncurses_dll.h | |
576 | %{_includedir}w/term.h | |
abe0dae1 | 577 | %{_includedir}w/term_entry.h |
0590ad17 | 578 | %{_includedir}w/termcap.h |
abe0dae1 | 579 | %{_includedir}w/tic.h |
0590ad17 | 580 | %{_includedir}w/unctrl.h |
1de3072c ER |
581 | %{_pkgconfigdir}/*.pc |
582 | ||
e31aaaa7 | 583 | %{_mandir}/man3/* |
ff180380 JB |
584 | %exclude %{_mandir}/man3/form* |
585 | %exclude %{_mandir}/man3/menu* | |
586 | %exclude %{_mandir}/man3/panel* | |
6311b3f9 | 587 | %lang(pl) %{_mandir}/pl/man3/* |
f0a3cad1 | 588 | |
589 | %files static | |
56de83d6 | 590 | %defattr(644,root,root,755) |
0681fcad | 591 | %{_libdir}/libncurses.a |
f98533be | 592 | %{_libdir}/libtinfo.a |
0590ad17 JB |
593 | %{_libdir}/libncursesw.a |
594 | %{_libdir}/libtinfow.a | |
ff180380 JB |
595 | |
596 | %files ext | |
597 | %defattr(644,root,root,755) | |
e034c592 | 598 | %if "%{pld_release}" == "ti" |
599 | %attr(755,root,root) %{_libdir}/libform.so.* | |
600 | %attr(755,root,root) %{_libdir}/libmenu.so.* | |
601 | %attr(755,root,root) %{_libdir}/libpanel.so.* | |
602 | %attr(755,root,root) %{_libdir}/libformw.so.* | |
603 | %attr(755,root,root) %{_libdir}/libmenuw.so.* | |
604 | %attr(755,root,root) %{_libdir}/libpanelw.so.* | |
605 | %else | |
e39bc433 JR |
606 | %attr(755,root,root) %{_libdir}/libform.so.*.* |
607 | %attr(755,root,root) %ghost %{_libdir}/libform.so.[56] | |
608 | %attr(755,root,root) %{_libdir}/libmenu.so.*.* | |
609 | %attr(755,root,root) %ghost %{_libdir}/libmenu.so.[56] | |
610 | %attr(755,root,root) %{_libdir}/libpanel.so.*.* | |
611 | %attr(755,root,root) %ghost %{_libdir}/libpanel.so.[56] | |
612 | %attr(755,root,root) %{_libdir}/libformw.so.*.* | |
613 | %attr(755,root,root) %ghost %{_libdir}/libformw.so.[56] | |
614 | %attr(755,root,root) %{_libdir}/libmenuw.so.*.* | |
615 | %attr(755,root,root) %ghost %{_libdir}/libmenuw.so.[56] | |
616 | %attr(755,root,root) %{_libdir}/libpanelw.so.*.* | |
617 | %attr(755,root,root) %ghost %{_libdir}/libpanelw.so.[56] | |
e034c592 | 618 | %endif |
ff180380 JB |
619 | |
620 | %files ext-devel | |
621 | %defattr(644,root,root,755) | |
622 | %attr(755,root,root) %{_libdir}/libform.so | |
623 | %attr(755,root,root) %{_libdir}/libmenu.so | |
624 | %attr(755,root,root) %{_libdir}/libpanel.so | |
0590ad17 JB |
625 | %attr(755,root,root) %{_libdir}/libformw.so |
626 | %attr(755,root,root) %{_libdir}/libmenuw.so | |
627 | %attr(755,root,root) %{_libdir}/libpanelw.so | |
ff180380 JB |
628 | %{_includedir}/form.h |
629 | %{_includedir}/menu.h | |
630 | %{_includedir}/panel.h | |
0590ad17 JB |
631 | %{_includedir}w/form.h |
632 | %{_includedir}w/menu.h | |
633 | %{_includedir}w/panel.h | |
ff180380 JB |
634 | %{_mandir}/man3/form* |
635 | %{_mandir}/man3/menu* | |
636 | %{_mandir}/man3/panel* | |
637 | ||
638 | %files ext-static | |
639 | %defattr(644,root,root,755) | |
0681fcad | 640 | %{_libdir}/libform.a |
0681fcad | 641 | %{_libdir}/libmenu.a |
ff180380 | 642 | %{_libdir}/libpanel.a |
0590ad17 JB |
643 | %{_libdir}/libformw.a |
644 | %{_libdir}/libmenuw.a | |
645 | %{_libdir}/libpanelw.a | |
17ef06ef | 646 | |
af792b88 | 647 | %if %{with cxx} |
ec2eb5ae | 648 | %files c++-devel |
17ef06ef | 649 | %defattr(644,root,root,755) |
83df94a1 | 650 | %doc c++/{demo.cc,README-first,NEWS,PROBLEMS} |
06c46e64 | 651 | %{_includedir}/cursesapp.h |
652 | %{_includedir}/cursesf.h | |
653 | %{_includedir}/cursesm.h | |
654 | %{_includedir}/cursesp.h | |
655 | %{_includedir}/cursesw.h | |
656 | %{_includedir}/etip.h | |
657 | %{_includedir}/cursslk.h | |
0590ad17 JB |
658 | %{_includedir}w/cursesapp.h |
659 | %{_includedir}w/cursesf.h | |
660 | %{_includedir}w/cursesm.h | |
661 | %{_includedir}w/cursesp.h | |
662 | %{_includedir}w/cursesw.h | |
663 | %{_includedir}w/etip.h | |
664 | %{_includedir}w/cursslk.h | |
17ef06ef | 665 | |
ec2eb5ae | 666 | %files c++-static |
17ef06ef | 667 | %defattr(644,root,root,755) |
0681fcad | 668 | %{_libdir}/libncurses++.a |
0590ad17 | 669 | %{_libdir}/libncurses++w.a |
a52a33b5 | 670 | %endif |
3768c26d AF |
671 | |
672 | %if %{with ada} | |
673 | %files ada-devel | |
674 | %defattr(644,root,root,755) | |
675 | %doc Ada95/{README,TODO} | |
02913cb5 | 676 | %attr(755,root,root) %{_bindir}/adacurses-config |
67ab943f | 677 | %attr(755,root,root) %{_bindir}/adacursesw-config |
b0b405d4 | 678 | %{_libdir}/gcc/*/*/adainclude/* |
679 | %{_libdir}/gcc/*/*/adalib/* | |
3768c26d | 680 | %endif |