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