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 Group: Development/Libraries
202 %description kernel-headers
203 Kernel header files the glibc has been built with.
205 %description kernel-headers -l pl
206 Pliki nag³ówkowe j±dra, z którymi zosta³a zbudowana ta wersja glibc.
209 Summary: Name Service Caching Daemon
210 Summary(pl): Demon zapamiêtuj±cy odpowiedzi serwisów nazw
211 Summary(ru): ëÜÛÉÒÕÀÝÉÊ ÄÅÍÏÎ ÓÅÒ×ÉÓÏ× ÉÍÅÎ
212 Summary(uk): ëÅÛÕÀÞÉÊ ÄÅÍÏÎ ÓÅ×¦Ó¦× ¦ÍÅÎ
213 Group: Networking/Daemons
214 PreReq: /sbin/chkconfig
215 PreReq: rc-scripts >= 0.2.0
216 Requires: %{name} = %{version}
217 Requires(post): fileutils
220 nscd caches name service lookups; it can dramatically improve
221 performance with NIS+, and may help with DNS as well. You cannot use
222 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
223 nscd happens to hit these bugs particularly hard.
225 %description -n nscd -l pl
226 nscd zapamiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
227 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
228 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³êdów po stronie j±dra w
231 %description -n nscd -l ru
232 nscd ËÜÛÉÒÕÅÔ ÒÅÚÕÌØÔÁÔÙ ÚÁÐÒÏÓÏ× Ë ÓÅÒ×ÉÓÁÍ ÉÍÅÎ; ÜÔÏ ÍÏÖÅÔ ÒÅÚËÏ
233 Õ×ÅÌÉÞÉÔØ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔØ ÒÁÂÏÔÙ Ó NIS+ É, ÔÁËÖÅ, ÍÏÖÅÔ ÐÏÍÏÞØ Ó
236 %description -n nscd -l uk
237 nscd ËÅÛÕ¤ ÒÅÚÕÌØÔÁÔÉ ÚÁÐÒÏÓ¦× ÄÏ ÓÅÒ×¦Ó¦× ¦ÍÅÎ; ÃÅ ÍÏÖÅ ÓÉÌØÎÏ
238 Ú¦ÌØÛÉÔÉ Û×ÉÄ˦ÓÔØ ÒÏÂÏÔÉ Ú NIS+ ¦, ÔÁËÏÖ, ÍÏÖÅ ÄÏÐÏÍÏÇÔÉ Ú DNS.
240 %package -n localedb-src
241 Summary: locale database source code
242 Summary(pl): Kod ¼ród³owy bazy locale
244 Requires: %{name} = %{version}
246 %description -n localedb-src
247 This add-on package contains the data needed to build the locale data
248 files to use the internationalization features of the GNU libc. glibc
249 package contains standard set of locale binary database so you need
250 this package only when you want to build some non-standard locale
253 %description -n localedb-src -l pl
254 Pakiet ten zawiera dane niezbêdne do zbudowania binarnych plików
255 lokalizacyjnych, by móc wykorzystaæ mo¿liwo¶ci oferowane przez GNU
256 libc. glibc zawiera standardowy zestaw binarnych baz lokalizacyjnych,
257 w zwi±zku z czym ten pakiet jest potrzebny tylko w sytuacji budowania
258 jakiej¶ niestandardowej bazy.
261 Summary: Convert encoding of given files from one encoding to another
262 Summary(pl): Program do konwersji plików tekstowych z jednego kodowania do innego
263 Group: Applications/Text
264 Requires: %{name} = %{version}
266 %description -n iconv
267 Convert encoding of given files from one encoding to another. You need
268 this package if you want to convert some documet from one encoding to
269 another or if you have installed some programs which use Generic
270 Character Set Conversion Interface.
272 %description -n iconv -l pl
273 Program do konwersji plików tekstowych z jednego kodowania do innego.
274 Musisz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
275 dokumentów z jednego kodowania do innego lub je¿eli masz zainstalowane
276 jakie¶ programy, które korzystaj± z Generic Character Set Conversion
277 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
278 umo¿liwiaj± konwersjê kodowania danych z poziomu dowolnego programu.
281 Summary: Static libraries
282 Summary(pl): Biblioteki statyczne
283 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ glibc
284 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ glibc
285 Group: Development/Libraries
286 Requires: %{name}-devel = %{version}
289 GNU libc static libraries.
291 %description static -l pl
292 Biblioteki statyczne GNU libc.
294 %description static -l ru
295 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
296 ×ÈÏÄÑÔ × glibc-devel.
298 %description static -l uk
299 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍÉ Â¦Â̦ÏÔÅËÁÍÉ, ÝÏ Â¦ÌØÛÅ ÎÅ ×ÈÏÄÑÔØ ×
303 Summary: glibc with profiling support
304 Summary(de): glibc mit Profil-Unterstützung
305 Summary(fr): glibc avec support pour profiling
306 Summary(pl): glibc ze wsparciem dla profilowania
307 Summary(ru): GNU libc Ó ÐÏÄÄÅÒÖËÏÊ ÐÒÏÆÁÊÌÅÒÁ
308 Summary(tr): Ölçüm desteði olan glibc
309 Summary(uk): GNU libc Ú Ð¦ÄÔÒÉÍËÏÀ ÐÒÏÆÁÊÌÅÒÁ
310 Group: Development/Libraries/Libc
311 Obsoletes: libc-profile
312 Requires: %{name}-devel = %{version}
315 When programs are being profiled used gprof, they must use these
316 libraries instead of the standard C libraries for gprof to be able to
317 profile them correctly.
319 %description profile -l de
320 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
321 Libraries anstelle der üblichen C-Libraries verwendet werden.
323 %description profile -l pl
324 Programy profilowane za pomoc± gprof musz± u¿ywaæ tych bibliotek
325 zamiast standardowych bibliotek C, aby gprof móg³ odpowiednio je
328 %description profile -l uk
329 ëÏÌÉ ÐÒÏÇÒÁÍÉ ÄÏÓ̦ÄÖÕÀÔØÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ×ÏÎÉ ÐÏ×ÉÎΦ
330 ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÚÁͦÓÔØ ÓÔÁÎÄÁÒÔÎÉÈ Â¦Â̦ÏÔÅË Â¦Â̦ÏÔÅËÉ, ÝÏ Í¦ÓÔÑÔØÓÑ
331 × ÃØÏÍÕ ÐÁËÅÔ¦. ðÒÉ ×ÉËÏÒÉÓÔÁÎΦ ÓÔÁÎÄÁÒÔÎÉÈ Â¦Â̦ÏÔÅË gprof ÚÁͦÓÔØ
332 ÒÅÁÌØÎÉÈ ÒÅÚÕÌØÔÁÔ¦× ÂÕÄÅ ÐÏËÁÚÕ×ÁÔÉ Ã¦ÎÉ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
335 %description profile -l tr
336 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
337 kitaplýðý kullanmak zorundadýrlar.
339 %description profile -l ru
340 ëÏÇÄÁ ÐÒÏÇÒÁÍÍÙ ÉÓÓÌÅÄÕÀÔÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ÏÎÉ ÄÏÌÖÎÙ
341 ÉÓÐÏÌØÚÏ×ÁÔØ, ×ÍÅÓÔÏ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË, ÂÉÂÌÉÏÔÅËÉ, ×ËÌÀÞÅÎÎÙÅ ×
342 ÜÔÏÔ ÐÁËÅÔ. ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË gprof ×ÍÅÓÔÏ
343 ÒÅÁÌØÎÙÈ ÒÅÚÕÌØÔÁÔÏ× ÂÕÄÅÔ ÐÏËÁÚÙ×ÁÔØ ÃÅÎÙ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
347 Summary: glibc PIC archive
348 Summary(pl): archiwum PIC glibc
349 Group: Development/Libraries/Libc
350 Requires: %{name}-devel = %{version}
353 GNU C Library PIC archive contains an archive library (ar file)
354 composed of individual shared objects. This is used for creating a
355 library which is a smaller subset of the standard libc shared library.
357 %description pic -l pl
358 Archiwum PIC biblioteki GNU C zawiera archiwaln± bibliotekê (plik ar)
359 z³o¿on± z pojedyñczych obiektów wspó³dzielonych. U¿ywana jest do
360 tworzenia biblioteki bêd±cej mniejszym podzestawem standardowej
361 biblioteki wspó³dzielonej libc.
363 %package -n nss_compat
364 Summary: Old style NYS NSS glibc module
365 Summary(pl): Stary modu³ NYS NSS glibc
367 Requires: %{name} = %{version}
369 %description -n nss_compat
370 Old style NYS NSS glibc module.
372 %description -n nss_compat -l pl
373 Stary modu³ NYS NSS glibc.
376 Summary: BIND NSS glibc module
377 Summary(pl): Modu³ BIND NSS glibc
379 Requires: %{name} = %{version}
381 %description -n nss_dns
382 BIND NSS glibc module.
384 %description -n nss_dns -l pl
385 Modu³ BIND NSS glibc.
387 %package -n nss_files
388 Summary: Traditional files databases NSS glibc module
389 Summary(pl): Modu³ tradycyjnych plikowych baz danych NSS glibc
391 Requires: %{name} = %{version}
393 %description -n nss_files
394 Traditional files databases NSS glibc module.
396 %description -n nss_files -l pl
397 Modu³ tradycyjnych plikowych baz danych NSS glibc.
399 %package -n nss_hesiod
400 Summary: Hesiod NSS glibc module
401 Summary(pl): Modu³ hesiod NSS glibc
403 Requires: %{name} = %{version}
405 %description -n nss_hesiod
406 glibc NSS (Name Service Switch) module for databases access.
408 %description -n nss_hesiod -l pl
409 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych.
412 Summary: NIS(YP) NSS glibc module
413 Summary(pl): Modu³ NIS(YP) NSS glibc
415 Requires: %{name} = %{version}
417 %description -n nss_nis
418 glibc NSS (Name Service Switch) module for NIS(YP) databases access.
420 %description -n nss_nis -l pl
421 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS(YP).
423 %package -n nss_nisplus
424 Summary: NIS+ NSS module
425 Summary(pl): Modu³ NIS+ NSS
427 Requires: %{name} = %{version}
429 %description -n nss_nisplus
430 glibc NSS (Name Service Switch) module for NIS+ databases accesa.
432 %description -n nss_nisplus -l pl
433 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS+.
439 Requires: %{name} = %{version}
442 %description memusage
445 %description memusage -l pl
469 # avoid stripping ld.so by -s in rpmldflags
470 LDFLAGS=" " ; export LDFLAGS
472 --enable-add-ons=linuxthreads \
473 --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
476 --with-headers=%{_kernelsrcdir}/include
477 # problem compiling with --enable-bounded (must be reported to libc-alpha)
479 %{__make} %{parallelmkflags}
482 rm -rf $RPM_BUILD_ROOT
483 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log}
487 env LANGUAGE=C LC_ALL=C \
490 install_root=$RPM_BUILD_ROOT \
491 infodir=%{_infodir} \
494 env LANGUAGE=C LC_ALL=C \
495 %{__make} localedata/install-locales \
497 install_root=$RPM_BUILD_ROOT
499 PICFILES="libc_pic.a libc.map
500 math/libm_pic.a libm.map
501 resolv/libresolv_pic.a"
503 install $PICFILES $RPM_BUILD_ROOT%{_libdir}
504 install elf/soinit.os $RPM_BUILD_ROOT%{_libdir}/soinit.o
505 install elf/sofini.os $RPM_BUILD_ROOT%{_libdir}/sofini.o
507 install elf/postshell $RPM_BUILD_ROOT/sbin
509 mv -f $RPM_BUILD_ROOT/lib/libmemusage.so $RPM_BUILD_ROOT%{_libdir}
510 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
512 %{__make} -C ../linuxthreads/man
513 install ../linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
515 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
517 ln -sf %{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
518 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
519 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
520 ln -sf libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
522 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
524 # make symlinks across top-level directories absolute
525 for l in anl BrokenLocale crypt dl m nsl pthread resolv rt thread_db util ; do
526 rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
527 ln -sf /lib/`cd $RPM_BUILD_ROOT/lib ; echo lib${l}.so.*` $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
530 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
531 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
532 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
533 install ../nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
534 install ../nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
536 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
537 bzip2 -dc %{SOURCE6} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
538 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
539 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
540 rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
542 :> $RPM_BUILD_ROOT/var/log/nscd
544 rm -rf ../documentation
545 install -d ../documentation
547 cp -f ../linuxthreads/ChangeLog ../documentation/ChangeLog.threads
548 cp -f ../linuxthreads/Changes ../documentation/Changes.threads
549 cp -f ../linuxthreads/README ../documentation/README.threads
550 cp -f ../crypt/README.ufc-crypt ../documentation/
552 cp -f ../ChangeLog* ../documentation
554 rm -f $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
556 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
557 %{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/lib/ld-%{version}.so}
559 # Collect locale files and mark them with %%lang()
561 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
563 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
565 # list of long %%lang values we do support
566 for j in de_AT de_BE de_CH de_LU ja_JP.SJIS ko_KR.utf8 pt_BR \
567 zh_CN zh_CN.gbk zh_HK zh_TW ; do
568 if [ $j = "$lang" ]; then
572 if [ -n "$twochar" ]; then
573 if [ `echo $lang | sed "s,_.*,,"` = "zh" ]; then
574 lang=`echo $lang | sed "s,\..*,,"`
576 lang=`echo $lang | sed "s,_.*,,"`
579 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
580 echo "%lang($lang) $dir" >> ../glibc.lang
583 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 \
584 lt lv ms nn pt ro ru sl sr ta uk wa zh_CN ; do
585 if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES ]; then
586 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
587 lang=`echo $i | sed -e 's/_.*//'`
588 echo "%lang($lang) %{_datadir}/locale/$i" >> ../glibc.lang
591 install %{SOURCE7} $RPM_BUILD_ROOT%{_mandir}/man8
594 rm -f $RPM_BUILD_ROOT/%{_mandir}/README.*
595 rm -f $RPM_BUILD_ROOT/%{_mandir}/diff.*
596 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
597 # we don't support kernel without ptys support
598 rm -f $RPM_BUILD_ROOT/%{_libdir}/pt_chown
600 # copy actual kernel headers for glibc-kernel-headers
601 %{__mkdir} -p $RPM_BUILD_ROOT%{_includedir}
602 %{__cp} -Hr %{_kernelsrcdir}/include/{asm,linux} $RPM_BUILD_ROOT%{_includedir}
605 rm -rf $RPM_BUILD_ROOT
607 # don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
608 # when %%postun is run
610 %post -p /sbin/postshell
614 %postun -p /sbin/postshell
618 %post memusage -p /sbin/ldconfig
619 %postun memusage -p /sbin/ldconfig
621 %post -n iconv -p %{_sbindir}/iconvconfig
624 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
625 echo "Please, install glibc-kernel-headers or chosen kernel-headers package"
626 echo "or, if you are really brave man, just make appropriate links"
627 echo "in /usr/include directory."
630 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
633 # useful if these are symlinks
634 rm -f %{_includedir}/{asm,linux}
637 /sbin/chkconfig --add nscd
638 touch /var/log/nscd && (chmod 000 /var/log/nscd; chown root.root /var/log/nscd; chmod 640 /var/log/nscd)
639 if [ -f /var/lock/subsys/nscd ]; then
640 /etc/rc.d/init.d/nscd restart 1>&2
642 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
646 if [ "$1" = "0" ]; then
647 if [ -f /var/lock/subsys/nscd ]; then
648 /etc/rc.d/init.d/nscd stop 1>&2
650 /sbin/chkconfig --del nscd
653 %files -f %{name}.lang
654 %defattr(644,root,root,755)
655 %doc README NEWS FAQ BUGS
657 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf
658 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nsswitch.conf
659 %config %{_sysconfdir}/rpc
660 %ghost %{_sysconfdir}/ld.so.cache
662 %attr(755,root,root) /sbin/*
663 %attr(755,root,root) %{_bindir}/catchsegv
664 %attr(755,root,root) %{_bindir}/getent
665 %attr(755,root,root) %{_bindir}/glibcbug
666 %attr(755,root,root) %{_bindir}/iconv
667 %attr(755,root,root) %{_bindir}/ldd
668 %ifnarch alpha sparc sparc64 ppc
669 %attr(755,root,root) %{_bindir}/lddlibc4
671 %attr(755,root,root) %{_bindir}/locale
672 %attr(755,root,root) %{_bindir}/rpcgen
673 %attr(755,root,root) %{_bindir}/tzselect
675 %attr(755,root,root) %{_sbindir}/rpcinfo
676 %attr(755,root,root) %{_sbindir}/zdump
677 %attr(755,root,root) %{_sbindir}/zic
679 %attr(755,root,root) /lib/ld-*
680 %attr(755,root,root) /lib/libanl*
681 %attr(755,root,root) /lib/libdl*
682 %attr(755,root,root) /lib/libnsl*
683 %attr(755,root,root) /lib/lib[BScmprtu]*
685 %dir %{_datadir}/locale
686 %{_datadir}/locale/locale.alias
689 %dir %{_libdir}/locale
690 %{_libdir}/locale/locale-archive
692 %{_mandir}/man1/[^lsg]*
693 %{_mandir}/man1/getent.1*
694 %{_mandir}/man1/locale.1*
695 %{_mandir}/man1/ldd.1*
696 %{_mandir}/man5/???[^d]*
698 %{_mandir}/man8/[^n]*
699 %lang(cs) %{_mandir}/cs/man[578]/*
700 %lang(de) %{_mandir}/de/man[578]/*
701 %lang(es) %{_mandir}/es/man[578]/*
702 %lang(fi) %{_mandir}/fi/man1/ldd.1*
703 %lang(fr) %{_mandir}/fr/man1/ldd.1*
704 %lang(fr) %{_mandir}/fr/man[578]/*
705 %lang(hu) %{_mandir}/hu/man1/ldd.1*
706 %lang(hu) %{_mandir}/hu/man[578]/*
707 %lang(it) %{_mandir}/it/man[578]/*
708 %lang(ja) %{_mandir}/ja/man1/[^lsg]*
709 %lang(ja) %{_mandir}/ja/man1/ldd.1*
710 %lang(ja) %{_mandir}/ja/man5/???[^d]*
711 %lang(ja) %{_mandir}/ja/man7/*
712 %lang(ja) %{_mandir}/ja/man8/[^n]*
713 %lang(ko) %{_mandir}/ko/man[578]/*
714 # %lang(nl) %{_mandir}/nl/man[578]/*
715 %lang(pl) %{_mandir}/pl/man1/ldd.1*
716 %lang(pl) %{_mandir}/pl/man[578]/*
717 %lang(pt) %{_mandir}/pt/man5/???[^d]*
718 %lang(pt) %{_mandir}/pt/man7/*
719 %lang(pt) %{_mandir}/pt/man8/[^n]*
720 %lang(pt_BR) %{_mandir}/pt_BR/man5/???[^d]*
721 %lang(pt_BR) %{_mandir}/pt_BR/man7/*
722 %lang(pt_BR) %{_mandir}/pt_BR/man8/[^n]*
723 %lang(ru) %{_mandir}/ru/man[578]/*
726 %defattr(644,root,root,755)
727 %attr(755,root,root) /lib/libnss_dns*.so*
730 %defattr(644,root,root,755)
731 %attr(755,root,root) /lib/libnss_files*.so*
734 %defattr(644,root,root,755)
735 %attr(755,root,root) /lib/libnss_compat*.so*
738 %defattr(644,root,root,755)
739 %attr(755,root,root) /lib/libnss_hesiod*.so*
742 %defattr(644,root,root,755)
743 %attr(755,root,root) /lib/libnss_nis.so.*
744 %attr(755,root,root) /lib/libnss_nis-*.so
746 %files -n nss_nisplus
747 %defattr(644,root,root,755)
748 %attr(755,root,root) /lib/libnss_nisplus*.so*
751 %defattr(644,root,root,755)
752 %attr(755,root,root) %{_bindir}/memusage*
753 %attr(755,root,root) %{_libdir}/libmemusage*
756 %defattr(644,root,root,755)
757 %doc documentation/* NOTES PROJECTS
758 %attr(755,root,root) %{_bindir}/gencat
759 %attr(755,root,root) %{_bindir}/getconf
760 %attr(755,root,root) %{_bindir}/*prof*
761 %attr(755,root,root) %{_bindir}/*trace
768 %{_includedir}/netash
769 %{_includedir}/netatalk
770 %{_includedir}/netax25
771 %{_includedir}/neteconet
772 %{_includedir}/netinet
773 %{_includedir}/netipx
774 %{_includedir}/netpacket
775 %{_includedir}/netrom
776 %{_includedir}/netrose
778 %{_includedir}/protocols
780 %{_includedir}/rpcsvc
784 %{_infodir}/libc.info*
786 %attr(755,root,root) %{_libdir}/lib[^m]*.so
787 %attr(755,root,root) %{_libdir}/libm.so
788 %attr(755,root,root) %{_libdir}/*crt*.o
789 %{_libdir}/libbsd-compat.a
791 %{_libdir}/libc_nonshared.a
794 %{_libdir}/librpcsvc.a
796 %{_mandir}/man1/getconf*
797 %{_mandir}/man1/sprof*
799 %lang(cs) %{_mandir}/cs/man3/*
800 %lang(de) %{_mandir}/de/man3/*
801 %lang(es) %{_mandir}/es/man3/*
802 %lang(fr) %{_mandir}/fr/man3/*
803 %lang(hu) %{_mandir}/hu/man3/*
804 # %lang(it) %{_mandir}/it/man3/*
805 %lang(ja) %{_mandir}/ja/man3/*
806 %lang(ko) %{_mandir}/ko/man3/*
807 %lang(nl) %{_mandir}/nl/man3/*
808 %lang(pl) %{_mandir}/pl/man3/*
809 %lang(pt) %{_mandir}/pt/man3/*
810 %lang(pt_BR) %{_mandir}/pt_BR/man3/*
811 %lang(ru) %{_mandir}/ru/man3/*
813 %files kernel-headers
814 %defattr(644,root,root,755)
819 %defattr(644,root,root,755)
820 %attr(640,root,root) %config %verify(not md5 size mtime) /etc/sysconfig/nscd
821 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nscd.*
822 %attr(754,root,root) /etc/rc.d/init.d/nscd
823 %attr(755,root,root) %{_sbindir}/nscd*
824 %attr(640,root,root) /etc/logrotate.d/nscd
825 %attr(640,root,root) %ghost /var/log/nscd
826 %{_mandir}/man5/nscd.conf*
827 %{_mandir}/man8/nscd*
828 %lang(ja) %{_mandir}/ja/man5/nscd.conf*
829 %lang(ja) %{_mandir}/ja/man8/nscd*
830 %lang(pt) %{_mandir}/pt/man5/nscd.conf*
831 %lang(pt) %{_mandir}/pt/man8/nscd*
832 %lang(pt_BR) %{_mandir}/pt_BR/man5/nscd.conf*
833 %lang(pt_BR) %{_mandir}/pt_BR/man8/nscd*
835 %files -n localedb-src
836 %defattr(644,root,root,755)
837 %attr(755,root,root) %{_bindir}/localedef
839 %{_mandir}/man1/localedef*
842 %defattr(644,root,root,755)
843 %attr(755,root,root) %{_sbindir}/iconvconfig
844 %dir %{_libdir}/gconv
845 %{_libdir}/gconv/gconv-modules
846 %attr(755,root,root) %{_libdir}/gconv/*.so
849 %defattr(644,root,root,755)
851 %{_libdir}/libBrokenLocale.a
853 %{_libdir}/libcrypt.a
856 %{_libdir}/libmcheck.a
858 %{_libdir}/libpthread.a
859 %{_libdir}/libresolv.a
864 %defattr(644,root,root,755)
868 %defattr(644,root,root,755)
869 %{_libdir}/lib*_pic.a