1 %define min_kernel 2.2.0
15 Source0: ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.gz
16 Source1: ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.gz
18 Source3: nscd.sysconfig
19 Source4: nscd.logrotate
21 Patch0: %{name}-info.patch
22 Patch1: %{name}-versions.awk_fix.patch
23 Patch2: %{name}-pld.patch
24 Patch3: %{name}-crypt-blowfish.patch
25 Patch4: %{name}-string2-pointer-arith.patch
26 Patch5: %{name}-linuxthreads-lock.patch
27 Patch6: %{name}-pthread_create-manpage.patch
28 Patch7: %{name}-sparc-linux-chown.patch
29 Patch8: %{name}-ldconfig-bklinks.patch
30 Patch9: %{name}-getconf.patch
31 Patch10: %{name}-confname.patch
32 Patch11: %{name}-nis.patch
33 Patch12: %{name}-speed.patch
34 Patch13: %{name}-paths.patch
35 Patch14: %{name}-vaargs.patch
36 URL: http://www.gnu.org/software/libc/
37 BuildRequires: gd-devel >= 2.0.1
38 BuildRequires: gettext-devel >= 0.10.36
39 BuildRequires: libpng-devel
41 BuildRequires: rpm-build >= 4.0-11
42 BuildRequires: texinfo
45 Provides: /sbin/ldconfig
46 Obsoletes: %{name}-common
47 Obsoletes: %{name}-debug
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 Conflicts: kernel < %{min_kernel}
55 Contains the standard libraries that are used by multiple programs on
56 the system. In order to save disk space and memory, as well as to ease
57 upgrades, common system code is kept in one place and shared between
58 programs. This package contains the most important sets of shared
59 libraries, the standard C library and the standard math library.
60 Without these, a Linux system will not function. It also contains
61 national language (locale) support and timezone databases.
64 Enthält die Standard-Libraries, die von verschiedenen Programmen im
65 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
66 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
67 einer einzigen Stelle gespeichert und wird von den Programmen
68 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
69 shared Libraries, die Standard-C-Library und die
70 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
71 Ferner enthält es den Support für die verschiedenen Sprachgregionen
72 (locale) und die Zeitzonen-Datenbank.
75 Contient les bibliothèques standards utilisées par de nombreux
76 programmes du système. Afin d'économiser l'espace disque et mémoire,
77 et de faciliter les mises à jour, le code commun au système est mis à
78 un endroit et partagé entre les programmes. Ce paquetage contient les
79 bibliothèques partagées les plus importantes, la bibliothèque standard
80 du C et la bibliothèque mathématique standard. Sans celles-ci, un
81 système Linux ne peut fonctionner. Il contient aussi la gestion des
82 langues nationales (locales) et les bases de données des zones
86 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
87 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
88 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
89 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
90 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
91 standardowych, wspó³dzielonych (dynamicznych) bibliotek C i
92 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
93 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
94 jêzyków (locale) oraz definicje stref czasowych.
97 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
98 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
99 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
100 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
101 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
102 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
103 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
106 Summary: Additional libraries required to compile
107 Summary(de): Weitere Libraries zum Kompilieren
108 Summary(fr): Librairies supplémentaires nécessaires à la compilation.
109 Summary(pl): Dodatkowe biblioteki wymagane podczas kompilacji
110 Summary(tr): Geliþtirme için gerekli diðer kitaplýklar
111 Group: Development/Libraries
112 Group(de): Entwicklung/Libraries
113 Group(fr): Development/Librairies
114 Group(pl): Programowanie/Biblioteki
115 Requires: %{name} = %{version}
118 To develop programs which use the standard C libraries (which nearly
119 all programs do), the system needs to have these standard header files
120 and object files available for creating the executables.
122 %description devel -l de
123 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
124 verwenden (also fast alle), benötigt das System diese Standard-Header-
125 und Objektdateien zum Erstellen der ausführbaren Programme.
127 %description devel -l fr
128 Pour développer des programmes utilisant les bibliothèques standard du
129 C (ce que presque tous les programmes font), le système doit posséder
130 ces fichiers en-têtes et objets standards pour créer les exécutables.
132 %description devel -l pl
133 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
134 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
135 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
136 wykonywalnych i innych bibliotek.
138 %description devel -l tr
139 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
140 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
144 Summary: Name Service Caching Daemon
145 Summary(pl): Name Service Caching Daemon
146 Group: Networking/Daemons
147 Group(de): Netzwerkwesen/Server
148 Group(pl): Sieciowe/Serwery
149 Prereq: /sbin/chkconfig
150 Prereq: rc-scripts >= 0.2.0
151 Requires: %{name} = %{version}
154 nscd caches name service lookups; it can dramatically improve
155 performance with NIS+, and may help with DNS as well. You cannot use
156 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
157 nscd happens to hit these bugs particularly hard.
159 %description -n nscd -l pl
160 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
161 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
162 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³êdów po stronie j±dra
165 %package -n localedb-src
166 Summary: Souce code locale database
167 Summary(pl): Kod ¼ród³owy bazy locale
171 Requires: %{name} = %{version}
173 %description -n localedb-src
174 This add-on package contains the data needed to build the locale data
175 files to use the internationalization features of the GNU libc. glibc
176 package contains standard set of locale binary database and You need
177 this package if want build some non standard locale database.
179 %description -n localedb-src -l pl
180 Pakiet ten kod ¼ród³owy baz locale który jest potrzebny do zbudowania
181 binarnej wersji baz locale potrzebnej do poprawnego wspierania ró¿nych
182 jêzyków przez glibc. Pakiet glibc zawira binarn± wersjê standardowych
183 baz locale i ten pakiet jest potrzebny tylko w sytuacji kiedy potrzeba
184 wygenerowaæ jak±¶ niestandardow± bazê.
187 Summary: Convert encoding of given files from one encoding to another
188 Summary(pl): Program do konwersji plików tekstowych z jednego kodowania do innego
192 Requires: %{name} = %{version}
194 %description -n iconv
195 Convert encoding of given files from one encoding to another. You need
196 this package if You want to convert some documet from one encoding to
197 another or if You have installed some programs which use Generic
198 Character Set Conversion Interface.
200 %description -n iconv -l pl
201 Program do konwersji plików tekstowych z jednego kodowania do innego.
202 Musisz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
203 dokumentów z jednego kodowania do innego lub je¿eli masz zainstalowane
204 jakie¶ programy, które korzystaj± z Generic Character Set Conversion
205 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
206 umo¿liwiaj± konwersjê kodowania danych z poziomu dowolnego programu.
209 Summary: Static libraries
210 Summary(pl): Biblioteki statyczne
211 Group: Development/Libraries
212 Group(de): Entwicklung/Libraries
213 Group(fr): Development/Librairies
214 Group(pl): Programowanie/Biblioteki
215 Requires: %{name}-devel = %{version}
218 GNU libc static libraries.
220 %description static -l pl
221 Biblioteki statyczne GNU libc.
224 Summary: glibc with profiling support
225 Summary(de): glibc mit Profil-Unterstützung
226 Summary(fr): glibc avec support pour profiling
227 Summary(pl): glibc ze wsparciem dla profilowania
228 Summary(tr): Ölçüm desteði olan glibc
229 Group: Development/Libraries/Libc
230 Group(de): Entwicklung/Libraries/Libc
231 Group(pl): Programowanie/Biblioteki/Libc
232 Obsoletes: libc-profile
233 Requires: %{name}-devel = %{version}
236 When programs are being profiled used gprof, they must use these
237 libraries instead of the standard C libraries for gprof to be able to
238 profile them correctly.
240 %description profile -l de
241 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
242 Libraries anstelle der üblichen C-Libraries verwendet werden.
244 %description profile -l pl
245 Programy profilowane za pomoc± gprof musz± u¿ywaæ tych bibliotek
246 zamiast standardowych bibliotek C, aby gprof móg³ odpowiednio je
249 %description profile -l tr
250 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
251 kitaplýðý kullanmak zorundadýrlar.
254 Summary: glibc PIC archive
255 Summary(pl): archiwum PIC glibc
256 Group: Development/Libraries/Libc
257 Group(de): Entwicklung/Libraries/Libc
258 Group(pl): Programowanie/Biblioteki/Libc
259 Requires: %{name}-devel = %{version}
262 GNU C Library PIC archive contains an archive library (ar file)
263 composed of individual shared objects. This is used for creating a
264 library which is a smaller subset of the standard libc shared library.
266 %description pic -l pl
267 Archiwum PIC biblioteki GNU C zawiera archiwaln± bibliotekê (plik ar)
268 z³o¿on± z pojedyñczych obiektów wspó³dzielonych. U¿ywana jest do
269 tworzenia biblioteki bêd±cej mniejszym podzestawem standardowej
270 biblioteki wspó³dzielonej libc.
272 %package -n nss_compat
273 Summary: Old style NYS NSS glibc module
274 Summary(pl): Stary modu³ NYS NSS glibc
276 Group(de): Gründsätzlich
277 Group(pl): Podstawowe
278 Requires: %{name} = %{version}
280 %description -n nss_compat
281 Old style NYS NSS glibc module.
283 %description -n nss_compat -l pl
284 Stary modu³ NYS NSS glibc.
287 Summary: BIND NSS glibc module
288 Summary(pl): Modu³ BIND NSS glibc
290 Group(de): Gründsätzlich
291 Group(pl): Podstawowe
292 Requires: %{name} = %{version}
294 %description -n nss_dns
295 BIND NSS glibc module.
297 %description -n nss_dns -l pl
298 Modu³ BIND NSS glibc.
300 %package -n nss_files
301 Summary: Traditional files databases NSS glibc module
302 Summary(pl): Modu³ tradycyjnych plikowych baz danych NSS glibc
304 Group(de): Gründsätzlich
305 Group(pl): Podstawowe
306 Requires: %{name} = %{version}
308 %description -n nss_files
309 Traditional files databases NSS glibc module.
311 %description -n nss_files -l pl
312 Modu³ tradycyjnych plikowych baz danych NSS glibc.
314 %package -n nss_hesiod
315 Summary: Hesiod NSS glibc module
316 Summary(pl): Modu³ hesiod NSS glibc
318 Group(de): Gründsätzlich
319 Group(pl): Podstawowe
320 Requires: %{name} = %{version}
322 %description -n nss_hesiod
323 glibc NSS (Name Service Switch) module for databases access.
325 %description -n nss_hesiod -l pl
326 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych.
329 Summary: NIS(YP) NSS glibc module
330 Summary(pl): Modu³ NIS(YP) NSS glibc
332 Group(de): Gründsätzlich
333 Group(pl): Podstawowe
334 Requires: %{name} = %{version}
336 %description -n nss_nis
337 glibc NSS (Name Service Switch) module for NIS(YP) databases access.
339 %description -n nss_nis -l pl
340 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS(YP).
342 %package -n nss_nisplus
343 Summary: NIS+ NSS module
344 Summary(pl): Modu³ NIS+ NSS
346 Group(de): Gründsätzlich
347 Group(pl): Podstawowe
348 Requires: %{name} = %{version}
350 %description -n nss_nisplus
351 glibc NSS (Name Service Switch) module for NIS+ databases accesa.
353 %description -n nss_nisplus -l pl
354 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS+.
360 Group(de): Applikationen
362 Requires: %{name} = %{version}
365 %description memusage
368 %description memusage -l pl
390 LDFLAGS=" " ; export LDFLAGS
392 --enable-add-ons=linuxthreads \
393 --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
400 rm -rf $RPM_BUILD_ROOT
401 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man{3,8},/var/log}
403 env LANGUAGE=C LC_ALL=C \
405 install_root=$RPM_BUILD_ROOT \
406 infodir=%{_infodir} \
409 env LANGUAGE=C LC_ALL=C \
410 %{__make} install-locales -C localedata \
411 install_root=$RPM_BUILD_ROOT
413 PICFILES="libc_pic.a libc.map
414 math/libm_pic.a libm.map
415 resolv/libresolv_pic.a"
417 install $PICFILES $RPM_BUILD_ROOT%{_libdir}
418 install elf/soinit.os $RPM_BUILD_ROOT%{_libdir}/soinit.o
419 install elf/sofini.os $RPM_BUILD_ROOT%{_libdir}/sofini.o
421 mv -f $RPM_BUILD_ROOT/lib/libmemusage.so $RPM_BUILD_ROOT%{_libdir}
422 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
424 %{__make} -C linuxthreads/man
425 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
427 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
429 ln -sf ../../..%{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
430 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
431 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
432 ln -sf ../..%{_libdir}/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
434 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
436 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
437 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
438 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
439 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
440 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
442 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man8/
443 touch $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.{cache,conf}
445 :> $RPM_BUILD_ROOT/var/log/nscd
448 install -d documentation
450 cp linuxthreads/ChangeLog documentation/ChangeLog.threads
451 cp linuxthreads/Changes documentation/Changes.threads
452 cp linuxthreads/README documentation/README.threads
453 cp crypt/README.ufc-crypt documentation/
455 cp ChangeLog ChangeLog.8 documentation
457 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS documentation/*
459 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
460 %{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/lib/ld-%{version}.so}
462 # Collect locale files and mark them with %%lang()
464 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
466 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
467 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
468 echo "%lang($lang) $dir" >> glibc.lang
472 %post -p /sbin/ldconfig
473 %postun -p /sbin/ldconfig
475 %post memusage -p /sbin/ldconfig
476 %postun memusage -p /sbin/ldconfig
485 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
486 NAME=nscd; DESC="nscd daemon"; %chkconfig_add
489 NAME=nscd; %chkconfig_del
492 rm -rf $RPM_BUILD_ROOT
494 %files -f %{name}.lang
495 %defattr(644,root,root,755)
496 %doc {README,NEWS,FAQ,BUGS}.gz
498 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf
499 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nsswitch.conf
500 %config %{_sysconfdir}/rpc
501 %ghost %{_sysconfdir}/ld.so.cache
503 %attr(755,root,root) /sbin/*
504 %attr(755,root,root) %{_bindir}/catchsegv
505 %attr(755,root,root) %{_bindir}/getent
506 %attr(755,root,root) %{_bindir}/glibcbug
507 %attr(755,root,root) %{_bindir}/iconv
508 %attr(755,root,root) %{_bindir}/ldd
510 %attr(755,root,root) %{_bindir}/lddlibc4
512 %attr(755,root,root) %{_bindir}/locale
513 %attr(755,root,root) %{_bindir}/rpcgen
514 %attr(755,root,root) %{_bindir}/tzselect
516 %attr(755,root,root) %{_sbindir}/rpcinfo
517 %attr(755,root,root) %{_sbindir}/zdump
518 %attr(755,root,root) %{_sbindir}/zic
520 %attr(755,root,root) /lib/ld-*
521 %attr(755,root,root) /lib/libdl*
522 %attr(755,root,root) /lib/libnsl*
523 %attr(755,root,root) /lib/lib[BScmprtu]*
525 %dir %{_datadir}/locale
526 %{_datadir}/locale/locale.alias
529 %dir %{_libdir}/locale
531 %{_mandir}/man8/ldconfig*
534 %defattr(644,root,root,755)
535 %attr(755,root,root) /lib/libnss_dns*.so*
538 %defattr(644,root,root,755)
539 %attr(755,root,root) /lib/libnss_files*.so*
542 %defattr(644,root,root,755)
543 %attr(755,root,root) /lib/libnss_compat*.so*
546 %defattr(644,root,root,755)
547 %attr(755,root,root) /lib/libnss_hesiod*.so*
550 %defattr(644,root,root,755)
551 %attr(755,root,root) /lib/libnss_nis.so.*
552 %attr(755,root,root) /lib/libnss_nis-*.so
554 %files -n nss_nisplus
555 %defattr(644,root,root,755)
556 %attr(755,root,root) /lib/libnss_nisplus*.so*
559 %defattr(644,root,root,755)
560 %attr(755,root,root) %{_bindir}/memusage*
561 %attr(755,root,root) %{_libdir}/libmemusage*
564 %defattr(644,root,root,755)
565 %doc documentation/* {NOTES,PROJECTS}.gz
566 %attr(755,root,root) %{_bindir}/gencat
567 %attr(755,root,root) %{_bindir}/getconf
568 %attr(755,root,root) %{_bindir}/*prof*
569 %attr(755,root,root) %{_bindir}/*trace
573 %{_infodir}/libc.info*
575 %attr(755,root,root) %{_libdir}/lib*.so
576 %attr(755,root,root) %{_libdir}/*crt*.o
577 %{_libdir}/libc_nonshared.a
582 %defattr(644,root,root,755)
583 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
584 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nscd.*
585 %attr(754,root,root) /etc/rc.d/init.d/nscd
586 %attr(755,root,root) %{_sbindir}/nscd*
587 %attr(640,root,root) /etc/logrotate.d/nscd
588 %attr(640,root,root) %ghost /var/log/nscd
590 %files -n localedb-src
591 %defattr(644,root,root,755)
592 %attr(755,root,root) %{_bindir}/localedef
596 %defattr(644,root,root,755)
597 %dir %{_libdir}/gconv
598 %{_libdir}/gconv/gconv-modules
599 %attr(755,root,root) %{_libdir}/gconv/*.so
602 %defattr(644,root,root,755)
603 %{_libdir}/libBrokenLocale.a
604 %{_libdir}/libbsd-compat.a
607 %{_libdir}/libcrypt.a
612 %{_libdir}/libmcheck.a
614 %{_libdir}/libpthread.a
615 %{_libdir}/libresolv.a
616 %{_libdir}/librpcsvc.a
621 %defattr(644,root,root,755)
625 %defattr(644,root,root,755)
626 %{_libdir}/lib*_pic.a