1 %define min_kernel 2.2.0
15 Source0: ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
16 Source1: ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
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.patch
30 Patch9: %{name}-getxxxxinfo.patch
31 Patch10: %{name}-flexiblearray.patch
32 Patch11: %{name}-unsecvars.patch
33 Patch12: %{name}-memusage.patch
34 URL: http://www.gnu.org/software/libc/
36 BuildRequires: gd-devel
37 BuildRequires: libpng-devel
38 BuildRequires: texinfo
39 BuildRequires: rpm-build >= 4.0-9
42 Provides: /sbin/ldconfig
43 Obsoletes: %{name}-profile
44 Obsoletes: %{name}-debug
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 Conflicts: kernel < %{min_kernel}
52 Contains the standard libraries that are used by multiple programs on
53 the system. In order to save disk space and memory, as well as to ease
54 upgrades, common system code is kept in one place and shared between
55 programs. This package contains the most important sets of shared
56 libraries, the standard C library and the standard math library.
57 Without these, a Linux system will not function. It also contains
58 national language (locale) support and timezone databases.
61 Enthält die Standard-Libraries, die von verschiedenen Programmen im
62 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
63 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
64 einer einzigen Stelle gespeichert und wird von den Programmen
65 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
66 shared Libraries, die Standard-C-Library und die
67 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
68 Ferner enthält es den Support für die verschiedenen Sprachgregionen
69 (locale) und die Zeitzonen-Datenbank.
72 Contient les bibliothèques standards utilisées par de nombreux
73 programmes du système. Afin d'économiser l'espace disque et mémoire,
74 et de faciliter les mises à jour, le code commun au système est mis à
75 un endroit et partagé entre les programmes. Ce paquetage contient les
76 bibliothèques partagées les plus importantes, la bibliothèque standard
77 du C et la bibliothèque mathématique standard. Sans celles-ci, un
78 système Linux ne peut fonctionner. Il contient aussi la gestion des
79 langues nationales (locales) et les bases de données des zones
83 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
84 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
85 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
86 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
87 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
88 standardowych wspó³dzielonych (dynamicznych) bibliotek C i
89 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
90 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
91 jêzyków (locale) oraz definicje stref czasowych.
94 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
95 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
96 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
97 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
98 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
99 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
100 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
103 Summary: Additional libraries required to compile
104 Summary(de): Weitere Libraries zum Kompilieren
105 Summary(fr): Librairies supplémentaires nécessaires à la compilation.
106 Summary(pl): Dodatkowe biblioteki wymagane podczas kompilacji
107 Summary(tr): Geliþtirme için gerekli diðer kitaplýklar
108 Group: Development/Libraries
109 Group(de): Entwicklung/Libraries
110 Group(fr): Development/Librairies
111 Group(pl): Programowanie/Biblioteki
112 Requires: %{name} = %{version}
115 To develop programs which use the standard C libraries (which nearly
116 all programs do), the system needs to have these standard header files
117 and object files available for creating the executables.
119 %description -l de devel
120 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
121 verwenden (also fast alle), benötigt das System diese Standard-Header-
122 und Objektdateien zum Erstellen der ausführbaren Programme.
124 %description -l fr devel
125 Pour développer des programmes utilisant les bibliothèques standard du
126 C (ce que presque tous les programmes font), le système doit posséder
127 ces fichiers en-têtes et objets standards pour créer les exécutables.
129 %description -l pl devel
130 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
131 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
132 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
133 wykonywalnych i innych bibliotek.
135 %description -l tr devel
136 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
137 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
141 Summary: Name Service Caching Daemon
142 Summary(pl): Name Service Caching Daemon
143 Group: Networking/Daemons
144 Group(de): Netzwerkwesen/Server
145 Group(pl): Sieciowe/Serwery
146 Prereq: /sbin/chkconfig
147 Requires: rc-scripts >= 0.2.0
148 Requires: %{name} = %{version}
151 nscd caches name service lookups; it can dramatically improve
152 performance with NIS+, and may help with DNS as well. You cannot use
153 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
154 nscd happens to hit these bugs particularly hard.
156 %description -n nscd -l pl
157 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
158 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
159 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów po stronie j±dra w
162 %package -n localedb-src
163 Summary: Souce code locale database
164 Summary(pl): Kod ¬ród³owy bazy locale
168 Requires: %{name} = %{version}
170 %description -n localedb-src
171 This add-on package contains the data needed to build the locale data
172 files to use the internationalization features of the GNU libc. Glibc
173 package contains standard set of locale binary database and You need
174 this package if want build some non standard locale database.
176 %description -l pl -n localedb-src
177 Pakiet ten kod ¼ród³owy baz locale który jest potrzebny do zbudowania
178 binarnej wersji baz locale potrzebnej do poprawnego wspierania ró¿nych
179 jêzyków przez glibc. Pakiet glibc zawira binarn± wersjê standardowych
180 baz locale i ten pakiet jest potrzebny tylko w sytuacji kiedy potrzeba
181 wygenerowaæ jak±¶ niestandardow± bazê.
184 Summary: Convert encoding of given files from one encoding to another
185 Summary(pl): Program do konwersji plików tekstowych z jednego enkodingu w inny
189 Requires: %{name} = %{version}
191 %description -n iconv
192 Convert encoding of given files from one encoding to another. You need
193 this package if You want to convert some documet from one encoding to
194 another or if You have installed some programs which use Generic
195 Character Set Conversion Interface.
197 %description -l pl -n iconv
198 Program do konwersji plików tekstowych z jednego enkodingu w inny.
199 Potrzebujesz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
200 dokumentów z jednego enkodingu w inny lub je¿eli masz zainstalowane
201 jakie¶ programy które korzystaj± z Generic Character Set Conversion
202 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
203 umo¿liwiaj± konwersjê enkodingu danych z poziomu dowolnego programu.
206 Summary: Static libraries
207 Summary(pl): Biblioteki statyczne
208 Group: Development/Libraries
209 Group(de): Entwicklung/Libraries
210 Group(fr): Development/Librairies
211 Group(pl): Programowanie/Biblioteki
212 Requires: %{name}-devel = %{version}
215 GNU libc static libraries.
217 %description -l pl static
218 Biblioteki statyczne GNU libc.
221 Summary: glibc with profiling support
222 Summary(de): glibc mit Profil-Unterstützung
223 Summary(fr): glibc avec support pour profiling
224 Summary(tr): Ölçüm desteði olan glibc
225 Group: Development/Libraries/Libc
226 Group(de): Entwicklung/Libraries/Libc
227 Group(pl): Programowanie/Biblioteki/Libc
228 Obsoletes: libc-profile
229 Requires: %{name}-devel = %{version}
232 When programs are being profiled used gprof, they must use these
233 libraries instead of the standard C libraries for gprof to be able to
234 profile them correctly.
236 %description -l de profile
237 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
238 Libraries anstelle der üblichen C-Libraries verwendet werden.
240 %description -l tr profile
241 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
242 kitaplýðý kullanmak zorundadýrlar.
245 Summary: glibc PIC archive
246 Group: Development/Libraries/Libc
247 Group(de): Entwicklung/Libraries/Libc
248 Group(pl): Programowanie/Biblioteki/Libc
249 Requires: %{name}-devel = %{version}
252 GNU C Library PIC archive contains an archive library (ar file)
253 composed of individual shared objects. This is used for creating a
254 library which is a smaller subset of the standard libc shared library.
256 %package -n nss_compat
257 Summary: Old style NYS NSS glibc module
259 Group(de): Gründsätzlich
260 Group(pl): Podstawowe
261 Requires: %{name} = %{version}
263 %description -n nss_compat
264 Old style NYS NSS glibc module
267 Summary: BIND NSS glibc module
269 Group(de): Gründsätzlich
270 Group(pl): Podstawowe
271 Requires: %{name} = %{version}
273 %description -n nss_dns
274 BIND NSS glibc module.
276 %package -n nss_files
277 Summary: Traditional files databases NSS glibc module
279 Group(de): Gründsätzlich
280 Group(pl): Podstawowe
281 Requires: %{name} = %{version}
283 %description -n nss_files
284 Traditional files databases NSS glibc module.
286 %package -n nss_hesiod
287 Summary: Hesiod NSS glibc module
289 Group(de): Gründsätzlich
290 Group(pl): Podstawowe
291 Requires: %{name} = %{version}
293 %description -n nss_hesiod
294 Glibc NSS (Name Service Switch) module for databases acces.
297 Summary: NIS(YP) NSS glibc module
299 Group(de): Gründsätzlich
300 Group(pl): Podstawowe
301 Requires: %{name} = %{version}
303 %description -n nss_nis
304 Glibc NSS (Name Service Switch) module for NIS(YP) databases acces.
306 %package -n nss_nisplus
307 Summary: NIS+ NSS module
309 Group(de): Gründsätzlich
310 Group(pl): Podstawowe
311 Requires: %{name} = %{version}
313 %description -n nss_nisplus
314 Glibc NSS (Name Service Switch) module for NIS+ databases acces.
319 Group(de): Applikationen
321 Requires: %{name} = %{version}
324 %description memusage
345 --enable-add-ons=linuxthreads \
346 --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
353 rm -rf $RPM_BUILD_ROOT
354 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man{3,8},var/log}
356 env LANGUAGE=C LC_ALL=C \
358 install_root=$RPM_BUILD_ROOT \
359 infodir=%{_infodir} \
362 env LANGUAGE=C LC_ALL=C \
363 %{__make} install-locales -C localedata \
364 install_root=$RPM_BUILD_ROOT
366 PICFILES="libc_pic.a libc.map
367 math/libm_pic.a libm.map
368 resolv/libresolv_pic.a"
370 install $PICFILES $RPM_BUILD_ROOT/%{_libdir}
371 install elf/soinit.os $RPM_BUILD_ROOT/%{_libdir}/soinit.o
372 install elf/sofini.os $RPM_BUILD_ROOT/%{_libdir}/sofini.o
374 mv -f $RPM_BUILD_ROOT/lib/libmemusage.so $RPM_BUILD_ROOT%{_libdir}
375 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
377 %{__make} -C linuxthreads/man
378 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
380 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
382 ln -sf ../../..%{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
383 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
384 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
385 ln -sf ../..%{_libdir}/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
387 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
389 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
390 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
391 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
392 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
393 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
396 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man8/
397 touch $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.{cache,conf}
399 :> $RPM_BUILD_ROOT/var/log/nscd
402 install -d documentation
404 cp linuxthreads/ChangeLog documentation/ChangeLog.threads
405 cp linuxthreads/Changes documentation/Changes.threads
406 cp linuxthreads/README documentation/README.threads
407 cp crypt/README.ufc-crypt documentation/
409 cp ChangeLog ChangeLog.8 documentation
411 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS documentation/*
413 # Collect locale files and mark them with %%lang()
415 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
417 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
418 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
419 echo "%lang($lang) $dir" >>glibc.lang
424 %post -p /sbin/ldconfig
425 %postun -p /sbin/ldconfig
427 %post memusage -p /sbin/ldconfig
428 %postun memusage -p /sbin/ldconfig
431 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
434 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
437 /sbin/chkconfig --add nscd
438 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
439 if [ -f /var/lock/subsys/nscd ]; then
440 /etc/rc.d/init.d/nscd restart 1>&2
442 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
446 if [ "$1" = "0" ]; then
447 if [ -f /var/lock/subsys/nscd ]; then
448 /etc/rc.d/init.d/nscd stop 1>&2
450 /sbin/chkconfig --del nscd
454 rm -rf $RPM_BUILD_ROOT
457 %defattr(644,root,root,755)
458 %doc {README,NEWS,FAQ,BUGS}.gz
460 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nsswitch.conf
461 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ld.so.conf
462 %config %{_sysconfdir}/rpc
463 %ghost %{_sysconfdir}/ld.so.cache
465 %attr(755,root,root) /sbin/*
466 %attr(755,root,root) %{_bindir}/catchsegv
467 %attr(755,root,root) %{_bindir}/getent
468 %attr(755,root,root) %{_bindir}/glibcbug
469 %attr(755,root,root) %{_bindir}/ldd
471 %attr(755,root,root) %{_bindir}/lddlibc4
473 %attr(755,root,root) %{_bindir}/locale
474 %attr(755,root,root) %{_bindir}/rpcgen
475 %attr(755,root,root) %{_bindir}/tzselect
477 %attr(755,root,root) %{_sbindir}/rpcinfo
478 %attr(755,root,root) %{_sbindir}/zdump
479 %attr(755,root,root) %{_sbindir}/zic
481 %attr(755,root,root) /lib/ld-*
482 %attr(755,root,root) /lib/libdl*
483 %attr(755,root,root) /lib/libnsl*
484 %attr(755,root,root) /lib/lib[BScmprtu]*
486 %dir %{_datadir}/locale
487 %{_datadir}/locale/locale.alias
490 %dir %{_libdir}/locale
492 %{_mandir}/man8/ldconfig*
495 %defattr(644,root,root,755)
496 %attr(755,root,root) /lib/libnss_dns*.so*
499 %defattr(644,root,root,755)
500 %attr(755,root,root) /lib/libnss_files*.so*
503 %defattr(644,root,root,755)
504 %attr(755,root,root) /lib/libnss_compat*.so*
507 %defattr(644,root,root,755)
508 %attr(755,root,root) /lib/libnss_hesiod*.so*
511 %defattr(644,root,root,755)
512 %attr(755,root,root) /lib/libnss_nis.so.*
513 %attr(755,root,root) /lib/libnss_nis-*.so
515 %files -n nss_nisplus
516 %defattr(644,root,root,755)
517 %attr(755,root,root) /lib/libnss_nisplus*.so*
520 %defattr(644,root,root,755)
521 %attr(755,root,root) %{_bindir}/memusage*
522 %attr(755,root,root) %{_libdir}/libmemusage*
525 %defattr(644,root,root,755)
526 %doc documentation/* {NOTES,PROJECTS}.gz
527 %attr(755,root,root) %{_bindir}/gencat
528 %attr(755,root,root) %{_bindir}/getconf
529 %attr(755,root,root) %{_bindir}/*prof*
530 %attr(755,root,root) %{_bindir}/*trace
534 %{_infodir}/libc.info*
536 %attr(755,root,root) %{_libdir}/lib*.so
537 %attr(755,root,root) %{_libdir}/*crt*.o
538 %{_libdir}/libc_nonshared.a
543 %defattr(644,root,root,755)
544 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
545 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nscd.*
546 %attr(754,root,root) /etc/rc.d/init.d/nscd
547 %attr(755,root,root) %{_sbindir}/nscd*
548 %attr(640,root,root) /etc/logrotate.d/nscd
549 %attr(640,root,root) %ghost /var/log/nscd
551 %files -n localedb-src
552 %defattr(644,root,root,755)
553 %attr(755,root,root) %{_bindir}/localedef
557 %defattr(644,root,root,755)
558 %attr(755,root,root) %{_bindir}/iconv
559 %dir %{_libdir}/gconv
560 %{_libdir}/gconv/gconv-modules
561 %attr(755,root,root) %{_libdir}/gconv/*.so
564 %defattr(644,root,root,755)
565 %{_libdir}/libBrokenLocale.a
566 %{_libdir}/libbsd-compat.a
569 %{_libdir}/libcrypt.a
574 %{_libdir}/libmcheck.a
576 %{_libdir}/libpthread.a
577 %{_libdir}/libresolv.a
578 %{_libdir}/librpcsvc.a
583 %defattr(644,root,root,755)
587 %defattr(644,root,root,755)
588 %{_libdir}/lib*_pic.a