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