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 %{!?min_kernel:%define min_kernel 2.2.0}
11 Summary(ru): GNU libc ×ÅÒÓÉÉ 2.2
13 Summary(uk): GNU libc ×ÅÒÓ¦§ 2.2
20 Source0: ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
21 Source1: ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
23 Source3: nscd.sysconfig
24 Source4: nscd.logrotate
25 Source5: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
26 Source6: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
28 # borrowed from util-linux
30 Patch0: %{name}-info.patch
31 Patch1: %{name}-versions.awk_fix.patch
32 Patch2: %{name}-pld.patch
33 Patch3: %{name}-crypt-blowfish.patch
34 Patch4: %{name}-string2-pointer-arith.patch
35 Patch5: %{name}-linuxthreads-lock.patch
36 Patch6: %{name}-pthread_create-manpage.patch
37 Patch7: %{name}-sparc-linux-chown.patch
38 Patch8: %{name}-ldconfig-bklinks.patch
39 Patch9: %{name}-paths.patch
40 Patch10: %{name}-vaargs.patch
41 Patch11: %{name}-getaddrinfo-workaround.patch
42 Patch12: %{name}-use-int-not-arpa.patch
43 Patch13: %{name}-divdi3.patch
44 Patch14: %{name}-nss_dns-overflow.patch
45 Patch15: %{name}-sunrpc-overflow.patch
46 Patch16: %{name}-calloc-overflow.patch
47 Patch17: %{name}-gcc32.patch
48 URL: http://www.gnu.org/software/libc/
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
57 Provides: /sbin/ldconfig
58 Obsoletes: %{name}-common
59 Obsoletes: %{name}-debug
63 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64 Conflicts: kernel < %{min_kernel}
65 Conflicts: man-pages < 1.43
66 Conflicts: ld.so < 1.9.9-10
68 %define debugcflags -O1 -g
71 Contains the standard libraries that are used by multiple programs on
72 the system. In order to save disk space and memory, as well as to ease
73 upgrades, common system code is kept in one place and shared between
74 programs. This package contains the most important sets of shared
75 libraries, the standard C library and the standard math library.
76 Without these, a Linux system will not function. It also contains
77 national language (locale) support and timezone databases.
80 Enthält die Standard-Libraries, die von verschiedenen Programmen im
81 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
82 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
83 einer einzigen Stelle gespeichert und wird von den Programmen
84 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
85 shared Libraries, die Standard-C-Library und die
86 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
87 Ferner enthält es den Support für die verschiedenen Sprachgregionen
88 (locale) und die Zeitzonen-Datenbank.
91 Contient les bibliothèques standards utilisées par de nombreux
92 programmes du système. Afin d'économiser l'espace disque et mémoire,
93 et de faciliter les mises à jour, le code commun au système est mis à
94 un endroit et partagé entre les programmes. Ce paquetage contient les
95 bibliothèques partagées les plus importantes, la bibliothèque standard
96 du C et la bibliothèque mathématique standard. Sans celles-ci, un
97 système Linux ne peut fonctionner. Il contient aussi la gestion des
98 langues nationales (locales) et les bases de données des zones
102 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
103 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
104 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
105 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
106 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
107 standardowych, wspó³dzielonych (dynamicznych) bibliotek C i
108 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
109 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
110 jêzyków (locale) oraz definicje stref czasowych.
113 óÏÄÅÒÖÉÔ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÉÓÐÏÌØÚÕÅÍÙÅ ÍÎÏÇÏÞÉÓÌÅÎÎÙÍÉ
114 ÐÒÏÇÒÁÍÍÁÍÉ × ÓÉÓÔÅÍÅ. äÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÓÏÈÒÁÎÉÔØ ÄÉÓËÏ×ÏÅ ÐÒÏÓÔÒÁÎÓÔ×Ï
115 É ÐÁÍÑÔØ, Á ÔÁËÖÅ ÄÌÑ ÐÒÏÓÔÏÔÙ ÏÂÎÏ×ÌÅÎÉÑ, ÓÉÓÔÅÍÎÙÊ ËÏÄ, ÏÂÝÉÊ ÄÌÑ
116 ×ÓÅÈ ÐÒÏÇÒÁÍÍ, ÈÒÁÎÉÔÓÑ × ÏÄÎÏÍ ÍÅÓÔÅ É ËÏÌÌÅËÔÉ×ÎÏ ÉÓÐÏÌØÚÕÅÔÓÑ ×ÓÅÍÉ
117 ÐÒÏÇÒÁÍÍÁÍÉ. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÁÉÂÏÌÅÅ ×ÁÖÎÙÅ ÉÚ ÒÁÚÄÅÌÑÅÍÙÈ
118 ÂÉÂÌÉÏÔÅË - ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ C É ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ
119 ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÜÔÉÈ ÂÉÂÌÉÏÔÅË Linux ÆÕÎËÃÉÏÎÉÒÏ×ÁÔØ ÎÅ ÂÕÄÅÔ. ôÁËÖÅ
120 ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÏÄÄÅÒÖËÕ ÎÁÃÉÏÎÁÌØÎÙÈ ÑÚÙËÏ× (locale) É ÂÁÚÙ ÄÁÎÎÙÈ
121 ×ÒÅÍÅÎÎÙÈ ÚÏÎ (timezone databases).
124 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
125 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
126 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
127 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
128 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
129 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
130 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
133 í¦ÓÔÉÔØ ÓÔÁÎÄÁÒÔΦ ¦Â̦ÏÔÅËÉ, ËÏÔÒ¦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÞÉÓÌÅÎÎÉÍÉ
134 ÐÒÏÇÒÁÍÁÍÉ × ÓÉÓÔÅͦ. äÌÑ ÔÏÇÏ, ÝÏ ÚÂÅÒÅÇÔÉ ÄÉÓËÏ×ÉÊ ÐÒÏÓÔ¦Ò ÔÁ
135 ÐÁÍ'ÑÔØ, Á ÔÁËÏÖ ÄÌÑ ÐÒÏÓÔÏÔÉ ÐÏÎÏ×ÌÅÎÎÑ ÓÉÓÔÅÍÉ, ÓÉÓÔÅÍÎÉÊ ËÏÄ,
136 ÓЦÌØÎÉÊ ÄÌÑ ×Ó¦È ÐÒÏÇÒÁÍ, ÚÂÅÒ¦ÇÁ¤ÔØÓÑ × ÏÄÎÏÍÕ Í¦Óæ ¦ ËÏÌÅËÔÉ×ÎÏ
137 ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ ×Ó¦ÍÁ ÐÒÏÇÒÁÍÁÍÉ. ãÅÊ ÐÁËÅÔ Í¦ÓÔÉÔØ ÎÁʦÌØÛ ×ÁÖÌÉצ
138 Ú ÄÉÎÁͦÞÎÉÈ Â¦Â̦ÏÔÅË - ÓÔÁÎÄÁÒÔÎÕ Â¦Â̦ÏÔÅËÕ ó ÔÁ ÓÔÁÎÄÁÒÔÎÕ
139 ¦Â̦ÏÔÅËÕ ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÃÉÈ Â¦Â̦ÏÔÅË Linux ÆÕÎËæÏÎÕ×ÁÔÉ ÎÅ ÂÕÄÅ.
140 ôÁËÏÖ ÐÁËÅÔ Í¦ÓÔÉÔØ Ð¦ÄÔÒÉÍËÕ ÎÁæÏÎÁÌØÎÉÈ ÍÏ× (locale) ÔÁ ÂÁÚÉ ÄÁÎÎÉÈ
141 ÞÁÓÏ×ÉÈ ÚÏÎ (timezone databases).
144 Summary: Additional libraries required to compile
145 Summary(de): Weitere Libraries zum Kompilieren
146 Summary(fr): Librairies supplémentaires nécessaires à la compilation.
147 Summary(pl): Dodatkowe biblioteki wymagane podczas kompilacji
148 Summary(ru): äÏÐÏÌÎÉÔÅÌØÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ËÏÍÐÉÌÑÃÉÉ
149 Summary(tr): Geliþtirme için gerekli diðer kitaplýklar
150 Summary(uk): äÏÄÁÔËÏצ ¦Â̦ÏÔÅËÉ, ÐÏÔÒ¦ÂΦ ÄÌÑ ËÏÍЦÌÑæ§
151 Group: Development/Libraries
152 Requires: %{name} = %{version}
155 To develop programs which use the standard C libraries (which nearly
156 all programs do), the system needs to have these standard header files
157 and object files available for creating the executables.
159 %description devel -l de
160 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
161 verwenden (also fast alle), benötigt das System diese Standard-Header-
162 und Objektdateien zum Erstellen der ausführbaren Programme.
164 %description devel -l fr
165 Pour développer des programmes utilisant les bibliothèques standard du
166 C (ce que presque tous les programmes font), le système doit posséder
167 ces fichiers en-têtes et objets standards pour créer les exécutables.
169 %description devel -l pl
170 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
171 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
172 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
173 wykonywalnych i innych bibliotek.
175 %description devel -l ru
176 äÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ C (Á
177 ÐÒÁËÔÉÞÅÓËÉ ×ÓÅ ÐÒÏÇÒÁÍÍÙ ÉÈ ÉÓÐÏÌØÚÕÀÔ), ÓÉÓÔÅÍÅ îåïâèïäéíù ÈÅÄÅÒÙ É
178 ÏÂßÅËÔÎÙÅ ÆÁÊÌÙ, ÓÏÄÅÒÖÁÝÉÅÓÑ × ÜÔÏÍ ÐÁËÅÔÅ, ÞÔÏÂÙ ÓÏÚÄÁ×ÁÔØ
181 %description devel -l tr
182 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
183 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
186 %description devel -l uk
187 äÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÓÔÁÎÄÁÒÔΦ ¦Â̦ÏÔÅËÉ C
188 (ÐÒÁËÔÉÞÎÏ ×Ó¦ ÐÒÏÇÒÁÍÉ §È ×ÉËÏÒÉÓÔÏ×ÕÀÔØ), ÓÉÓÔÅͦ îåïâè¶äî¶ ÈÅÄÅÒÉ
189 ÔÁ ÏÂ'¤ËÔΦ ÆÁÊÌÉ, ÝÏ Í¦ÓÔÑÔØÓÑ × ÃØÏÍÕ ÐÁËÅÔ¦, ÃÏ ÓÔ×ÏÒÀ×ÁÔÉ
193 Summary: Name Service Caching Daemon
194 Summary(pl): Demon zapamiêtuj±cy odpowiedzi serwisów nazw
195 Summary(ru): ëÜÛÉÒÕÀÝÉÊ ÄÅÍÏÎ ÓÅÒ×ÉÓÏ× ÉÍÅÎ
196 Summary(uk): ëÅÛÕÀÞÉÊ ÄÅÍÏÎ ÓÅ×¦Ó¦× ¦ÍÅÎ
197 Group: Networking/Daemons
198 PreReq: /sbin/chkconfig
199 PreReq: rc-scripts >= 0.2.0
200 Requires: %{name} = %{version}
201 Requires(post): fileutils
204 nscd caches name service lookups; it can dramatically improve
205 performance with NIS+, and may help with DNS as well. You cannot use
206 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
207 nscd happens to hit these bugs particularly hard.
209 %description -n nscd -l pl
210 nscd zapamiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
211 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
212 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³êdów po stronie j±dra w
215 %description -n nscd -l ru
216 nscd ËÜÛÉÒÕÅÔ ÒÅÚÕÌØÔÁÔÙ ÚÁÐÒÏÓÏ× Ë ÓÅÒ×ÉÓÁÍ ÉÍÅÎ; ÜÔÏ ÍÏÖÅÔ ÒÅÚËÏ
217 Õ×ÅÌÉÞÉÔØ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔØ ÒÁÂÏÔÙ Ó NIS+ É, ÔÁËÖÅ, ÍÏÖÅÔ ÐÏÍÏÞØ Ó
220 %description -n nscd -l uk
221 nscd ËÅÛÕ¤ ÒÅÚÕÌØÔÁÔÉ ÚÁÐÒÏÓ¦× ÄÏ ÓÅÒ×¦Ó¦× ¦ÍÅÎ; ÃÅ ÍÏÖÅ ÓÉÌØÎÏ
222 Ú¦ÌØÛÉÔÉ Û×ÉÄ˦ÓÔØ ÒÏÂÏÔÉ Ú NIS+ ¦, ÔÁËÏÖ, ÍÏÖÅ ÄÏÐÏÍÏÇÔÉ Ú DNS.
224 %package -n localedb-src
225 Summary: locale database source code
226 Summary(pl): Kod ¼ród³owy bazy locale
228 Requires: %{name} = %{version}
230 %description -n localedb-src
231 This add-on package contains the data needed to build the locale data
232 files to use the internationalization features of the GNU libc. glibc
233 package contains standard set of locale binary database so you need
234 this package only when you want to build some non-standard locale
237 %description -n localedb-src -l pl
238 Pakiet ten zawiera dane niezbêdne do zbudowania binarnych plików
239 lokalizacyjnych, by móc wykorzystaæ mo¿liwo¶ci oferowane przez GNU
240 libc. glibc zawiera standardowy zestaw binarnych baz lokalizacyjnych,
241 w zwi±zku z czym ten pakiet jest potrzebny tylko w sytuacji budowania
242 jakiej¶ niestandardowej bazy.
245 Summary: Convert encoding of given files from one encoding to another
246 Summary(pl): Program do konwersji plików tekstowych z jednego kodowania do innego
247 Group: Applications/Text
248 Requires: %{name} = %{version}
250 %description -n iconv
251 Convert encoding of given files from one encoding to another. You need
252 this package if you want to convert some documet from one encoding to
253 another or if you have installed some programs which use Generic
254 Character Set Conversion Interface.
256 %description -n iconv -l pl
257 Program do konwersji plików tekstowych z jednego kodowania do innego.
258 Musisz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
259 dokumentów z jednego kodowania do innego lub je¿eli masz zainstalowane
260 jakie¶ programy, które korzystaj± z Generic Character Set Conversion
261 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
262 umo¿liwiaj± konwersjê kodowania danych z poziomu dowolnego programu.
265 Summary: Static libraries
266 Summary(pl): Biblioteki statyczne
267 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ glibc
268 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ glibc
269 Group: Development/Libraries
270 Requires: %{name}-devel = %{version}
273 GNU libc static libraries.
275 %description static -l pl
276 Biblioteki statyczne GNU libc.
278 %description static -l ru
279 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
280 ×ÈÏÄÑÔ × glibc-devel.
282 %description static -l uk
283 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍÉ Â¦Â̦ÏÔÅËÁÍÉ, ÝÏ Â¦ÌØÛÅ ÎÅ ×ÈÏÄÑÔØ ×
287 Summary: glibc with profiling support
288 Summary(de): glibc mit Profil-Unterstützung
289 Summary(fr): glibc avec support pour profiling
290 Summary(pl): glibc ze wsparciem dla profilowania
291 Summary(ru): GNU libc Ó ÐÏÄÄÅÒÖËÏÊ ÐÒÏÆÁÊÌÅÒÁ
292 Summary(tr): Ölçüm desteði olan glibc
293 Summary(uk): GNU libc Ú Ð¦ÄÔÒÉÍËÏÀ ÐÒÏÆÁÊÌÅÒÁ
294 Group: Development/Libraries/Libc
295 Obsoletes: libc-profile
296 Requires: %{name}-devel = %{version}
299 When programs are being profiled used gprof, they must use these
300 libraries instead of the standard C libraries for gprof to be able to
301 profile them correctly.
303 %description profile -l de
304 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
305 Libraries anstelle der üblichen C-Libraries verwendet werden.
307 %description profile -l pl
308 Programy profilowane za pomoc± gprof musz± u¿ywaæ tych bibliotek
309 zamiast standardowych bibliotek C, aby gprof móg³ odpowiednio je
312 %description profile -l uk
313 ëÏÌÉ ÐÒÏÇÒÁÍÉ ÄÏÓ̦ÄÖÕÀÔØÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ×ÏÎÉ ÐÏ×ÉÎΦ
314 ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÚÁͦÓÔØ ÓÔÁÎÄÁÒÔÎÉÈ Â¦Â̦ÏÔÅË Â¦Â̦ÏÔÅËÉ, ÝÏ Í¦ÓÔÑÔØÓÑ
315 × ÃØÏÍÕ ÐÁËÅÔ¦. ðÒÉ ×ÉËÏÒÉÓÔÁÎΦ ÓÔÁÎÄÁÒÔÎÉÈ Â¦Â̦ÏÔÅË gprof ÚÁͦÓÔØ
316 ÒÅÁÌØÎÉÈ ÒÅÚÕÌØÔÁÔ¦× ÂÕÄÅ ÐÏËÁÚÕ×ÁÔÉ Ã¦ÎÉ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
319 %description profile -l tr
320 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
321 kitaplýðý kullanmak zorundadýrlar.
323 %description profile -l ru
324 ëÏÇÄÁ ÐÒÏÇÒÁÍÍÙ ÉÓÓÌÅÄÕÀÔÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ÏÎÉ ÄÏÌÖÎÙ
325 ÉÓÐÏÌØÚÏ×ÁÔØ, ×ÍÅÓÔÏ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË, ÂÉÂÌÉÏÔÅËÉ, ×ËÌÀÞÅÎÎÙÅ ×
326 ÜÔÏÔ ÐÁËÅÔ. ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË gprof ×ÍÅÓÔÏ
327 ÒÅÁÌØÎÙÈ ÒÅÚÕÌØÔÁÔÏ× ÂÕÄÅÔ ÐÏËÁÚÙ×ÁÔØ ÃÅÎÙ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
331 Summary: glibc PIC archive
332 Summary(pl): archiwum PIC glibc
333 Group: Development/Libraries/Libc
334 Requires: %{name}-devel = %{version}
337 GNU C Library PIC archive contains an archive library (ar file)
338 composed of individual shared objects. This is used for creating a
339 library which is a smaller subset of the standard libc shared library.
341 %description pic -l pl
342 Archiwum PIC biblioteki GNU C zawiera archiwaln± bibliotekê (plik ar)
343 z³o¿on± z pojedyñczych obiektów wspó³dzielonych. U¿ywana jest do
344 tworzenia biblioteki bêd±cej mniejszym podzestawem standardowej
345 biblioteki wspó³dzielonej libc.
347 %package -n nss_compat
348 Summary: Old style NYS NSS glibc module
349 Summary(pl): Stary modu³ NYS NSS glibc
351 Requires: %{name} = %{version}
353 %description -n nss_compat
354 Old style NYS NSS glibc module.
356 %description -n nss_compat -l pl
357 Stary modu³ NYS NSS glibc.
360 Summary: BIND NSS glibc module
361 Summary(pl): Modu³ BIND NSS glibc
363 Requires: %{name} = %{version}
365 %description -n nss_dns
366 BIND NSS glibc module.
368 %description -n nss_dns -l pl
369 Modu³ BIND NSS glibc.
371 %package -n nss_files
372 Summary: Traditional files databases NSS glibc module
373 Summary(pl): Modu³ tradycyjnych plikowych baz danych NSS glibc
375 Requires: %{name} = %{version}
377 %description -n nss_files
378 Traditional files databases NSS glibc module.
380 %description -n nss_files -l pl
381 Modu³ tradycyjnych plikowych baz danych NSS glibc.
383 %package -n nss_hesiod
384 Summary: Hesiod NSS glibc module
385 Summary(pl): Modu³ hesiod NSS glibc
387 Requires: %{name} = %{version}
389 %description -n nss_hesiod
390 glibc NSS (Name Service Switch) module for databases access.
392 %description -n nss_hesiod -l pl
393 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych.
396 Summary: NIS(YP) NSS glibc module
397 Summary(pl): Modu³ NIS(YP) NSS glibc
399 Requires: %{name} = %{version}
401 %description -n nss_nis
402 glibc NSS (Name Service Switch) module for NIS(YP) databases access.
404 %description -n nss_nis -l pl
405 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS(YP).
407 %package -n nss_nisplus
408 Summary: NIS+ NSS module
409 Summary(pl): Modu³ NIS+ NSS
411 Requires: %{name} = %{version}
413 %description -n nss_nisplus
414 glibc NSS (Name Service Switch) module for NIS+ databases accesa.
416 %description -n nss_nisplus -l pl
417 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS+.
423 Requires: %{name} = %{version}
426 %description memusage
429 %description memusage -l pl
456 # avoid stripping ld.so by -s in rpmldflags
457 LDFLAGS=" " ; export LDFLAGS
459 --enable-add-ons=linuxthreads \
460 --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
466 # this need improvements (like building agains new builded glibc) but works
467 %{__cc} -o postshell %{rpmcflags} %{rpmldflags} %{SOURCE7}
470 rm -rf $RPM_BUILD_ROOT
471 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log}
473 env LANGUAGE=C LC_ALL=C \
475 install_root=$RPM_BUILD_ROOT \
476 infodir=%{_infodir} \
479 env LANGUAGE=C LC_ALL=C \
480 %{__make} install-locales -C localedata \
481 install_root=$RPM_BUILD_ROOT
483 PICFILES="libc_pic.a libc.map
484 math/libm_pic.a libm.map
485 resolv/libresolv_pic.a"
487 install $PICFILES $RPM_BUILD_ROOT%{_libdir}
488 install elf/soinit.os $RPM_BUILD_ROOT%{_libdir}/soinit.o
489 install elf/sofini.os $RPM_BUILD_ROOT%{_libdir}/sofini.o
491 mv -f $RPM_BUILD_ROOT/lib/libmemusage.so $RPM_BUILD_ROOT%{_libdir}
492 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
494 %{__make} -C linuxthreads/man
495 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
497 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
499 ln -sf %{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
500 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
501 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
502 ln -sf libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
504 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
506 # symlinks between directories should be absolute
507 for l in anl BrokenLocale crypt dl m nsl pthread resolv rt thread_db util ; do
508 rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
509 ln -sf /lib/`cd $RPM_BUILD_ROOT/lib ; echo lib${l}.so.*` $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
512 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
513 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
514 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
515 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
516 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
518 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
519 bzip2 -dc %{SOURCE6} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
520 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
521 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
522 rm -f %{_mandir}/hu/man7/man.7
524 :> $RPM_BUILD_ROOT/var/log/nscd
527 install -d documentation
529 cp -f linuxthreads/ChangeLog documentation/ChangeLog.threads
530 cp -f linuxthreads/Changes documentation/Changes.threads
531 cp -f linuxthreads/README documentation/README.threads
532 cp -f crypt/README.ufc-crypt documentation/
534 cp -f ChangeLog documentation
536 rm -f $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
538 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
539 %{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/lib/ld-%{version}.so}
541 # Collect locale files and mark them with %%lang()
543 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
545 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
547 # list of long %%lang values we do support
548 for j in de_AT de_BE de_CH de_LU ja_JP.SJIS ko_KR.utf8 pt_BR \
549 zh_CN zh_CN.gbk zh_HK zh_TW ; do
550 if [ $j = "$lang" ]; then
554 if [ -n "$twochar" ]; then
555 if [ `echo $lang | sed "s,_.*,,"` = "zh" ]; then
556 lang=`echo $lang | sed "s,\..*,,"`
558 lang=`echo $lang | sed "s,_.*,,"`
561 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
562 echo "%lang($lang) $dir" >> glibc.lang
565 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 \
566 lt lv ms nn pt ro ru sl sr ta uk wa zh_CN ; do
568 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
569 lang=`echo $i | sed -e 's/_.*//'`
570 echo "%lang($lang) %{_datadir}/locale/$i" >> glibc.lang
573 install %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/man8
575 install -m755 postshell $RPM_BUILD_ROOT/sbin
578 rm -rf $RPM_BUILD_ROOT
580 # don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
581 # when %%postun is run
583 %post -p /sbin/postshell
587 %postun -p /sbin/postshell
591 %post memusage -p /sbin/ldconfig
592 %postun memusage -p /sbin/ldconfig
594 %post -n iconv -p %{_sbindir}/iconvconfig
597 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
600 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
603 /sbin/chkconfig --add nscd
604 touch /var/log/nscd && (chmod 000 /var/log/nscd; chown root.root /var/log/nscd; chmod 640 /var/log/nscd)
605 if [ -f /var/lock/subsys/nscd ]; then
606 /etc/rc.d/init.d/nscd restart 1>&2
608 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
612 if [ "$1" = "0" ]; then
613 if [ -f /var/lock/subsys/nscd ]; then
614 /etc/rc.d/init.d/nscd stop 1>&2
616 /sbin/chkconfig --del nscd
619 %files -f %{name}.lang
620 %defattr(644,root,root,755)
621 %doc README NEWS FAQ BUGS
623 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf
624 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nsswitch.conf
625 %config %{_sysconfdir}/rpc
626 %ghost %{_sysconfdir}/ld.so.cache
628 %attr(755,root,root) /sbin/*
629 %attr(755,root,root) %{_bindir}/catchsegv
630 %attr(755,root,root) %{_bindir}/getent
631 %attr(755,root,root) %{_bindir}/glibcbug
632 %attr(755,root,root) %{_bindir}/iconv
633 %attr(755,root,root) %{_bindir}/ldd
634 %ifnarch alpha sparc sparc64 ppc
635 %attr(755,root,root) %{_bindir}/lddlibc4
637 %attr(755,root,root) %{_bindir}/locale
638 %attr(755,root,root) %{_bindir}/rpcgen
639 %attr(755,root,root) %{_bindir}/tzselect
641 %attr(755,root,root) %{_sbindir}/rpcinfo
642 %attr(755,root,root) %{_sbindir}/zdump
643 %attr(755,root,root) %{_sbindir}/zic
645 %attr(755,root,root) /lib/ld-*
646 %attr(755,root,root) /lib/libanl*
647 %attr(755,root,root) /lib/libdl*
648 %attr(755,root,root) /lib/libnsl*
649 %attr(755,root,root) /lib/lib[BScmprtu]*
651 %dir %{_datadir}/locale
652 %{_datadir}/locale/locale.alias
655 %dir %{_libdir}/locale
657 %{_mandir}/man1/[^lsg]*
658 %{_mandir}/man1/getent.1*
659 %{_mandir}/man1/locale.1*
660 %{_mandir}/man1/ldd.1*
661 %{_mandir}/man5/???[^d]*
663 %{_mandir}/man8/[^n]*
664 %lang(cs) %{_mandir}/cs/man[578]/*
665 %lang(de) %{_mandir}/de/man[578]/*
666 %lang(es) %{_mandir}/es/man[578]/*
667 %lang(fi) %{_mandir}/fi/man1/ldd.1*
668 %lang(fr) %{_mandir}/fr/man1/ldd.1*
669 %lang(fr) %{_mandir}/fr/man[578]/*
670 %lang(hu) %{_mandir}/hu/man1/ldd.1*
671 %lang(hu) %{_mandir}/hu/man[578]/*
672 %lang(it) %{_mandir}/it/man[578]/*
673 %lang(ja) %{_mandir}/ja/man1/[^lsg]*
674 %lang(ja) %{_mandir}/ja/man1/ldd.1*
675 %lang(ja) %{_mandir}/ja/man5/???[^d]*
676 %lang(ja) %{_mandir}/ja/man7/*
677 %lang(ja) %{_mandir}/ja/man8/[^n]*
678 %lang(ko) %{_mandir}/ko/man[578]/*
679 # %lang(nl) %{_mandir}/nl/man[578]/*
680 %lang(pl) %{_mandir}/pl/man1/ldd.1*
681 %lang(pl) %{_mandir}/pl/man[578]/*
682 %lang(pt) %{_mandir}/pt/man5/???[^d]*
683 %lang(pt) %{_mandir}/pt/man7/*
684 %lang(pt) %{_mandir}/pt/man8/[^n]*
685 %lang(pt_BR) %{_mandir}/pt_BR/man5/???[^d]*
686 %lang(pt_BR) %{_mandir}/pt_BR/man7/*
687 %lang(pt_BR) %{_mandir}/pt_BR/man8/[^n]*
688 %lang(ru) %{_mandir}/ru/man[578]/*
691 %defattr(644,root,root,755)
692 %attr(755,root,root) /lib/libnss_dns*.so*
695 %defattr(644,root,root,755)
696 %attr(755,root,root) /lib/libnss_files*.so*
699 %defattr(644,root,root,755)
700 %attr(755,root,root) /lib/libnss_compat*.so*
703 %defattr(644,root,root,755)
704 %attr(755,root,root) /lib/libnss_hesiod*.so*
707 %defattr(644,root,root,755)
708 %attr(755,root,root) /lib/libnss_nis.so.*
709 %attr(755,root,root) /lib/libnss_nis-*.so
711 %files -n nss_nisplus
712 %defattr(644,root,root,755)
713 %attr(755,root,root) /lib/libnss_nisplus*.so*
716 %defattr(644,root,root,755)
717 %attr(755,root,root) %{_bindir}/memusage*
718 %attr(755,root,root) %{_libdir}/libmemusage*
721 %defattr(644,root,root,755)
722 %doc documentation/* NOTES PROJECTS
723 %attr(755,root,root) %{_bindir}/gencat
724 %attr(755,root,root) %{_bindir}/getconf
725 %attr(755,root,root) %{_bindir}/*prof*
726 %attr(755,root,root) %{_bindir}/*trace
730 %{_infodir}/libc.info*
732 %attr(755,root,root) %{_libdir}/lib[^m]*.so
733 %attr(755,root,root) %{_libdir}/libm.so
734 %attr(755,root,root) %{_libdir}/*crt*.o
735 %{_libdir}/libbsd-compat.a
737 %{_libdir}/libc_nonshared.a
740 %{_libdir}/librpcsvc.a
742 %{_mandir}/man1/getconf*
743 %{_mandir}/man1/sprof*
745 %lang(cs) %{_mandir}/cs/man3/*
746 %lang(de) %{_mandir}/de/man3/*
747 %lang(es) %{_mandir}/es/man3/*
748 %lang(fr) %{_mandir}/fr/man3/*
749 %lang(hu) %{_mandir}/hu/man3/*
750 # %lang(it) %{_mandir}/it/man3/*
751 %lang(ja) %{_mandir}/ja/man3/*
752 %lang(ko) %{_mandir}/ko/man3/*
753 %lang(nl) %{_mandir}/nl/man3/*
754 %lang(pl) %{_mandir}/pl/man3/*
755 %lang(pt) %{_mandir}/pt/man3/*
756 %lang(pt_BR) %{_mandir}/pt_BR/man3/*
757 %lang(ru) %{_mandir}/ru/man3/*
760 %defattr(644,root,root,755)
761 %attr(640,root,root) %config %verify(not md5 size mtime) /etc/sysconfig/nscd
762 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nscd.*
763 %attr(754,root,root) /etc/rc.d/init.d/nscd
764 %attr(755,root,root) %{_sbindir}/nscd*
765 %attr(640,root,root) /etc/logrotate.d/nscd
766 %attr(640,root,root) %ghost /var/log/nscd
767 %{_mandir}/man5/nscd.conf*
768 %{_mandir}/man8/nscd*
769 %lang(ja) %{_mandir}/ja/man5/nscd.conf*
770 %lang(ja) %{_mandir}/ja/man8/nscd*
771 %lang(pt) %{_mandir}/pt/man5/nscd.conf*
772 %lang(pt) %{_mandir}/pt/man8/nscd*
773 %lang(pt_BR) %{_mandir}/pt_BR/man5/nscd.conf*
774 %lang(pt_BR) %{_mandir}/pt_BR/man8/nscd*
776 %files -n localedb-src
777 %defattr(644,root,root,755)
778 %attr(755,root,root) %{_bindir}/localedef
780 %{_mandir}/man1/localedef*
783 %defattr(644,root,root,755)
784 %attr(755,root,root) %{_sbindir}/iconvconfig
785 %dir %{_libdir}/gconv
786 %{_libdir}/gconv/gconv-modules
787 %attr(755,root,root) %{_libdir}/gconv/*.so
790 %defattr(644,root,root,755)
792 %{_libdir}/libBrokenLocale.a
794 %{_libdir}/libcrypt.a
797 %{_libdir}/libmcheck.a
799 %{_libdir}/libpthread.a
800 %{_libdir}/libresolv.a
805 %defattr(644,root,root,755)
809 %defattr(644,root,root,755)
810 %{_libdir}/lib*_pic.a