]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- fix min_kernel for nptl
[packages/glibc.git] / glibc.spec
1 #
2 # You can define min_kernel macro by "rpm --define 'min_kernel version'"
3 # default is 2.4.6
4 #
5 # Conditional build:
6 %bcond_without  fp              # build without frame pointer (pass \--enable-omitfp)
7 %bcond_without  memusage        # don't build memusage utility
8 %bcond_with     kernelheaders   # use headers from kernel-headers instead of
9                                 # glibc-kernel-headers (evil, breakage etc., don't use)
10 %bcond_without  dist_kernel     # for above, allow non-distribution kernel
11 %bcond_with     idn             # build with included libidn
12 %bcond_with     nptl            # use nptl instead of linuxthreads
13 %bcond_without  tests           # do not perform "make test"
14
15 #
16 # TODO:
17 # - localedb-gen man pages(?)
18 # - fix what trojan broke while upgreading (getaddrinfo-workaround)
19 #
20 # WARNING:
21 #       posix zoneinfo dir removed, /etc/rc.d/init.d/timezone must be changed
22 #       in order to use this version!
23 #
24
25 %{!?min_kernel:%global          min_kernel      2.4.6}
26
27 %if %{with nptl}
28 %ifarch i686 athlon amd64 ia64 s390 s390x sparcv9 ppc ppc64
29 %if "%{min_kernel}" < "2.6.0"
30 %global         min_kernel      2.6.0
31 %endif
32 %else
33 %undefine with_nptl
34 %endif
35 %endif
36
37 %define gkh_version     7:2.6.0.3
38 Summary:        GNU libc
39 Summary(de):    GNU libc
40 Summary(es):    GNU libc
41 Summary(fr):    GNU libc
42 Summary(ja):    GNU libc ¥é¥¤¥Ö¥é¥ê
43 Summary(pl):    GNU libc
44 Summary(ru):    GNU libc ×ÅÒÓÉÉ 2.3
45 Summary(tr):    GNU libc
46 Summary(uk):    GNU libc ×ÅÒÓ¦§ 2.3
47 Name:           glibc
48 Version:        2.3.3
49 Release:        0.20040101.2%{?with_nptl:+nptl}
50 Epoch:          6
51 License:        LGPL
52 Group:          Libraries
53 # 20040101 snapshot
54 #Source0:       ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
55 Source0:        %{name}-%{version}.tar.bz2
56 # Source0-md5:  b4e3f037a0b36afc705af344033a91c7
57 #Source1:       ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
58 Source1:        %{name}-linuxthreads-%{version}.tar.bz2
59 # Source1-md5:  97c30992592f854a67107579dcef61dd
60 Source2:        nscd.init
61 Source3:        nscd.sysconfig
62 Source4:        nscd.logrotate
63 Source5:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
64 # Source5-md5:  ddba280857330dabba4d8c16d24a6dfd
65 Source6:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
66 # Source6-md5:  2e3992c2e1bc94212c2cd33236de6058
67 # borrowed from util-linux
68 Source7:        sln.8
69 Source8:        %{name}-localedb-gen
70 Patch0:         %{name}-info.patch
71 Patch1:         %{name}-initgroups-overflow.patch
72 Patch2:         %{name}-pld.patch
73 Patch3:         %{name}-crypt-blowfish.patch
74 Patch4:         %{name}-string2-pointer-arith.patch
75 Patch5:         %{name}-linuxthreads-lock.patch
76 Patch6:         %{name}-pthread_create-manpage.patch
77 Patch9:         %{name}-paths.patch
78 Patch10:        %{name}-vaargs.patch
79 Patch11:        %{name}-getaddrinfo-workaround.patch
80 Patch12:        %{name}-postshell.patch
81 Patch14:        %{name}-missing-nls.patch
82 Patch16:        %{name}-java-libc-wait.patch
83 Patch18:        %{name}-lthrds_noomit.patch
84 Patch19:        %{name}-no_opt_override.patch
85 Patch23:        %{name}-kernel_includes.patch
86 Patch24:        %{name}-includes.patch
87 Patch26:        %{name}-alpha-fix-as-syntax.patch
88 Patch27:        %{name}-soinit-EH_FRAME.patch
89 Patch28:        %{name}-fix-asserts.patch
90 Patch30:        %{name}-sparc-errno_fix.patch
91 Patch31:        %{name}-make.patch
92 Patch32:        %{name}-tests-io-tmp.patch
93 URL:            http://www.gnu.org/software/libc/
94 BuildRequires:  automake
95 BuildRequires:  binutils >= 2.13.90.0.2
96 BuildRequires:  gcc >= 3.2
97 %{?with_memusage:BuildRequires: gd-devel >= 2.0.1}
98 BuildRequires:  gettext-devel >= 0.10.36
99 %if %{with kernelheaders}
100 %{?with_dist_kernel:BuildRequires:      kernel-headers < 2.5}
101 %else
102 BuildRequires:  glibc-kernel-headers >= %{gkh_version}
103 %endif
104 BuildRequires:  perl-base
105 BuildRequires:  rpm-build >= 4.3-0.20030610.28
106 BuildRequires:  rpm-perlprov
107 BuildRequires:  sed >= 4.0.5
108 BuildRequires:  texinfo
109 PreReq:         basesystem
110 Provides:       ld.so.2
111 Provides:       ldconfig
112 Provides:       /sbin/ldconfig
113 Obsoletes:      %{name}-common
114 Obsoletes:      %{name}-debug
115 Obsoletes:      ldconfig
116 AutoReq:        false
117 Requires:       glibc-misc = %{epoch}:%{version}-%{release}
118 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
119 Conflicts:      kernel < %{min_kernel}
120 Conflicts:      ld.so < 1.9.9-10
121 Conflicts:      man-pages < 1.43
122 Conflicts:      rc-scripts < 0.3.1-13
123 Conflicts:      rpm < 4.1
124
125 %define         debugcflags     -O1 -g
126 %ifarch sparc64
127 %undefine       with_memusage
128 %define         specflags_sparc64       -mvis -fcall-used-g6
129 %define         _libdir                 /usr/lib64
130 %endif
131 # hack: don't depend on rpmlib(PartialHardlinkSets) for easier upgrade from Ra
132 # (hardlinks here are unlikely to be "partial"... and rpm 4.0.2 from Ra was
133 # patched not to crash on partial hardlinks too)
134 %define         _hack_dontneed_PartialHardlinkSets      1
135
136 %description
137 Contains the standard libraries that are used by multiple programs on
138 the system. In order to save disk space and memory, as well as to ease
139 upgrades, common system code is kept in one place and shared between
140 programs. This package contains the most important sets of shared
141 libraries, the standard C library and the standard math library.
142 Without these, a Linux system will not function. It also contains
143 national language (locale) support and timezone databases.
144
145 Can be used on: Linux kernel >= %{min_kernel}.
146
147 %description -l es
148 Contiene las bibliotecas estándared que son usadas por varios programas
149 del sistema. Para ahorrar el espacio en el disco y la memoria, igual que
150 para facilitar actualizaciones, código común del sistema se guarda en un
151 sitio y es compartido entre los programas. Este paquete contiene las
152 bibliotecas compartidas más importantes, es decir la biblioteca C estándar
153 y la biblioteca estándar de matemática. Sin éstas, un sistema Linux no
154 podrá funcionar. También está incluido soporte de idiomas nacionales
155 (locale) y bases de datos de zona de tiempo.
156
157 Puede usarse con: núcleo Linux >= %{min_kernel}.
158
159 %description -l de
160 Enthält die Standard-Libraries, die von verschiedenen Programmen im
161 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
162 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
163 einer einzigen Stelle gespeichert und wird von den Programmen
164 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
165 shared Libraries, die Standard-C-Library und die
166 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
167 Ferner enthält es den Support für die verschiedenen Sprachgregionen
168 (locale) und die Zeitzonen-Datenbank.
169
170 Can be used on: Linux kernel >= %{min_kernel}.
171
172 %description -l fr
173 Contient les bibliothèques standards utilisées par de nombreux
174 programmes du système. Afin d'économiser l'espace disque et mémoire,
175 et de faciliter les mises à jour, le code commun au système est mis à
176 un endroit et partagé entre les programmes. Ce paquetage contient les
177 bibliothèques partagées les plus importantes, la bibliothèque standard
178 du C et la bibliothèque mathématique standard. Sans celles-ci, un
179 système Linux ne peut fonctionner. Il contient aussi la gestion des
180 langues nationales (locales) et les bases de données des zones
181 horaires.
182
183 Can be used on: Linux kernel >= %{min_kernel}.
184
185 %description -l ja
186 glibc
187 ¥Ñ¥Ã¥±¡¼¥¸¤Ï¥·¥¹¥Æ¥à¾å¤ÎÊ£¿ô¤Î¥×¥í¥°¥é¥à¤Ç»È¤ï¤ì¤ëɸ½à¥é¥¤¥Ö¥é¥ê¤ò
188 ¤Õ¤¯¤ß¤Þ¤¹¡£¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤È¥á¥â¥ê¤òÀáÌó¤·¤¿¤ê¡¢¥¢¥Ã¥×¥°¥ì¡¼¥É¤ò
189 ÍѰդˤ¹¤ë¤¿¤á¤Ë¡¢¶¦Ä̤Υ·¥¹¥Æ¥à¥³¡¼¥É¤Ï°ì¤Ä¤Î¾ì½ê¤Ë¤ª¤«¤ì¡¢¥×¥í¥°¥é¥à
190 ´Ö¤Ç¶¦Í­¤µ¤ì¤Þ¤¹¡£¤³¤ÎÉôʬŪ¤Ê¥Ñ¥Ã¥±¡¼¥¸¤Ï¥·¥§¥¢¥É¥é¥¤¥Ö¥é¥ê¤Î¤«¤Ê¤ê
191 ½ÅÍפʥ»¥Ã¥È¤ò¤Õ¤¯¤ß¤Þ¤¹: É¸½à C ¥é¥¤¥Ö¥é¥ê¤Èɸ½à¿ôÃͥ饤¥Ö¥é¥ê¤Ç¤¹¡£
192 ¤³¤ÎÆó¤Ä¤Î¥é¥¤¥Ö¥é¥êÈ´¤­¤Ç¤Ï¡¢Linux ¥·¥¹¥Æ¥à¤Ïµ¡Ç½¤·¤Þ¤»¤ó¡£ glibc
193 ¥Ñ¥Ã¥±¡¼¥¸¤Ï¤Þ¤¿ÃÏ°è¸À¸ì (locale) ¥µ¥Ý¡¼¥È¤È¥¿¥¤¥à¥¾¡¼¥ó¥Ç¡¼¥¿¥Ù¡¼¥¹
194 ¥µ¥Ý¡¼¥È¤ò¤Õ¤¯¤ß¤Þ¤¹¡£
195
196 Can be used on: Linux kernel >= %{min_kernel}.
197
198 %description -l pl
199 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
200 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
201 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
202 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
203 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
204 standardowych, wspó³dzielonych (dynamicznych) bibliotek C i
205 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
206 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
207 jêzyków (locale) oraz definicje stref czasowych.
208
209 Przeznaczony dla j±dra Linux >= %{min_kernel}.
210
211 %description -l ru
212 óÏÄÅÒÖÉÔ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÉÓÐÏÌØÚÕÅÍÙÅ ÍÎÏÇÏÞÉÓÌÅÎÎÙÍÉ
213 ÐÒÏÇÒÁÍÍÁÍÉ × ÓÉÓÔÅÍÅ. äÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÓÏÈÒÁÎÉÔØ ÄÉÓËÏ×ÏÅ ÐÒÏÓÔÒÁÎÓÔ×Ï
214 É ÐÁÍÑÔØ, Á ÔÁËÖÅ ÄÌÑ ÐÒÏÓÔÏÔÙ ÏÂÎÏ×ÌÅÎÉÑ, ÓÉÓÔÅÍÎÙÊ ËÏÄ, ÏÂÝÉÊ ÄÌÑ
215 ×ÓÅÈ ÐÒÏÇÒÁÍÍ, ÈÒÁÎÉÔÓÑ × ÏÄÎÏÍ ÍÅÓÔÅ É ËÏÌÌÅËÔÉ×ÎÏ ÉÓÐÏÌØÚÕÅÔÓÑ ×ÓÅÍÉ
216 ÐÒÏÇÒÁÍÍÁÍÉ. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÁÉÂÏÌÅÅ ×ÁÖÎÙÅ ÉÚ ÒÁÚÄÅÌÑÅÍÙÈ
217 ÂÉÂÌÉÏÔÅË - ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ C É ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ
218 ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÜÔÉÈ ÂÉÂÌÉÏÔÅË Linux ÆÕÎËÃÉÏÎÉÒÏ×ÁÔØ ÎÅ ÂÕÄÅÔ. ôÁËÖÅ
219 ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÏÄÄÅÒÖËÕ ÎÁÃÉÏÎÁÌØÎÙÈ ÑÚÙËÏ× (locale) É ÂÁÚÙ ÄÁÎÎÙÈ
220 ×ÒÅÍÅÎÎÙÈ ÚÏΠ(timezone databases).
221
222 Can be used on: Linux kernel >= %{min_kernel}.
223
224 %description -l tr
225 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
226 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
227 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
228 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
229 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
230 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
231 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
232
233 Can be used on: Linux kernel >= %{min_kernel}.
234
235 %description -l uk
236 í¦ÓÔÉÔØ ÓÔÁÎÄÁÒÔΦ Â¦Â̦ÏÔÅËÉ, ËÏÔÒ¦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÞÉÓÌÅÎÎÉÍÉ
237 ÐÒÏÇÒÁÍÁÍÉ × ÓÉÓÔÅͦ. äÌÑ ÔÏÇÏ, ÝÏ ÚÂÅÒÅÇÔÉ ÄÉÓËÏ×ÉÊ ÐÒÏÓÔ¦Ò ÔÁ
238 ÐÁÍ'ÑÔØ, Á ÔÁËÏÖ ÄÌÑ ÐÒÏÓÔÏÔÉ ÐÏÎÏ×ÌÅÎÎÑ ÓÉÓÔÅÍÉ, ÓÉÓÔÅÍÎÉÊ ËÏÄ,
239 ÓЦÌØÎÉÊ ÄÌÑ ×ӦȠÐÒÏÇÒÁÍ, ÚÂÅÒ¦ÇÁ¤ÔØÓÑ × ÏÄÎÏÍՠͦÓæ ¦ ËÏÌÅËÔÉ×ÎÏ
240 ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ ×Ó¦ÍÁ ÐÒÏÇÒÁÍÁÍÉ. ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÁʦÌØÛ ×ÁÖÌÉצ
241 Ú ÄÉÎÁͦÞÎÉȠ¦Â̦ÏÔÅË - ÓÔÁÎÄÁÒÔÎՠ¦Â̦ÏÔÅËÕ ó ÔÁ ÓÔÁÎÄÁÒÔÎÕ
242 ¦Â̦ÏÔÅËÕ ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÃÉȠ¦Â̦ÏÔÅË Linux ÆÕÎËæÏÎÕ×ÁÔÉ ÎÅ ÂÕÄÅ.
243 ôÁËÏÖ ÐÁËÅԠͦÓÔÉÔؠЦÄÔÒÉÍËÕ ÎÁæÏÎÁÌØÎÉÈ ÍÏ× (locale) ÔÁ ÂÁÚÉ ÄÁÎÎÉÈ
244 ÞÁÓÏ×ÉÈ ÚÏΠ(timezone databases).
245
246 Can be used on: Linux kernel >= %{min_kernel}.
247
248 %package misc
249 Summary:        Utilities and data used by glibc
250 Summary(pl):    Narzêdzia i dane u¿ywane przez glibc
251 Group:          Development/Libraries
252 Requires:       %{name} = %{epoch}:%{version}-%{release}
253
254 %description misc
255 Utilities and data used by glibc.
256
257 %description misc -l pl
258 Narzêdzia i dane u¿ywane przez glibc.
259
260 %package devel
261 Summary:        Additional libraries required to compile
262 Summary(de):    Weitere Libraries zum Kompilieren
263 Summary(es):    Bibliotecas adicionales necesarias para la compilación
264 Summary(fr):    Librairies supplémentaires nécessaires à la compilation
265 Summary(ja):    É¸½à C ¥é¥¤¥Ö¥é¥ê¤Ç»È¤ï¤ì¤ë¥Ø¥Ã¥À¡¼¤È¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë
266 Summary(pl):    Dodatkowe biblioteki wymagane podczas kompilacji
267 Summary(ru):    äÏÐÏÌÎÉÔÅÌØÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ËÏÍÐÉÌÑÃÉÉ
268 Summary(tr):    Geliþtirme için gerekli diðer kitaplýklar
269 Summary(uk):    äÏÄÁÔËÏצ Â¦Â̦ÏÔÅËÉ, ÐÏÔÒ¦ÂΦ ÄÌÑ ËÏÍЦÌÑæ§
270 Group:          Development/Libraries
271 Requires:       %{name} = %{epoch}:%{version}-%{release}
272 %{!?with_kernelheaders:Requires:        glibc-kernel-headers >= %{gkh_version}}
273
274 %description devel
275 To develop programs which use the standard C libraries (which nearly
276 all programs do), the system needs to have these standard header files
277 and object files available for creating the executables.
278
279 %description devel -l de
280 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
281 verwenden (also fast alle), benötigt das System diese Standard-Header-
282 und Objektdateien zum Erstellen der ausführbaren Programme.
283
284 %description devel -l es
285 Para desarrollar programas que utilizan las bibliotecas C estándar
286 (lo cual hacen prácticamente todos los programas), el sistema necesita
287 disponer de estos ficheros de cabecera y de objetos para crear los
288 ejecutables.
289
290 %description devel -l fr
291 Pour développer des programmes utilisant les bibliothèques standard du
292 C (ce que presque tous les programmes font), le système doit posséder
293 ces fichiers en-têtes et objets standards pour créer les exécutables.
294
295 %description devel -l ja
296 glibc-devel ¥Ñ¥Ã¥±¡¼¥¸¤Ï(¤Û¤È¤ó¤É¤¹¤Ù¤Æ¤Î¥×¥í¥°¥é¥à¤Ç»È¤ï¤ì¤ë)ɸ½à C
297 ¥é¥¤¥Ö¥é¥ê¤ò»ÈÍѤ·¤¿¥×¥í¥°¥é¥à¤ò³«È¯¤¹¤ë¤¿¤á¤Î¥Ø¥Ã¥À¡¼¤È¥ª¥Ö¥¸¥§¥¯¥È
298 ¥Õ¥¡¥¤¥ë¤ò´Þ¤ß¤Þ¤¹¡£¤â¤·É¸½à C
299 ¥é¥¤¥Ö¥é¥ê¤ò»ÈÍѤ¹¤ë¥×¥í¥°¥é¥à¤ò³«È¯¤¹¤ë¤Ê¤é
300 ¼Â¹Ô¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ëÌÜŪ¤Ç¤³¤ì¤é¤Îɸ½à¥Ø¥Ã¥À¤È¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë
301 ¤¬»ÈÍѤǤ­¤Þ¤¹¡£
302
303 %description devel -l pl
304 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
305 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
306 nag³ówkowe oraz pliki obiektowe, niezbêdne do kompilacji programów
307 wykonywalnych i innych bibliotek.
308
309 %description devel -l ru
310 äÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ C (Á
311 ÐÒÁËÔÉÞÅÓËÉ ×ÓÅ ÐÒÏÇÒÁÍÍÙ ÉÈ ÉÓÐÏÌØÚÕÀÔ), ÓÉÓÔÅÍÅ îåïâèïäéíù ÈÅÄÅÒÙ É
312 ÏÂßÅËÔÎÙÅ ÆÁÊÌÙ, ÓÏÄÅÒÖÁÝÉÅÓÑ × ÜÔÏÍ ÐÁËÅÔÅ, ÞÔÏÂÙ ÓÏÚÄÁ×ÁÔØ
313 ÉÓÐÏÌÎÑÅÍÙÅ ÆÁÊÌÙ.
314
315 %description devel -l tr
316 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
317 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
318 kitaplýklar.
319
320 %description devel -l uk
321 äÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÓÔÁÎÄÁÒÔΦ Â¦Â̦ÏÔÅËÉ C
322 (ÐÒÁËÔÉÞÎÏ ×Ó¦ ÐÒÏÇÒÁÍÉ §È ×ÉËÏÒÉÓÔÏ×ÕÀÔØ), ÓÉÓÔÅͦ îåïâè¶äÈÅÄÅÒÉ
323 ÔÁ ÏÂ'¤ËÔΦ ÆÁÊÌÉ, ÝϠͦÓÔÑÔØÓÑ × ÃØÏÍÕ ÐÁËÅÔ¦, ÃÏ ÓÔ×ÏÒÀ×ÁÔÉ
324 ×ÉËÏÎÕ×ÁΦ ÆÁÊÌÉ.
325
326 %package -n nscd
327 Summary:        Name Service Caching Daemon
328 Summary(es):    Demonio de caché del servicio de nombres
329 Summary(ja):    ¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥­¥ã¥Ã¥·¥ó¥°¥Ç¡¼¥â¥ó (nacd)
330 Summary(pl):    Demon zapamiêtuj±cy odpowiedzi serwisów nazw
331 Summary(ru):    ëÜÛÉÒÕÀÝÉÊ ÄÅÍÏΠÓÅÒ×ÉÓÏ× ÉÍÅÎ
332 Summary(uk):    ëÅÛÕÀÞÉÊ ÄÅÍÏΠÓÅצӦנ¦ÍÅÎ
333 Group:          Networking/Daemons
334 PreReq:         rc-scripts >= 0.2.0
335 Requires(post,preun):   /sbin/chkconfig
336 Requires(post): fileutils
337 Requires:       %{name} = %{epoch}:%{version}-%{release}
338
339 %description -n nscd
340 nscd caches name service lookups; it can dramatically improve
341 performance with NIS+, and may help with DNS as well. You cannot use
342 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
343 nscd happens to hit these bugs particularly hard.
344
345 %description -n nscd -l es
346 nscd guarda las peticiones del servicio de nombres en una caché; eso puede
347 aumentar drásticamente las prestaciones de NIS+, y también puede ayudar
348 con DNS. No puede usar nscd con núcleos 2.0, por contener éstos errores
349 en el soporte de hilos. Resulta que estos errores impactan el nscd de manera
350 realmente grave.
351
352 %description -n nscd -l ja
353 Nscd ¤Ï¥Í¡¼¥à¥µ¡¼¥Ó¥¹»²¾È¤ò¥­¥ã¥Ã¥·¥å¤·¡¢NIS+ ¤Î¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤ò
354 ¥É¥é¥Þ¥Æ¥£¥Ã¥¯¤Ë²þÁ±¤¹¤ë¤³¤È¤¬¤Ç¤­¡¢DNS ¤òƱÍͤËÊä½õ¤·¤Þ¤¹¡£ 2.0
355 ¥«¡¼¥Í¥ë¤Ç nscd ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
356 ¤½¤ì¤Ï¡¢¥«¡¼¥Í¥ë¦¤Î¥¹¥ì¥Ã¥É¥µ¥Ý¡¼¥È¤Ë¥Ð¥°¤¬¤¢¤ë¤«¤é¤Ç¤¹¡£ÉÔ¹¬¤Ê¤³¤È¤Ë¡¢
357 nscd ¤Ï¤³¤ì¤é¤Î¥Ð¥°¤ËÆäˤϤ²¤·¤¯¤¢¤¿¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
358
359 %description -n nscd -l pl
360 nscd zapamiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
361 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
362 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³êdów po stronie j±dra w
363 obs³udze w±tków.
364
365 %description -n nscd -l ru
366 nscd ËÜÛÉÒÕÅÔ ÒÅÚÕÌØÔÁÔÙ ÚÁÐÒÏÓÏ× Ë ÓÅÒ×ÉÓÁÍ ÉÍÅÎ; ÜÔÏ ÍÏÖÅÔ ÒÅÚËÏ
367 Õ×ÅÌÉÞÉÔØ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔØ ÒÁÂÏÔÙ Ó NIS+ É, ÔÁËÖÅ, ÍÏÖÅÔ ÐÏÍÏÞØ Ó
368 DNS.
369
370 %description -n nscd -l uk
371 nscd ËÅÛÕ¤ ÒÅÚÕÌØÔÁÔÉ ÚÁÐÒÏӦנÄÏ ÓÅÒצӦנ¦ÍÅÎ; ÃÅ ÍÏÖÅ ÓÉÌØÎÏ
372 Ú¦ÌØÛÉÔÉ Û×ÉÄ˦ÓÔØ ÒÏÂÏÔÉ Ú NIS+ ¦, ÔÁËÏÖ, ÍÏÖÅ ÄÏÐÏÍÏÇÔÉ Ú DNS.
373
374 %package -n localedb-src
375 Summary:        locale database source code
376 Summary(es):    Código fuente de la base de datos de los locales
377 Summary(pl):    Kod ¼ród³owy bazy locale
378 Group:          Daemons
379 Requires:       %{name} = %{epoch}:%{version}-%{release}
380
381 %description -n localedb-src
382 This add-on package contains the data needed to build the locale data
383 files to use the internationalization features of the GNU libc.
384
385 %description -n localedb-src -l es
386 Este paquete adicional contiene los datos necesarios para construir
387 los ficheros de locale, imprescindibles para usar las cualidades de
388 internacionalización de GNU libc.
389
390 %description -n localedb-src -l pl
391 Pakiet ten zawiera dane niezbêdne do zbudowania binarnych plików
392 lokalizacyjnych, by móc wykorzystaæ mo¿liwo¶ci oferowane przez GNU
393 libc.
394
395 %package localedb-all
396 Summary:        locale database for all locales supported by glibc
397 Summary(es):    Base de datos de todos los locales soportados por glibc
398 Summary(pl):    Baza danych locale dla wszystkich lokalizacji obs³ugiwanych przez glibc
399 Group:          Libraries
400 Requires:       %{name} = %{epoch}:%{version}-%{release}
401
402 %description localedb-all
403 This package contains locale database for all locales supported by
404 glibc. In glibc 2.3.x it's one large file (about 19MB) - if you want
405 something smaller with support for chosen locales only, consider
406 installing localedb-src and regenerating database using localedb-gen
407 script (when database is generated, localedb-src can be uninstalled).
408
409 %description localedb-all -l es
410 Este paquete contiene una base de datos de todos los locales soportados
411 por glibc. En glibc 2.3.x ése es un fichero grande (aprox. 19 MB) -- si
412 prefiere algo más pequeño, sólo con soporte de unos locales elegidos,
413 considérese instalar localedb-src y regenerar la base de datos usando
414 el escript localedb-gen (una vez que la base de datos esté creada,
415 localedb-src se podrá desinstalar).
416
417 %description localedb-all -l pl
418 Ten pakiet zawiera bazê danych locale dla wszystkich lokalizacji
419 obs³ugiwanych przez glibc. W glibc 2.3.x jest to jeden du¿y plik
420 (oko³o 19MB); aby mieæ co¶ mniejszego, z obs³ug± tylko wybranych
421 lokalizacji, nale¿y zainstalowaæ pakiet localedb-src i przegenerowaæ
422 bazê danych przy u¿yciu skryptu localedb-gen (po wygenerowaniu bazy
423 pakiet localedb-src mo¿na odinstalowaæ).
424
425 %package -n iconv
426 Summary:        Convert encoding of given files from one encoding to another
427 Summary(es):    Convierte entre varias codificaciones de los ficheros dados
428 Summary(pl):    Program do konwersji plików tekstowych z jednego kodowania do innego
429 Group:          Applications/Text
430 Requires:       %{name} = %{epoch}:%{version}-%{release}
431
432 %description -n iconv
433 Convert encoding of given files from one encoding to another. You need
434 this package if you want to convert some document from one encoding to
435 another or if you have installed some programs which use Generic
436 Character Set Conversion Interface.
437
438 %description -n iconv -l es
439 Convierte la codificación de dados ficheros. Necesita este paquete si
440 quiere convertir un documento entre una codificación (juego de
441 caracteres) y otra, o si tiene instalado algún programa que usa el
442 Generic Character Set Conversion Interface (interfaz genérica de
443 conversión de juegos de caracteres).
444
445 %description -n iconv -l pl
446 Program do konwersji plików tekstowych z jednego kodowania do innego.
447 Musisz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
448 dokumentów z jednego kodowania do innego lub je¿eli masz zainstalowane
449 jakie¶ programy, które korzystaj± z Generic Character Set Conversion
450 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
451 umo¿liwiaj± konwersjê kodowania danych z poziomu dowolnego programu.
452
453 %package static
454 Summary:        Static libraries
455 Summary(es):    Bibliotecas estáticas
456 Summary(pl):    Biblioteki statyczne
457 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ glibc
458 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ glibc
459 Group:          Development/Libraries
460 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
461
462 %description static
463 GNU libc static libraries.
464
465 %description static -l es
466 Bibliotecas estáticas de GNU libc.
467
468 %description static -l pl
469 Biblioteki statyczne GNU libc.
470
471 %description static -l ru
472 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
473 ×ÈÏÄÑÔ × glibc-devel.
474
475 %description static -l uk
476 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍɠ¦Â̦ÏÔÅËÁÍÉ, ÝϠ¦ÌØÛÅ ÎÅ ×ÈÏÄÑÔØ ×
477 ÓËÌÁÄ glibc-devel.
478
479 %package profile
480 Summary:        glibc with profiling support
481 Summary(de):    glibc mit Profil-Unterstützung
482 Summary(es):    glibc con soporte de perfilamiento
483 Summary(fr):    glibc avec support pour profiling
484 Summary(pl):    glibc ze wsparciem dla profilowania
485 Summary(ru):    GNU libc Ó ÐÏÄÄÅÒÖËÏÊ ÐÒÏÆÁÊÌÅÒÁ
486 Summary(tr):    Ölçüm desteði olan glibc
487 Summary(uk):    GNU libc Ú Ð¦ÄÔÒÉÍËÏÀ ÐÒÏÆÁÊÌÅÒÁ
488 Group:          Development/Libraries/Libc
489 Obsoletes:      libc-profile
490 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
491
492 %description profile
493 When programs are being profiled using gprof, they must use these
494 libraries instead of the standard C libraries for gprof to be able to
495 profile them correctly.
496
497 %description profile -l de
498 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
499 Libraries anstelle der üblichen C-Libraries verwendet werden.
500
501 %description profile -l es
502 Cuando programas son perfilidas usando gprof, tienen que usar estas
503 biblioteces en vez de las estándares para que gprof pueda perfilarlas
504 correctamente.
505
506 %description profile -l pl
507 Programy profilowane za pomoc± gprof musz± u¿ywaæ tych bibliotek
508 zamiast standardowych bibliotek C, aby gprof móg³ odpowiednio je
509 wyprofilowaæ.
510
511 %description profile -l uk
512 ëÏÌÉ ÐÒÏÇÒÁÍÉ ÄÏÓ̦ÄÖÕÀÔØÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ×ÏÎÉ ÐÏ×ÉÎΦ
513 ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÚÁͦÓÔØ ÓÔÁÎÄÁÒÔÎÉȠ¦Â̦ÏÔÅˠ¦Â̦ÏÔÅËÉ, ÝϠͦÓÔÑÔØÓÑ
514 × ÃØÏÍÕ ÐÁËÅÔ¦. ðÒÉ ×ÉËÏÒÉÓÔÁÎΦ ÓÔÁÎÄÁÒÔÎÉȠ¦Â̦ÏÔÅË gprof ÚÁͦÓÔØ
515 ÒÅÁÌØÎÉÈ ÒÅÚÕÌØÔÁԦנÂÕÄÅ ÐÏËÁÚÕ×ÁÔɠæÎÉ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
516 ÐÏÚÁÍÉÎÕÌÏÍÕ ÒÏæ...
517
518 %description profile -l tr
519 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
520 kitaplýðý kullanmak zorundadýrlar.
521
522 %description profile -l ru
523 ëÏÇÄÁ ÐÒÏÇÒÁÍÍÙ ÉÓÓÌÅÄÕÀÔÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ÏÎÉ ÄÏÌÖÎÙ
524 ÉÓÐÏÌØÚÏ×ÁÔØ, ×ÍÅÓÔÏ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË, ÂÉÂÌÉÏÔÅËÉ, ×ËÌÀÞÅÎÎÙÅ ×
525 ÜÔÏÔ ÐÁËÅÔ. ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË gprof ×ÍÅÓÔÏ
526 ÒÅÁÌØÎÙÈ ÒÅÚÕÌØÔÁÔÏ× ÂÕÄÅÔ ÐÏËÁÚÙ×ÁÔØ ÃÅÎÙ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
527 ÐÏÚÁÐÒÏÛÌÏÍ ÇÏÄÕ...
528
529 %package pic
530 Summary:        glibc PIC archive
531 Summary(es):    Archivo PIC de glibc
532 Summary(pl):    Archiwum PIC glibc
533 Group:          Development/Libraries/Libc
534 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
535
536 %description pic
537 GNU C Library PIC archive contains an archive library (ar file)
538 composed of individual shared objects. This is used for creating a
539 library which is a smaller subset of the standard libc shared library.
540
541 %description pic -l es
542 El archivo PIC de la biblioteca glibc contiene una biblioteca archivada
543 (un fichero ar) compuesta de individuales objetos compartidos. Es usado
544 para crear una biblioteca que sea un subconjunto más pequeño de la
545 biblioteca libc compartida estándar.
546
547 %description pic -l pl
548 Archiwum PIC biblioteki GNU C zawiera archiwaln± bibliotekê (plik ar)
549 z³o¿on± z pojedyñczych obiektów wspó³dzielonych. U¿ywana jest do
550 tworzenia biblioteki bêd±cej mniejszym podzestawem standardowej
551 biblioteki wspó³dzielonej libc.
552
553 %package -n nss_compat
554 Summary:        Old style NYS NSS glibc module
555 Summary(es):    El antiguo módulo NYS NSS de glibc
556 Summary(pl):    Stary modu³ NYS NSS glibc
557 Group:          Base
558 Requires:       %{name} = %{epoch}:%{version}-%{release}
559
560 %description -n nss_compat
561 Old style NYS NSS glibc module.
562
563 %description -n nss_compat -l es
564 El antiguo módulo NYS NSS de glibc
565
566 %description -n nss_compat -l pl
567 Stary modu³ NYS NSS glibc.
568
569 %package -n nss_dns
570 Summary:        BIND NSS glibc module
571 Summary(es):    Módulo BIND NSS de glibc
572 Summary(pl):    Modu³ BIND NSS glibc
573 Group:          Base
574 Requires:       %{name} = %{epoch}:%{version}-%{release}
575
576 %description -n nss_dns
577 BIND NSS glibc module.
578
579 %description -n nss_dns -l es
580 Módulo BIND NSS de glibc.
581
582 %description -n nss_dns -l pl
583 Modu³ BIND NSS glibc.
584
585 %package -n nss_files
586 Summary:        Traditional files databases NSS glibc module
587 Summary(es):    Módulo de tradicionales bases de datos en ficheros para glibc
588 Summary(pl):    Modu³ tradycyjnych plikowych baz danych NSS glibc
589 Group:          Base
590 Requires:       %{name} = %{epoch}:%{version}-%{release}
591
592 %description -n nss_files
593 Traditional files databases NSS glibc module.
594
595 %description -n nss_files -l es
596 Módulo de tradicionales bases de datos en ficheros para glibc.
597
598 %description -n nss_files -l pl
599 Modu³ tradycyjnych plikowych baz danych NSS glibc.
600
601 %package -n nss_hesiod
602 Summary:        hesiod NSS glibc module
603 Summary(es):    Módulo hesiod NSS de glibc
604 Summary(pl):    Modu³ hesiod NSS glibc
605 Group:          Base
606 Requires:       %{name} = %{epoch}:%{version}-%{release}
607
608 %description -n nss_hesiod
609 glibc NSS (Name Service Switch) module for databases access.
610
611 %description -n nss_hesiod -l es
612 Módulo hesiod NSS de glibc.
613
614 %description -n nss_hesiod -l pl
615 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych.
616
617 %package -n nss_nis
618 Summary:        NIS(YP) NSS glibc module
619 Summary(es):    Módulo NIS(YP) NSS de glibc
620 Summary(pl):    Modu³ NIS(YP) NSS glibc
621 Group:          Base
622 Requires:       %{name} = %{epoch}:%{version}-%{release}
623
624 %description -n nss_nis
625 glibc NSS (Name Service Switch) module for NIS(YP) databases access.
626
627 %description -n nss_nis -l es
628 Módulo NSS de glibc para acceder las bases de datos NIS(YP).
629
630 %description -n nss_nis -l pl
631 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS(YP).
632
633 %package -n nss_nisplus
634 Summary:        NIS+ NSS module
635 Summary(es):    Módulo NIS+ NSS
636 Summary(pl):    Modu³ NIS+ NSS
637 Group:          Base
638 Requires:       %{name} = %{epoch}:%{version}-%{release}
639
640 %description -n nss_nisplus
641 glibc NSS (Name Service Switch) module for NIS+ databases access.
642
643 %description -n nss_nisplus -l es
644 Módulo NSS (Name Service Switch) de glibc para acceder las bases de datos NIS+.
645
646 %description -n nss_nisplus -l pl
647 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS+.
648
649 %package memusage
650 Summary:        A toy
651 Summary(es):    Un juguete
652 Summary(pl):    Zabawka
653 Group:          Applications
654 Requires:       %{name} = %{epoch}:%{version}-%{release}
655 Requires:       gd
656
657 %description memusage
658 A toy.
659
660 %description memusage -l es
661 Un juguete.
662
663 %description memusage -l pl
664 Zabawka.
665
666 %package zoneinfo_right
667 Summary:        Non-POSIX (real) time zones
668 Summary(es):    Zonas de tiempo reales (no de POSIX)
669 Summary(pl):    Nie-POSIX-owe (prawdziwe) strefy czasowe
670 Group:          Libraries
671 Requires:       %{name} = %{epoch}:%{version}-%{release}
672
673 %description zoneinfo_right
674 You don't want this. Details at:
675 http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html
676
677 %description zoneinfo_right -l es
678 No lo necesita. Encontrará los detalles en:
679 http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html
680
681 %description zoneinfo_right -l pl
682 Nie potrzebujesz tego. Szczegó³y pod:
683 http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html
684
685 %package -n %{name}64
686 Summary:        GNU libc - 64-bit libraries
687 Summary(es):    GNU libc - bibliotecas de 64 bits
688 Summary(pl):    GNU libc - biblioteki 64-bitowe
689 Group:          Libraries
690 %ifarch amd64
691 Provides:       glibc = %{epoch}:%{version}-%{release}
692 %else
693 Requires:       %{name} = %{epoch}:%{version}-%{release}
694 %endif
695
696 %description -n %{name}64
697 64-bit GNU libc libraries for 64bit architecture.
698
699 %description -n %{name}64 -l es
700 Bibliotecas GNU libc de 64 bits para la arquitectura 64bit.
701
702 %description -n %{name}64 -l pl
703 Biblioteki 64-bitowe GNU libc dla architektury 64bit.
704
705 %package -n %{name}64-devel
706 Summary:        Development files for 64-bit GNU libc libraries
707 Summary(es):    Ficheros de desarrollo para bibliotecas GNU libc de 64 bits
708 Summary(pl):    Pliki do programowania z u¿yciem 64-bitowych bibliotek GNU libc
709 Group:          Development/Libraries
710 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
711
712 %description -n %{name}64-devel
713 Development files for 64-bit GNU libc libraries for 64bit
714 architecture.
715
716 %description -n %{name}64-devel -l es
717 Ficheros de desarrollo para las bibliotecas GNU libc de 64 bits para la
718 arquitectura 64bit.
719
720 %description -n %{name}64-devel -l pl
721 Pliki do programowania z u¿yciem 64-bitowych bibliotek GNU libc dla
722 architektury 64bit.
723
724 %package -n %{name}64-static
725 Summary:        Static 64-bit GNU libc libraries
726 Summary(es):    Bibliotecas estáticas GNU libc de 64 bits
727 Summary(pl):    Statyczne 64-bitowe biblioteki GNU libc
728 Group:          Development/Libraries
729 Requires:       %{name}64-devel = %{epoch}:%{version}-%{release}
730
731 %description -n %{name}64-static
732 Static 64-bit GNU libc libraries.
733
734 %description -n %{name}64-static -l es
735 Bibliotecas estáticas GNU libc de 64 bits.
736
737 %description -n %{name}64-static -l pl
738 Statyczne 64-bitowe biblioteki GNU libc.
739
740 %prep
741 %setup -q -a 1
742 %patch0 -p1
743 %patch2 -p1
744 %patch3 -p1
745 %patch4 -p1
746 %patch5 -p1
747 %patch6 -p1
748 %patch9 -p1
749 %patch10 -p1
750 #%%patch11 -p1
751 %patch12 -p1
752 %patch14 -p1
753 %patch16 -p1
754 %patch18 -p1
755 # don't know, if it is good idea, for brave ones
756 #%patch19 -p1
757 %{?with_kernelheaders:%patch23}
758 %{?!with_kernelheaders:%patch24 -p1}
759 %patch26 -p1
760 %patch27 -p1
761 %patch28 -p1
762 %patch30
763 %patch31 -p1
764 %patch32 -p1
765
766 chmod +x scripts/cpp
767
768 %build
769 # Build glibc
770 cp /usr/share/automake/config.sub .
771 cp /usr/share/automake/config.sub scripts
772 [ -d builddir ] || mkdir builddir
773 cd builddir
774 # avoid stripping ld.so by -s in rpmldflags
775 LDFLAGS=" " ; export LDFLAGS
776 ../%configure \
777         --enable-kernel="%{min_kernel}" \
778         --%{!?with_fp:en}%{?with_fp:dis}able-omitfp \
779 %if %{with nptl}
780         --enable-add-ons=nptl \
781         --with-tls \
782         --disable-profile \
783 %else
784         --enable-add-ons=linuxthreads \
785         --enable-profile \
786 %endif
787 %if %{with kernelheaders}
788         CPPFLAGS="-I%{_kernelsrcdir}/include" \
789         --with-headers=%{_kernelsrcdir}/include 
790 %else
791         CPPFLAGS="-I%{_includedir}" \
792         --with-headers=%{_includedir} 
793 %endif
794
795 # problem compiling with --enable-bounded (must be reported to libc-alpha)
796
797 %{__make} %{?parallelmkflags}
798
799 %if %{with tests}
800 env LANGUAGE=C LC_ALL=C \
801 %{__make} tests 2>&1 | awk '
802 BEGIN { file = "" }
803 {
804         if (($0 ~ /\*\*\* \[.*\.out\] Error/) && (file == "")) {
805                 file=$0;
806                 gsub(/.*\[/, NIL, file);
807                 gsub(/\].*/, NIL, file);
808         }
809         print $0;
810 }
811 END { if (file != "") { print "ERROR OUTPUT FROM " file; system("cat " file); exit(1); } }'
812 %endif
813
814 %install
815 rm -rf $RPM_BUILD_ROOT
816 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log}
817
818 cd builddir
819
820 env LANGUAGE=C LC_ALL=C \
821 %{__make} install \
822         %{?parallelmkflags} \
823         install_root=$RPM_BUILD_ROOT \
824         infodir=%{_infodir} \
825         mandir=%{_mandir}
826
827 env LANGUAGE=C LC_ALL=C \
828 %{__make} localedata/install-locales \
829         %{?parallelmkflags} \
830         install_root=$RPM_BUILD_ROOT
831
832 PICFILES="libc_pic.a libc.map
833         math/libm_pic.a libm.map
834         resolv/libresolv_pic.a"
835
836 install $PICFILES                               $RPM_BUILD_ROOT%{_libdir}
837 install elf/soinit.os                           $RPM_BUILD_ROOT%{_libdir}/soinit.o
838 install elf/sofini.os                           $RPM_BUILD_ROOT%{_libdir}/sofini.o
839
840 install elf/postshell                           $RPM_BUILD_ROOT/%{_lib}
841 mv $RPM_BUILD_ROOT/sbin/ldconfig                $RPM_BUILD_ROOT/%{_lib}
842 ln -s /%{_lib}/ldconfig                         $RPM_BUILD_ROOT/sbin
843
844 %{?with_memusage:mv -f $RPM_BUILD_ROOT/%{_lib}/libmemusage.so   $RPM_BUILD_ROOT%{_libdir}}
845 %ifnarch sparc64
846 mv -f $RPM_BUILD_ROOT/%{_lib}/libpcprofile.so   $RPM_BUILD_ROOT%{_libdir}
847 %endif
848
849 %if %{without nptl}
850 %{__make} -C ../linuxthreads/man
851 install ../linuxthreads/man/*.3thr                      $RPM_BUILD_ROOT%{_mandir}/man3
852 %endif
853
854 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules,posix/*}
855
856 #cd $RPM_BUILD_ROOT%{_datadir}/zoneinfo
857 #for i in [A-Z]*; do
858 #       ln -s ../$i posix
859 #done
860 #cd -
861
862 ln -sf %{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
863 ln -sf localtime                $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
864 ln -sf localtime                $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
865 ln -sf libbsd-compat.a          $RPM_BUILD_ROOT%{_libdir}/libbsd.a
866
867 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
868
869 # make symlinks across top-level directories absolute
870 for l in anl BrokenLocale crypt dl m nsl pthread resolv rt thread_db util ; do
871         rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
872         ln -sf /%{_lib}/`cd $RPM_BUILD_ROOT/%{_lib} ; echo lib${l}.so.*` $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
873 done
874
875 install %{SOURCE2}              $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
876 install %{SOURCE3}              $RPM_BUILD_ROOT/etc/sysconfig/nscd
877 install %{SOURCE4}              $RPM_BUILD_ROOT/etc/logrotate.d/nscd
878 install ../nscd/nscd.conf       $RPM_BUILD_ROOT%{_sysconfdir}
879 install ../nss/nsswitch.conf    $RPM_BUILD_ROOT%{_sysconfdir}
880
881 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
882 bzip2 -dc %{SOURCE6} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
883 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
884 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
885 rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
886
887 :> $RPM_BUILD_ROOT/var/log/nscd
888
889 rm -rf ../documentation
890 install -d ../documentation
891
892 %if %{without nptl}
893 cp -f ../linuxthreads/ChangeLog ../documentation/ChangeLog.threads
894 cp -f ../linuxthreads/Changes ../documentation/Changes.threads
895 cp -f ../linuxthreads/README ../documentation/README.threads
896 %endif
897 cp -f ../crypt/README.ufc-crypt ../documentation/
898
899 cp -f ../ChangeLog* ../documentation
900
901 rm -f $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
902
903 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
904 %ifnarch sparc64
905 %{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/%{_lib}/ld-%{version}.so}
906 %endif
907
908 # Collect locale files and mark them with %%lang()
909 rm -f ../glibc.lang
910 echo '%defattr(644,root,root,755)' > ../glibc.lang
911 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
912         if [ -d $i ]; then
913                 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
914                 twochar=1
915                 # list of long %%lang values we do support
916                 for j in de_AT de_BE de_CH de_LU es_AR es_MX ja_JP.SJIS ko_KR.utf8 pt_BR \
917                          zh_CN zh_CN.gbk zh_HK zh_TW ; do
918                         if [ $j = "$lang" ]; then
919                                 twochar=
920                         fi
921                 done
922                 if [ -n "$twochar" ]; then
923                         if [ `echo $lang | sed "s,_.*,,"` = "zh" ]; then
924                                 lang=`echo $lang | sed "s,\..*,,"`
925                         else
926                                 lang=`echo $lang | sed "s,_.*,,"`
927                         fi
928                 fi
929                 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
930                 echo "%lang($lang) $dir" >> ../glibc.lang
931         fi
932 done
933 # XXX: to be added when become supported by glibc
934 # am,bn,ml (present in sources, but incomplete and disabled) (used by GNOME)
935 # ia,kn,li,mn,sr@Latn (used by GNOME)
936 #       note: GNOME2 uses sr as cyrillic!
937 # nso,ss,ven,xh,zu (used by KDE)
938 for i in af ar az be bg br bs cy de_AT el en en_AU eo es_AR es_MX et eu fa fi \
939          ga gr he hi hr hu id is ja_JP.SJIS ka lg lt lv mk ms mt nn pt ro ru \
940          se sl sq sr sr@cyrillic ta tg th uk uz vi wa yi zh_CN ; do
941         if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES ]; then
942                 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
943                 lang=`echo $i | sed -e 's/_.*//'`
944                 echo "%lang($lang) %{_datadir}/locale/$i" >> ../glibc.lang
945         fi
946 done
947 install %{SOURCE7} $RPM_BUILD_ROOT%{_mandir}/man8
948
949 # localedb-gen infrastructure
950 install %{SOURCE8} $RPM_BUILD_ROOT%{_bindir}/localedb-gen
951 install ../localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
952
953 # shutup check-files
954 rm -f $RPM_BUILD_ROOT%{_mandir}/README.*
955 rm -f $RPM_BUILD_ROOT%{_mandir}/diff.*
956 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
957 # we don't support kernel without ptys support
958 rm -f $RPM_BUILD_ROOT%{_libdir}/pt_chown
959
960
961 %clean
962 rm -rf $RPM_BUILD_ROOT
963
964 # don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
965 # when %%postun is run
966
967 %ifnarch sparc64
968 %ifarch amd64
969 %post   -n %{name}64 -p /%{_lib}/postshell
970 %else
971 %post   -p /%{_lib}/postshell
972 %endif
973 /%{_lib}/ldconfig
974 -/sbin/telinit u
975
976 %ifarch amd64
977 %postun -n %{name}64 -p /%{_lib}/postshell
978 %else
979 %postun -p /%{_lib}/postshell
980 %endif
981 /%{_lib}/ldconfig
982 -/sbin/telinit u
983
984 %post   memusage -p /sbin/ldconfig
985 %postun memusage -p /sbin/ldconfig
986
987 %post -n iconv -p %{_sbindir}/iconvconfig
988
989 %post devel
990 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
991
992 %postun devel
993 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
994
995 %post -n nscd
996 /sbin/chkconfig --add nscd
997 touch /var/log/nscd
998 chmod 000 /var/log/nscd
999 chown root:root /var/log/nscd
1000 chmod 640 /var/log/nscd
1001 if [ -f /var/lock/subsys/nscd ]; then
1002         /etc/rc.d/init.d/nscd restart 1>&2
1003 else
1004         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
1005 fi
1006
1007 %preun -n nscd
1008 if [ "$1" = "0" ]; then
1009         if [ -f /var/lock/subsys/nscd ]; then
1010                 /etc/rc.d/init.d/nscd stop 1>&2
1011         fi
1012         /sbin/chkconfig --del nscd
1013 fi
1014 %endif
1015
1016 %ifnarch sparc64
1017 %ifarch amd64
1018 %files -n glibc64
1019 %else
1020 %files 
1021 %endif
1022 %defattr(644,root,root,755)
1023 %doc README NEWS FAQ BUGS
1024 # ld* and libc.so.6 SONAME symlinks must be in package because of
1025 # chicken-egg problem (postshell is dynamically linked with libc);
1026 # ld-*.so SONAME is ld.so.1 on ppc, ld-linux.so.2 on other archs
1027 %attr(755,root,root) /%{_lib}/postshell
1028 %attr(755,root,root) /%{_lib}/ld*
1029 %attr(755,root,root) /%{_lib}/libanl*
1030 %attr(755,root,root) /%{_lib}/libdl*
1031 %attr(755,root,root) /%{_lib}/libnsl*
1032 %attr(755,root,root) /%{_lib}/lib[BScmprtu]*
1033 %dir %{_libdir}/locale
1034
1035 #%files -n nss_dns
1036 %defattr(644,root,root,755)
1037 %attr(755,root,root) /%{_lib}/libnss_dns*.so*
1038
1039 #%files -n nss_files
1040 %defattr(644,root,root,755)
1041 %attr(755,root,root) /%{_lib}/libnss_files*.so*
1042
1043
1044 %files misc -f %{name}.lang
1045 %defattr(644,root,root,755)
1046
1047 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf
1048 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nsswitch.conf
1049 %config %{_sysconfdir}/rpc
1050 %ghost %{_sysconfdir}/ld.so.cache
1051
1052 %attr(755,root,root) /sbin/*
1053 %attr(755,root,root) %{_bindir}/catchsegv
1054 %attr(755,root,root) %{_bindir}/getent
1055 %attr(755,root,root) %{_bindir}/glibcbug
1056 %attr(755,root,root) %{_bindir}/iconv
1057 %attr(755,root,root) %{_bindir}/ldd
1058 %ifnarch alpha ppc sparc64 amd64
1059 %attr(755,root,root) %{_bindir}/lddlibc4
1060 %endif
1061 %attr(755,root,root) %{_bindir}/locale
1062 %attr(755,root,root) %{_bindir}/rpcgen
1063 %attr(755,root,root) %{_bindir}/tzselect
1064
1065 %attr(755,root,root) %{_sbindir}/rpcinfo
1066 %attr(755,root,root) %{_sbindir}/zdump
1067 %attr(755,root,root) %{_sbindir}/zic
1068
1069 %dir %{_datadir}/locale
1070 %{_datadir}/locale/locale.alias
1071 %{_datadir}/zoneinfo
1072 %exclude %{_datadir}/zoneinfo/right
1073
1074
1075 %{_mandir}/man1/[!lsg]*
1076 %{_mandir}/man1/getent.1*
1077 %{_mandir}/man1/locale.1*
1078 %{_mandir}/man1/ldd.1*
1079 %{_mandir}/man5/???[!d]*
1080 %{_mandir}/man7/*
1081 %{_mandir}/man8/[!n]*
1082 %lang(cs) %{_mandir}/cs/man[578]/*
1083 %lang(de) %{_mandir}/de/man[578]/*
1084 %lang(es) %{_mandir}/es/man[578]/*
1085 %lang(fi) %{_mandir}/fi/man1/ldd.1*
1086 %lang(fr) %{_mandir}/fr/man1/ldd.1*
1087 %lang(fr) %{_mandir}/fr/man[578]/*
1088 %lang(hu) %{_mandir}/hu/man1/ldd.1*
1089 %lang(hu) %{_mandir}/hu/man[578]/*
1090 %lang(it) %{_mandir}/it/man[578]/*
1091 %lang(ja) %{_mandir}/ja/man1/[!lsg]*
1092 %lang(ja) %{_mandir}/ja/man1/ldd.1*
1093 %lang(ja) %{_mandir}/ja/man5/???[!d]*
1094 %lang(ja) %{_mandir}/ja/man7/*
1095 %lang(ja) %{_mandir}/ja/man8/[!n]*
1096 %lang(ko) %{_mandir}/ko/man[578]/*
1097 # %lang(nl) %{_mandir}/nl/man[578]/*
1098 %lang(pl) %{_mandir}/pl/man1/ldd.1*
1099 %lang(pl) %{_mandir}/pl/man[578]/*
1100 %lang(pt) %{_mandir}/pt/man5/???[!d]*
1101 %lang(pt) %{_mandir}/pt/man7/*
1102 %lang(pt) %{_mandir}/pt/man8/[!n]*
1103 %lang(pt_BR) %{_mandir}/pt_BR/man5/???[!d]*
1104 %lang(pt_BR) %{_mandir}/pt_BR/man7/*
1105 %lang(pt_BR) %{_mandir}/pt_BR/man8/[!n]*
1106 %lang(ru) %{_mandir}/ru/man[578]/*
1107
1108 %files zoneinfo_right
1109 %defattr(644,root,root,755)
1110 %{_datadir}/zoneinfo/right
1111
1112 %files -n nss_compat
1113 %defattr(644,root,root,755)
1114 %attr(755,root,root) /%{_lib}/libnss_compat*.so*
1115
1116 %files -n nss_hesiod
1117 %defattr(644,root,root,755)
1118 %attr(755,root,root) /%{_lib}/libnss_hesiod*.so*
1119
1120 %files -n nss_nis
1121 %defattr(644,root,root,755)
1122 %attr(755,root,root) /%{_lib}/libnss_nis.so.*
1123 %attr(755,root,root) /%{_lib}/libnss_nis-*.so
1124
1125 %files -n nss_nisplus
1126 %defattr(644,root,root,755)
1127 %attr(755,root,root) /%{_lib}/libnss_nisplus*.so*
1128
1129 %if %{with memusage}
1130 %files memusage
1131 %defattr(644,root,root,755)
1132 %attr(755,root,root) %{_bindir}/memusage*
1133 %attr(755,root,root) %{_libdir}/libmemusage.so
1134 %endif
1135
1136 %files devel
1137 %defattr(644,root,root,755)
1138 %doc documentation/* NOTES PROJECTS
1139 %attr(755,root,root) %{_bindir}/gencat
1140 %attr(755,root,root) %{_bindir}/getconf
1141 %attr(755,root,root) %{_bindir}/*prof*
1142 %attr(755,root,root) %{_bindir}/*trace
1143
1144 %{_includedir}/*.h
1145 %ifarch alpha
1146 %{_includedir}/alpha
1147 %endif
1148 %{_includedir}/arpa
1149 %{_includedir}/bits
1150 %{_includedir}/gnu
1151 %{_includedir}/net
1152 %{_includedir}/netash
1153 %{_includedir}/netatalk
1154 %{_includedir}/netax25
1155 %{_includedir}/neteconet
1156 %{_includedir}/netinet
1157 %{_includedir}/netipx
1158 %{_includedir}/netpacket
1159 %{_includedir}/netrom
1160 %{_includedir}/netrose
1161 %{_includedir}/nfs
1162 %{_includedir}/protocols
1163 %{_includedir}/rpc
1164 %{_includedir}/rpcsvc
1165 %{_includedir}/scsi
1166 %{_includedir}/sys
1167
1168 %{_infodir}/libc.info*
1169
1170 %attr(755,root,root) %{_libdir}/lib[!m]*.so
1171 %attr(755,root,root) %{_libdir}/libm.so
1172 %attr(755,root,root) %{_libdir}/*crt*.o
1173 %{_libdir}/libbsd-compat.a
1174 %{_libdir}/libbsd.a
1175 %{_libdir}/libc_nonshared.a
1176 %{_libdir}/libg.a
1177 %{_libdir}/libieee.a
1178 %{_libdir}/libpthread_nonshared.a
1179 %{_libdir}/librpcsvc.a
1180
1181 %{_mandir}/man1/getconf*
1182 %{_mandir}/man1/sprof*
1183 %{_mandir}/man3/*
1184 %lang(cs) %{_mandir}/cs/man3/*
1185 %lang(de) %{_mandir}/de/man3/*
1186 %lang(es) %{_mandir}/es/man3/*
1187 %lang(fr) %{_mandir}/fr/man3/*
1188 %lang(hu) %{_mandir}/hu/man3/*
1189 # %lang(it) %{_mandir}/it/man3/*
1190 %lang(ja) %{_mandir}/ja/man3/*
1191 %lang(ko) %{_mandir}/ko/man3/*
1192 %lang(nl) %{_mandir}/nl/man3/*
1193 %lang(pl) %{_mandir}/pl/man3/*
1194 %lang(pt) %{_mandir}/pt/man3/*
1195 %lang(pt_BR) %{_mandir}/pt_BR/man3/*
1196 %lang(ru) %{_mandir}/ru/man3/*
1197
1198 %files -n nscd
1199 %defattr(644,root,root,755)
1200 %attr(640,root,root) %config %verify(not md5 size mtime) /etc/sysconfig/nscd
1201 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nscd.*
1202 %attr(754,root,root) /etc/rc.d/init.d/nscd
1203 %attr(755,root,root) %{_sbindir}/nscd*
1204 %attr(640,root,root) /etc/logrotate.d/nscd
1205 %attr(640,root,root) %ghost /var/log/nscd
1206 %{_mandir}/man5/nscd.conf*
1207 %{_mandir}/man8/nscd*
1208 %lang(ja) %{_mandir}/ja/man5/nscd.conf*
1209 %lang(ja) %{_mandir}/ja/man8/nscd*
1210 %lang(pt) %{_mandir}/pt/man5/nscd.conf*
1211 %lang(pt) %{_mandir}/pt/man8/nscd*
1212 %lang(pt_BR) %{_mandir}/pt_BR/man5/nscd.conf*
1213 %lang(pt_BR) %{_mandir}/pt_BR/man8/nscd*
1214
1215 %files -n localedb-src
1216 %defattr(644,root,root,755)
1217 %attr(755,root,root) %{_bindir}/localedef
1218 %attr(755,root,root) %{_bindir}/localedb-gen
1219 %{_datadir}/i18n
1220 %{_mandir}/man1/localedef*
1221
1222 %files localedb-all
1223 %defattr(644,root,root,755)
1224 %{_libdir}/locale/locale-archive
1225
1226 %files -n iconv
1227 %defattr(644,root,root,755)
1228 %attr(755,root,root) %{_sbindir}/iconvconfig
1229 %dir %{_libdir}/gconv
1230 %{_libdir}/gconv/gconv-modules
1231 %attr(755,root,root) %{_libdir}/gconv/*.so
1232
1233 %files static
1234 %defattr(644,root,root,755)
1235 %{_libdir}/libanl.a
1236 %{_libdir}/libBrokenLocale.a
1237 %{_libdir}/libc.a
1238 %{_libdir}/libcrypt.a
1239 %{_libdir}/libdl.a
1240 %{_libdir}/libm.a
1241 %{_libdir}/libmcheck.a
1242 %{_libdir}/libnsl.a
1243 %{_libdir}/libpthread.a
1244 %{_libdir}/libresolv.a
1245 %{_libdir}/librt.a
1246 %{_libdir}/libutil.a
1247
1248 %files profile
1249 %defattr(644,root,root,755)
1250 %{_libdir}/lib*_p.a
1251
1252 %files pic
1253 %defattr(644,root,root,755)
1254 %{_libdir}/lib*_pic.a
1255 %{_libdir}/lib*.map
1256 %{_libdir}/soinit.o
1257 %{_libdir}/sofini.o
1258
1259 %else
1260
1261 %files -n glibc64
1262 %defattr(644,root,root,755)
1263 %attr(755,root,root) %{_libdir}/ld-*
1264 %attr(755,root,root) %{_libdir}/libanl*
1265 %attr(755,root,root) %{_libdir}/libdl*
1266 %attr(755,root,root) %{_libdir}/libnsl*
1267 %attr(755,root,root) %{_libdir}/lib[BScmprtu]*
1268 %attr(755,root,root) %{_libdir}/libnss_dns*.so*
1269 %attr(755,root,root) %{_libdir}/libnss_files*.so*
1270
1271 %files -n glibc64-devel
1272 %defattr(644,root,root,755)
1273 %attr(755,root,root) %{_libdir}/lib[!m]*.so
1274 %attr(755,root,root) %{_libdir}/libm.so
1275 %attr(755,root,root) %{_libdir}/*crt*.o
1276 %{_libdir}/libbsd-compat.a
1277 %{_libdir}/libbsd.a
1278 %{_libdir}/libc_nonshared.a
1279 %{_libdir}/libg.a
1280 %{_libdir}/libieee.a
1281 %{_libdir}/libpthread_nonshared.a
1282 %{_libdir}/librpcsvc.a
1283
1284 %files -n glibc64-static
1285 %defattr(644,root,root,755)
1286 %{_libdir}/libanl.a
1287 %{_libdir}/libBrokenLocale.a
1288 %{_libdir}/libc.a
1289 %{_libdir}/libcrypt.a
1290 %{_libdir}/libdl.a
1291 %{_libdir}/libm.a
1292 %{_libdir}/libmcheck.a
1293 %{_libdir}/libnsl.a
1294 %{_libdir}/libpthread.a
1295 %{_libdir}/libresolv.a
1296 %{_libdir}/librt.a
1297 %{_libdir}/libutil.a
1298 %endif
This page took 0.188395 seconds and 4 git commands to generate.