2 # You can define min_kernel macro by "rpm --define 'min_kernel version'"
3 # default is 2.2.0 (no changes up to 2.3.25)
5 # _without_dist_kernel build without kernel from the distribution;
6 # headers will be searched in %_kernelsrcdir/include.
9 %{!?min_kernel:%define min_kernel 2.2.0}
15 Summary(ru): GNU libc ×ÅÒÓÉÉ 2.3
17 Summary(uk): GNU libc ×ÅÒÓ¦§ 2.3
24 Source0: ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
25 Source1: ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
27 Source3: nscd.sysconfig
28 Source4: nscd.logrotate
29 Source5: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
30 Source6: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
31 # borrowed from util-linux
33 Patch0: %{name}-info.patch
34 Patch1: %{name}-versions.awk_fix.patch
35 Patch2: %{name}-pld.patch
36 Patch3: %{name}-crypt-blowfish.patch
37 Patch4: %{name}-string2-pointer-arith.patch
38 Patch5: %{name}-linuxthreads-lock.patch
39 Patch6: %{name}-pthread_create-manpage.patch
40 Patch9: %{name}-paths.patch
41 Patch10: %{name}-vaargs.patch
42 Patch11: %{name}-getaddrinfo-workaround.patch
43 Patch12: %{name}-postshell.patch
44 Patch13: %{name}-pl.po-update.patch
45 Patch14: %{name}-missing-nls.patch
46 URL: http://www.gnu.org/software/libc/
47 BuildRequires: binutils >= 2.13.90.0.2
48 BuildRequires: gcc >= 3.2
49 BuildRequires: gd-devel >= 2.0.1
50 BuildRequires: gettext-devel >= 0.10.36
51 BuildRequires: libpng-devel
53 BuildRequires: rpm-build >= 4.0.2-46
54 BuildRequires: texinfo
55 %{!?_without_dist_kernel:BuildRequires: kernel-headers}
58 Provides: /sbin/ldconfig
59 Obsoletes: %{name}-common
60 Obsoletes: %{name}-debug
64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
65 Conflicts: kernel < %{min_kernel}
66 Conflicts: man-pages < 1.43
67 Conflicts: ld.so < 1.9.9-10
69 %define debugcflags -O1 -g
70 %define configuredir %{u2p:%{_builddir}}/%{name}-%{version}/
71 #define parallelmkflags PARALLELMFLAGS="-j 4"
72 %define parallelmkflags %{nil}
75 Contains the standard libraries that are used by multiple programs on
76 the system. In order to save disk space and memory, as well as to ease
77 upgrades, common system code is kept in one place and shared between
78 programs. This package contains the most important sets of shared
79 libraries, the standard C library and the standard math library.
80 Without these, a Linux system will not function. It also contains
81 national language (locale) support and timezone databases.
84 Enthält die Standard-Libraries, die von verschiedenen Programmen im
85 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
86 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
87 einer einzigen Stelle gespeichert und wird von den Programmen
88 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
89 shared Libraries, die Standard-C-Library und die
90 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
91 Ferner enthält es den Support für die verschiedenen Sprachgregionen
92 (locale) und die Zeitzonen-Datenbank.
95 Contient les bibliothèques standards utilisées par de nombreux
96 programmes du système. Afin d'économiser l'espace disque et mémoire,
97 et de faciliter les mises à jour, le code commun au système est mis à
98 un endroit et partagé entre les programmes. Ce paquetage contient les
99 bibliothèques partagées les plus importantes, la bibliothèque standard
100 du C et la bibliothèque mathématique standard. Sans celles-ci, un
101 système Linux ne peut fonctionner. Il contient aussi la gestion des
102 langues nationales (locales) et les bases de données des zones
106 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
107 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
108 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
109 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
110 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
111 standardowych, wspó³dzielonych (dynamicznych) bibliotek C i
112 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
113 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
114 jêzyków (locale) oraz definicje stref czasowych.
117 óÏÄÅÒÖÉÔ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÉÓÐÏÌØÚÕÅÍÙÅ ÍÎÏÇÏÞÉÓÌÅÎÎÙÍÉ
118 ÐÒÏÇÒÁÍÍÁÍÉ × ÓÉÓÔÅÍÅ. äÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÓÏÈÒÁÎÉÔØ ÄÉÓËÏ×ÏÅ ÐÒÏÓÔÒÁÎÓÔ×Ï
119 É ÐÁÍÑÔØ, Á ÔÁËÖÅ ÄÌÑ ÐÒÏÓÔÏÔÙ ÏÂÎÏ×ÌÅÎÉÑ, ÓÉÓÔÅÍÎÙÊ ËÏÄ, ÏÂÝÉÊ ÄÌÑ
120 ×ÓÅÈ ÐÒÏÇÒÁÍÍ, ÈÒÁÎÉÔÓÑ × ÏÄÎÏÍ ÍÅÓÔÅ É ËÏÌÌÅËÔÉ×ÎÏ ÉÓÐÏÌØÚÕÅÔÓÑ ×ÓÅÍÉ
121 ÐÒÏÇÒÁÍÍÁÍÉ. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÁÉÂÏÌÅÅ ×ÁÖÎÙÅ ÉÚ ÒÁÚÄÅÌÑÅÍÙÈ
122 ÂÉÂÌÉÏÔÅË - ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ C É ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ
123 ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÜÔÉÈ ÂÉÂÌÉÏÔÅË Linux ÆÕÎËÃÉÏÎÉÒÏ×ÁÔØ ÎÅ ÂÕÄÅÔ. ôÁËÖÅ
124 ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÏÄÄÅÒÖËÕ ÎÁÃÉÏÎÁÌØÎÙÈ ÑÚÙËÏ× (locale) É ÂÁÚÙ ÄÁÎÎÙÈ
125 ×ÒÅÍÅÎÎÙÈ ÚÏÎ (timezone databases).
128 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
129 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
130 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
131 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
132 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
133 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
134 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
137 í¦ÓÔÉÔØ ÓÔÁÎÄÁÒÔΦ ¦Â̦ÏÔÅËÉ, ËÏÔÒ¦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÞÉÓÌÅÎÎÉÍÉ
138 ÐÒÏÇÒÁÍÁÍÉ × ÓÉÓÔÅͦ. äÌÑ ÔÏÇÏ, ÝÏ ÚÂÅÒÅÇÔÉ ÄÉÓËÏ×ÉÊ ÐÒÏÓÔ¦Ò ÔÁ
139 ÐÁÍ'ÑÔØ, Á ÔÁËÏÖ ÄÌÑ ÐÒÏÓÔÏÔÉ ÐÏÎÏ×ÌÅÎÎÑ ÓÉÓÔÅÍÉ, ÓÉÓÔÅÍÎÉÊ ËÏÄ,
140 ÓЦÌØÎÉÊ ÄÌÑ ×Ó¦È ÐÒÏÇÒÁÍ, ÚÂÅÒ¦ÇÁ¤ÔØÓÑ × ÏÄÎÏÍÕ Í¦Óæ ¦ ËÏÌÅËÔÉ×ÎÏ
141 ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ ×Ó¦ÍÁ ÐÒÏÇÒÁÍÁÍÉ. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÎÁʦÌØÛ ×ÁÖÌÉצ
142 Ú ÄÉÎÁͦÞÎÉÈ Â¦Â̦ÏÔÅË - ÓÔÁÎÄÁÒÔÎÕ Â¦Â̦ÏÔÅËÕ ó ÔÁ ÓÔÁÎÄÁÒÔÎÕ
143 ¦Â̦ÏÔÅËÕ ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÃÉÈ Â¦Â̦ÏÔÅË Linux ÆÕÎËæÏÎÕ×ÁÔÉ ÎÅ ÂÕÄÅ.
144 ôÁËÏÖ ÐÁËÅÔ Í¦ÓÔÉÔØ Ð¦ÄÔÒÉÍËÕ ÎÁæÏÎÁÌØÎÉÈ ÍÏ× (locale) ÔÁ ÂÁÚÉ ÄÁÎÎÉÈ
145 ÞÁÓÏ×ÉÈ ÚÏÎ (timezone databases).
148 Summary: Additional libraries required to compile
149 Summary(de): Weitere Libraries zum Kompilieren
150 Summary(fr): Librairies supplémentaires nécessaires à la compilation
151 Summary(pl): Dodatkowe biblioteki wymagane podczas kompilacji
152 Summary(ru): äÏÐÏÌÎÉÔÅÌØÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ËÏÍÐÉÌÑÃÉÉ
153 Summary(tr): Geliþtirme için gerekli diðer kitaplýklar
154 Summary(uk): äÏÄÁÔËÏצ ¦Â̦ÏÔÅËÉ, ÐÏÔÒ¦ÂΦ ÄÌÑ ËÏÍЦÌÑæ§
155 Group: Development/Libraries
156 Requires: %{name} = %{version}
159 To develop programs which use the standard C libraries (which nearly
160 all programs do), the system needs to have these standard header files
161 and object files available for creating the executables.
163 %description devel -l de
164 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
165 verwenden (also fast alle), benötigt das System diese Standard-Header-
166 und Objektdateien zum Erstellen der ausführbaren Programme.
168 %description devel -l fr
169 Pour développer des programmes utilisant les bibliothèques standard du
170 C (ce que presque tous les programmes font), le système doit posséder
171 ces fichiers en-têtes et objets standards pour créer les exécutables.
173 %description devel -l pl
174 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
175 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
176 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
177 wykonywalnych i innych bibliotek.
179 %description devel -l ru
180 äÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ C (Á
181 ÐÒÁËÔÉÞÅÓËÉ ×ÓÅ ÐÒÏÇÒÁÍÍÙ ÉÈ ÉÓÐÏÌØÚÕÀÔ), ÓÉÓÔÅÍÅ îåïâèïäéíù ÈÅÄÅÒÙ É
182 ÏÂßÅËÔÎÙÅ ÆÁÊÌÙ, ÓÏÄÅÒÖÁÝÉÅÓÑ × ÜÔÏÍ ÐÁËÅÔÅ, ÞÔÏÂÙ ÓÏÚÄÁ×ÁÔØ
185 %description devel -l tr
186 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
187 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
190 %description devel -l uk
191 äÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÓÔÁÎÄÁÒÔΦ ¦Â̦ÏÔÅËÉ C
192 (ÐÒÁËÔÉÞÎÏ ×Ó¦ ÐÒÏÇÒÁÍÉ §È ×ÉËÏÒÉÓÔÏ×ÕÀÔØ), ÓÉÓÔÅͦ îåïâè¶äî¶ ÈÅÄÅÒÉ
193 ÔÁ ÏÂ'¤ËÔΦ ÆÁÊÌÉ, ÝÏ Í¦ÓÔÑÔØÓÑ × ÃØÏÍÕ ÐÁËÅÔ¦, ÃÏ ÓÔ×ÏÒÀ×ÁÔÉ
197 %package kernel-headers
198 Summary: Kernel header files the glibc has been built with
199 Summary(pl): Pliki nag³ówkowe j±dra, z którymi zosta³a zbudowana ta wersja glibc
200 Release: %{release}@%{_kernel_ver_str}
201 Group: Development/Libraries
203 %description kernel-headers
204 Kernel header files the glibc has been built with.
206 %description kernel-headers -l pl
207 Pliki nag³ówkowe j±dra, z którymi zosta³a zbudowana ta wersja glibc.
210 Summary: Name Service Caching Daemon
211 Summary(pl): Demon zapamiêtuj±cy odpowiedzi serwisów nazw
212 Summary(ru): ëÜÛÉÒÕÀÝÉÊ ÄÅÍÏÎ ÓÅÒ×ÉÓÏ× ÉÍÅÎ
213 Summary(uk): ëÅÛÕÀÞÉÊ ÄÅÍÏÎ ÓÅ×¦Ó¦× ¦ÍÅÎ
214 Group: Networking/Daemons
215 PreReq: /sbin/chkconfig
216 PreReq: rc-scripts >= 0.2.0
217 Requires: %{name} = %{version}
218 Requires(post): fileutils
221 nscd caches name service lookups; it can dramatically improve
222 performance with NIS+, and may help with DNS as well. You cannot use
223 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
224 nscd happens to hit these bugs particularly hard.
226 %description -n nscd -l pl
227 nscd zapamiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
228 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
229 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³êdów po stronie j±dra w
232 %description -n nscd -l ru
233 nscd ËÜÛÉÒÕÅÔ ÒÅÚÕÌØÔÁÔÙ ÚÁÐÒÏÓÏ× Ë ÓÅÒ×ÉÓÁÍ ÉÍÅÎ; ÜÔÏ ÍÏÖÅÔ ÒÅÚËÏ
234 Õ×ÅÌÉÞÉÔØ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔØ ÒÁÂÏÔÙ Ó NIS+ É, ÔÁËÖÅ, ÍÏÖÅÔ ÐÏÍÏÞØ Ó
237 %description -n nscd -l uk
238 nscd ËÅÛÕ¤ ÒÅÚÕÌØÔÁÔÉ ÚÁÐÒÏÓ¦× ÄÏ ÓÅÒ×¦Ó¦× ¦ÍÅÎ; ÃÅ ÍÏÖÅ ÓÉÌØÎÏ
239 Ú¦ÌØÛÉÔÉ Û×ÉÄ˦ÓÔØ ÒÏÂÏÔÉ Ú NIS+ ¦, ÔÁËÏÖ, ÍÏÖÅ ÄÏÐÏÍÏÇÔÉ Ú DNS.
241 %package -n localedb-src
242 Summary: locale database source code
243 Summary(pl): Kod ¼ród³owy bazy locale
245 Requires: %{name} = %{version}
247 %description -n localedb-src
248 This add-on package contains the data needed to build the locale data
249 files to use the internationalization features of the GNU libc. glibc
250 package contains standard set of locale binary database so you need
251 this package only when you want to build some non-standard locale
254 %description -n localedb-src -l pl
255 Pakiet ten zawiera dane niezbêdne do zbudowania binarnych plików
256 lokalizacyjnych, by móc wykorzystaæ mo¿liwo¶ci oferowane przez GNU
257 libc. glibc zawiera standardowy zestaw binarnych baz lokalizacyjnych,
258 w zwi±zku z czym ten pakiet jest potrzebny tylko w sytuacji budowania
259 jakiej¶ niestandardowej bazy.
262 Summary: Convert encoding of given files from one encoding to another
263 Summary(pl): Program do konwersji plików tekstowych z jednego kodowania do innego
264 Group: Applications/Text
265 Requires: %{name} = %{version}
267 %description -n iconv
268 Convert encoding of given files from one encoding to another. You need
269 this package if you want to convert some documet from one encoding to
270 another or if you have installed some programs which use Generic
271 Character Set Conversion Interface.
273 %description -n iconv -l pl
274 Program do konwersji plików tekstowych z jednego kodowania do innego.
275 Musisz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
276 dokumentów z jednego kodowania do innego lub je¿eli masz zainstalowane
277 jakie¶ programy, które korzystaj± z Generic Character Set Conversion
278 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
279 umo¿liwiaj± konwersjê kodowania danych z poziomu dowolnego programu.
282 Summary: Static libraries
283 Summary(pl): Biblioteki statyczne
284 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ glibc
285 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ glibc
286 Group: Development/Libraries
287 Requires: %{name}-devel = %{version}
290 GNU libc static libraries.
292 %description static -l pl
293 Biblioteki statyczne GNU libc.
295 %description static -l ru
296 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
297 ×ÈÏÄÑÔ × glibc-devel.
299 %description static -l uk
300 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍÉ Â¦Â̦ÏÔÅËÁÍÉ, ÝÏ Â¦ÌØÛÅ ÎÅ ×ÈÏÄÑÔØ ×
304 Summary: glibc with profiling support
305 Summary(de): glibc mit Profil-Unterstützung
306 Summary(fr): glibc avec support pour profiling
307 Summary(pl): glibc ze wsparciem dla profilowania
308 Summary(ru): GNU libc Ó ÐÏÄÄÅÒÖËÏÊ ÐÒÏÆÁÊÌÅÒÁ
309 Summary(tr): Ölçüm desteði olan glibc
310 Summary(uk): GNU libc Ú Ð¦ÄÔÒÉÍËÏÀ ÐÒÏÆÁÊÌÅÒÁ
311 Group: Development/Libraries/Libc
312 Obsoletes: libc-profile
313 Requires: %{name}-devel = %{version}
316 When programs are being profiled used gprof, they must use these
317 libraries instead of the standard C libraries for gprof to be able to
318 profile them correctly.
320 %description profile -l de
321 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
322 Libraries anstelle der üblichen C-Libraries verwendet werden.
324 %description profile -l pl
325 Programy profilowane za pomoc± gprof musz± u¿ywaæ tych bibliotek
326 zamiast standardowych bibliotek C, aby gprof móg³ odpowiednio je
329 %description profile -l uk
330 ëÏÌÉ ÐÒÏÇÒÁÍÉ ÄÏÓ̦ÄÖÕÀÔØÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ×ÏÎÉ ÐÏ×ÉÎΦ
331 ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÚÁͦÓÔØ ÓÔÁÎÄÁÒÔÎÉÈ Â¦Â̦ÏÔÅË Â¦Â̦ÏÔÅËÉ, ÝÏ Í¦ÓÔÑÔØÓÑ
332 × ÃØÏÍÕ ÐÁËÅÔ¦. ðÒÉ ×ÉËÏÒÉÓÔÁÎΦ ÓÔÁÎÄÁÒÔÎÉÈ Â¦Â̦ÏÔÅË gprof ÚÁͦÓÔØ
333 ÒÅÁÌØÎÉÈ ÒÅÚÕÌØÔÁÔ¦× ÂÕÄÅ ÐÏËÁÚÕ×ÁÔÉ Ã¦ÎÉ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
336 %description profile -l tr
337 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
338 kitaplýðý kullanmak zorundadýrlar.
340 %description profile -l ru
341 ëÏÇÄÁ ÐÒÏÇÒÁÍÍÙ ÉÓÓÌÅÄÕÀÔÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ÏÎÉ ÄÏÌÖÎÙ
342 ÉÓÐÏÌØÚÏ×ÁÔØ, ×ÍÅÓÔÏ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË, ÂÉÂÌÉÏÔÅËÉ, ×ËÌÀÞÅÎÎÙÅ ×
343 ÜÔÏÔ ÐÁËÅÔ. ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË gprof ×ÍÅÓÔÏ
344 ÒÅÁÌØÎÙÈ ÒÅÚÕÌØÔÁÔÏ× ÂÕÄÅÔ ÐÏËÁÚÙ×ÁÔØ ÃÅÎÙ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
348 Summary: glibc PIC archive
349 Summary(pl): archiwum PIC glibc
350 Group: Development/Libraries/Libc
351 Requires: %{name}-devel = %{version}
354 GNU C Library PIC archive contains an archive library (ar file)
355 composed of individual shared objects. This is used for creating a
356 library which is a smaller subset of the standard libc shared library.
358 %description pic -l pl
359 Archiwum PIC biblioteki GNU C zawiera archiwaln± bibliotekê (plik ar)
360 z³o¿on± z pojedyñczych obiektów wspó³dzielonych. U¿ywana jest do
361 tworzenia biblioteki bêd±cej mniejszym podzestawem standardowej
362 biblioteki wspó³dzielonej libc.
364 %package -n nss_compat
365 Summary: Old style NYS NSS glibc module
366 Summary(pl): Stary modu³ NYS NSS glibc
368 Requires: %{name} = %{version}
370 %description -n nss_compat
371 Old style NYS NSS glibc module.
373 %description -n nss_compat -l pl
374 Stary modu³ NYS NSS glibc.
377 Summary: BIND NSS glibc module
378 Summary(pl): Modu³ BIND NSS glibc
380 Requires: %{name} = %{version}
382 %description -n nss_dns
383 BIND NSS glibc module.
385 %description -n nss_dns -l pl
386 Modu³ BIND NSS glibc.
388 %package -n nss_files
389 Summary: Traditional files databases NSS glibc module
390 Summary(pl): Modu³ tradycyjnych plikowych baz danych NSS glibc
392 Requires: %{name} = %{version}
394 %description -n nss_files
395 Traditional files databases NSS glibc module.
397 %description -n nss_files -l pl
398 Modu³ tradycyjnych plikowych baz danych NSS glibc.
400 %package -n nss_hesiod
401 Summary: Hesiod NSS glibc module
402 Summary(pl): Modu³ hesiod NSS glibc
404 Requires: %{name} = %{version}
406 %description -n nss_hesiod
407 glibc NSS (Name Service Switch) module for databases access.
409 %description -n nss_hesiod -l pl
410 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych.
413 Summary: NIS(YP) NSS glibc module
414 Summary(pl): Modu³ NIS(YP) NSS glibc
416 Requires: %{name} = %{version}
418 %description -n nss_nis
419 glibc NSS (Name Service Switch) module for NIS(YP) databases access.
421 %description -n nss_nis -l pl
422 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS(YP).
424 %package -n nss_nisplus
425 Summary: NIS+ NSS module
426 Summary(pl): Modu³ NIS+ NSS
428 Requires: %{name} = %{version}
430 %description -n nss_nisplus
431 glibc NSS (Name Service Switch) module for NIS+ databases accesa.
433 %description -n nss_nisplus -l pl
434 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS+.
440 Requires: %{name} = %{version}
443 %description memusage
446 %description memusage -l pl
470 # avoid stripping ld.so by -s in rpmldflags
471 LDFLAGS=" " ; export LDFLAGS
473 --enable-add-ons=linuxthreads \
474 --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
477 --with-headers=%{_kernelsrcdir}/include
478 # problem compiling with --enable-bounded (must be reported to libc-alpha)
480 %{__make} %{parallelmkflags}
483 rm -rf $RPM_BUILD_ROOT
484 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log}
488 env LANGUAGE=C LC_ALL=C \
491 install_root=$RPM_BUILD_ROOT \
492 infodir=%{_infodir} \
495 env LANGUAGE=C LC_ALL=C \
496 %{__make} localedata/install-locales \
498 install_root=$RPM_BUILD_ROOT
500 PICFILES="libc_pic.a libc.map
501 math/libm_pic.a libm.map
502 resolv/libresolv_pic.a"
504 install $PICFILES $RPM_BUILD_ROOT%{_libdir}
505 install elf/soinit.os $RPM_BUILD_ROOT%{_libdir}/soinit.o
506 install elf/sofini.os $RPM_BUILD_ROOT%{_libdir}/sofini.o
508 install elf/postshell $RPM_BUILD_ROOT/sbin
510 mv -f $RPM_BUILD_ROOT/lib/libmemusage.so $RPM_BUILD_ROOT%{_libdir}
511 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
513 %{__make} -C ../linuxthreads/man
514 install ../linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
516 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
518 ln -sf %{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
519 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
520 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
521 ln -sf libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
523 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
525 # make symlinks across top-level directories absolute
526 for l in anl BrokenLocale crypt dl m nsl pthread resolv rt thread_db util ; do
527 rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
528 ln -sf /lib/`cd $RPM_BUILD_ROOT/lib ; echo lib${l}.so.*` $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
531 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
532 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
533 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
534 install ../nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
535 install ../nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
537 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
538 bzip2 -dc %{SOURCE6} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
539 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
540 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
541 rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
543 :> $RPM_BUILD_ROOT/var/log/nscd
545 rm -rf ../documentation
546 install -d ../documentation
548 cp -f ../linuxthreads/ChangeLog ../documentation/ChangeLog.threads
549 cp -f ../linuxthreads/Changes ../documentation/Changes.threads
550 cp -f ../linuxthreads/README ../documentation/README.threads
551 cp -f ../crypt/README.ufc-crypt ../documentation/
553 cp -f ../ChangeLog* ../documentation
555 rm -f $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
557 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
558 %{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/lib/ld-%{version}.so}
560 # Collect locale files and mark them with %%lang()
562 echo '%defattr(644,root,root,755)' > ../glibc.lang
563 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
565 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
567 # list of long %%lang values we do support
568 for j in de_AT de_BE de_CH de_LU ja_JP.SJIS ko_KR.utf8 pt_BR \
569 zh_CN zh_CN.gbk zh_HK zh_TW ; do
570 if [ $j = "$lang" ]; then
574 if [ -n "$twochar" ]; then
575 if [ `echo $lang | sed "s,_.*,,"` = "zh" ]; then
576 lang=`echo $lang | sed "s,\..*,,"`
578 lang=`echo $lang | sed "s,_.*,,"`
581 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
582 echo "%lang($lang) $dir" >> ../glibc.lang
585 for i in af az bg de_AT el en eo es_ES et eu fi gr he hr hu id is ja_JP.SJIS \
586 lt lv ms nn pt ro ru sl sr ta uk wa zh_CN ; do
587 if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES ]; then
588 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
589 lang=`echo $i | sed -e 's/_.*//'`
590 echo "%lang($lang) %{_datadir}/locale/$i" >> ../glibc.lang
593 install %{SOURCE7} $RPM_BUILD_ROOT%{_mandir}/man8
596 rm -f $RPM_BUILD_ROOT%{_mandir}/README.*
597 rm -f $RPM_BUILD_ROOT%{_mandir}/diff.*
598 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
599 # we don't support kernel without ptys support
600 rm -f $RPM_BUILD_ROOT%{_libdir}/pt_chown
602 # copy actual kernel headers for glibc-kernel-headers
603 %{__mkdir} -p $RPM_BUILD_ROOT%{_includedir}
604 %{__cp} -Hr %{_kernelsrcdir}/include/{asm,linux} $RPM_BUILD_ROOT%{_includedir}
607 rm -rf $RPM_BUILD_ROOT
609 # don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
610 # when %%postun is run
612 %post -p /sbin/postshell
616 %postun -p /sbin/postshell
620 %post memusage -p /sbin/ldconfig
621 %postun memusage -p /sbin/ldconfig
623 %post -n iconv -p %{_sbindir}/iconvconfig
626 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
627 echo "Please install glibc-kernel-headers or, if you are brave man,"
628 echo "make appropriate links in /usr/include pointing to installed"
629 echo "chosen kernel-headers package or other kernel headers you have."
632 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
635 # useful if these are symlinks
636 rm -f %{_includedir}/{asm,linux}
639 /sbin/chkconfig --add nscd
640 touch /var/log/nscd && (chmod 000 /var/log/nscd; chown root.root /var/log/nscd; chmod 640 /var/log/nscd)
641 if [ -f /var/lock/subsys/nscd ]; then
642 /etc/rc.d/init.d/nscd restart 1>&2
644 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
648 if [ "$1" = "0" ]; then
649 if [ -f /var/lock/subsys/nscd ]; then
650 /etc/rc.d/init.d/nscd stop 1>&2
652 /sbin/chkconfig --del nscd
655 %files -f %{name}.lang
656 %defattr(644,root,root,755)
657 %doc README NEWS FAQ BUGS
659 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf
660 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nsswitch.conf
661 %config %{_sysconfdir}/rpc
662 %ghost %{_sysconfdir}/ld.so.cache
664 %attr(755,root,root) /sbin/*
665 %attr(755,root,root) %{_bindir}/catchsegv
666 %attr(755,root,root) %{_bindir}/getent
667 %attr(755,root,root) %{_bindir}/glibcbug
668 %attr(755,root,root) %{_bindir}/iconv
669 %attr(755,root,root) %{_bindir}/ldd
670 %ifnarch alpha sparc sparc64 ppc
671 %attr(755,root,root) %{_bindir}/lddlibc4
673 %attr(755,root,root) %{_bindir}/locale
674 %attr(755,root,root) %{_bindir}/rpcgen
675 %attr(755,root,root) %{_bindir}/tzselect
677 %attr(755,root,root) %{_sbindir}/rpcinfo
678 %attr(755,root,root) %{_sbindir}/zdump
679 %attr(755,root,root) %{_sbindir}/zic
681 %attr(755,root,root) /lib/ld-*
682 %attr(755,root,root) /lib/libanl*
683 %attr(755,root,root) /lib/libdl*
684 %attr(755,root,root) /lib/libnsl*
685 %attr(755,root,root) /lib/lib[BScmprtu]*
687 %dir %{_datadir}/locale
688 %{_datadir}/locale/locale.alias
691 %dir %{_libdir}/locale
692 %{_libdir}/locale/locale-archive
694 %{_mandir}/man1/[^lsg]*
695 %{_mandir}/man1/getent.1*
696 %{_mandir}/man1/locale.1*
697 %{_mandir}/man1/ldd.1*
698 %{_mandir}/man5/???[^d]*
700 %{_mandir}/man8/[^n]*
701 %lang(cs) %{_mandir}/cs/man[578]/*
702 %lang(de) %{_mandir}/de/man[578]/*
703 %lang(es) %{_mandir}/es/man[578]/*
704 %lang(fi) %{_mandir}/fi/man1/ldd.1*
705 %lang(fr) %{_mandir}/fr/man1/ldd.1*
706 %lang(fr) %{_mandir}/fr/man[578]/*
707 %lang(hu) %{_mandir}/hu/man1/ldd.1*
708 %lang(hu) %{_mandir}/hu/man[578]/*
709 %lang(it) %{_mandir}/it/man[578]/*
710 %lang(ja) %{_mandir}/ja/man1/[^lsg]*
711 %lang(ja) %{_mandir}/ja/man1/ldd.1*
712 %lang(ja) %{_mandir}/ja/man5/???[^d]*
713 %lang(ja) %{_mandir}/ja/man7/*
714 %lang(ja) %{_mandir}/ja/man8/[^n]*
715 %lang(ko) %{_mandir}/ko/man[578]/*
716 # %lang(nl) %{_mandir}/nl/man[578]/*
717 %lang(pl) %{_mandir}/pl/man1/ldd.1*
718 %lang(pl) %{_mandir}/pl/man[578]/*
719 %lang(pt) %{_mandir}/pt/man5/???[^d]*
720 %lang(pt) %{_mandir}/pt/man7/*
721 %lang(pt) %{_mandir}/pt/man8/[^n]*
722 %lang(pt_BR) %{_mandir}/pt_BR/man5/???[^d]*
723 %lang(pt_BR) %{_mandir}/pt_BR/man7/*
724 %lang(pt_BR) %{_mandir}/pt_BR/man8/[^n]*
725 %lang(ru) %{_mandir}/ru/man[578]/*
728 %defattr(644,root,root,755)
729 %attr(755,root,root) /lib/libnss_dns*.so*
732 %defattr(644,root,root,755)
733 %attr(755,root,root) /lib/libnss_files*.so*
736 %defattr(644,root,root,755)
737 %attr(755,root,root) /lib/libnss_compat*.so*
740 %defattr(644,root,root,755)
741 %attr(755,root,root) /lib/libnss_hesiod*.so*
744 %defattr(644,root,root,755)
745 %attr(755,root,root) /lib/libnss_nis.so.*
746 %attr(755,root,root) /lib/libnss_nis-*.so
748 %files -n nss_nisplus
749 %defattr(644,root,root,755)
750 %attr(755,root,root) /lib/libnss_nisplus*.so*
753 %defattr(644,root,root,755)
754 %attr(755,root,root) %{_bindir}/memusage*
755 %attr(755,root,root) %{_libdir}/libmemusage*
758 %defattr(644,root,root,755)
759 %doc documentation/* NOTES PROJECTS
760 %attr(755,root,root) %{_bindir}/gencat
761 %attr(755,root,root) %{_bindir}/getconf
762 %attr(755,root,root) %{_bindir}/*prof*
763 %attr(755,root,root) %{_bindir}/*trace
770 %{_includedir}/netash
771 %{_includedir}/netatalk
772 %{_includedir}/netax25
773 %{_includedir}/neteconet
774 %{_includedir}/netinet
775 %{_includedir}/netipx
776 %{_includedir}/netpacket
777 %{_includedir}/netrom
778 %{_includedir}/netrose
780 %{_includedir}/protocols
782 %{_includedir}/rpcsvc
786 %{_infodir}/libc.info*
788 %attr(755,root,root) %{_libdir}/lib[^m]*.so
789 %attr(755,root,root) %{_libdir}/libm.so
790 %attr(755,root,root) %{_libdir}/*crt*.o
791 %{_libdir}/libbsd-compat.a
793 %{_libdir}/libc_nonshared.a
796 %{_libdir}/librpcsvc.a
798 %{_mandir}/man1/getconf*
799 %{_mandir}/man1/sprof*
801 %lang(cs) %{_mandir}/cs/man3/*
802 %lang(de) %{_mandir}/de/man3/*
803 %lang(es) %{_mandir}/es/man3/*
804 %lang(fr) %{_mandir}/fr/man3/*
805 %lang(hu) %{_mandir}/hu/man3/*
806 # %lang(it) %{_mandir}/it/man3/*
807 %lang(ja) %{_mandir}/ja/man3/*
808 %lang(ko) %{_mandir}/ko/man3/*
809 %lang(nl) %{_mandir}/nl/man3/*
810 %lang(pl) %{_mandir}/pl/man3/*
811 %lang(pt) %{_mandir}/pt/man3/*
812 %lang(pt_BR) %{_mandir}/pt_BR/man3/*
813 %lang(ru) %{_mandir}/ru/man3/*
815 %files kernel-headers
816 %defattr(644,root,root,755)
821 %defattr(644,root,root,755)
822 %attr(640,root,root) %config %verify(not md5 size mtime) /etc/sysconfig/nscd
823 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nscd.*
824 %attr(754,root,root) /etc/rc.d/init.d/nscd
825 %attr(755,root,root) %{_sbindir}/nscd*
826 %attr(640,root,root) /etc/logrotate.d/nscd
827 %attr(640,root,root) %ghost /var/log/nscd
828 %{_mandir}/man5/nscd.conf*
829 %{_mandir}/man8/nscd*
830 %lang(ja) %{_mandir}/ja/man5/nscd.conf*
831 %lang(ja) %{_mandir}/ja/man8/nscd*
832 %lang(pt) %{_mandir}/pt/man5/nscd.conf*
833 %lang(pt) %{_mandir}/pt/man8/nscd*
834 %lang(pt_BR) %{_mandir}/pt_BR/man5/nscd.conf*
835 %lang(pt_BR) %{_mandir}/pt_BR/man8/nscd*
837 %files -n localedb-src
838 %defattr(644,root,root,755)
839 %attr(755,root,root) %{_bindir}/localedef
841 %{_mandir}/man1/localedef*
844 %defattr(644,root,root,755)
845 %attr(755,root,root) %{_sbindir}/iconvconfig
846 %dir %{_libdir}/gconv
847 %{_libdir}/gconv/gconv-modules
848 %attr(755,root,root) %{_libdir}/gconv/*.so
851 %defattr(644,root,root,755)
853 %{_libdir}/libBrokenLocale.a
855 %{_libdir}/libcrypt.a
858 %{_libdir}/libmcheck.a
860 %{_libdir}/libpthread.a
861 %{_libdir}/libresolv.a
866 %defattr(644,root,root,755)
870 %defattr(644,root,root,755)
871 %{_libdir}/lib*_pic.a