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 URL: http://www.gnu.org/software/libc/
33 BuildRequires: gd-devel
34 BuildRequires: texinfo
37 Provides: /sbin/ldconfig
38 Obsoletes: %{name}-profile
39 Obsoletes: %{name}-debug
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 Conflicts: kernel < %{min_kernel}
46 Contains the standard libraries that are used by multiple programs on
47 the system. In order to save disk space and memory, as well as to ease
48 upgrades, common system code is kept in one place and shared between
49 programs. This package contains the most important sets of shared
50 libraries, the standard C library and the standard math library.
51 Without these, a Linux system will not function. It also contains
52 national language (locale) support and timezone databases.
55 Enthält die Standard-Libraries, die von verschiedenen Programmen im
56 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
57 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
58 einer einzigen Stelle gespeichert und wird von den Programmen
59 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
60 shared Libraries, die Standard-C-Library und die
61 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
62 Ferner enthält es den Support für die verschiedenen Sprachgregionen
63 (locale) und die Zeitzonen-Datenbank.
66 Contient les bibliothèques standards utilisées par de nombreux
67 programmes du système. Afin d'économiser l'espace disque et mémoire,
68 et de faciliter les mises à jour, le code commun au système est mis à
69 un endroit et partagé entre les programmes. Ce paquetage contient les
70 bibliothèques partagées les plus importantes, la bibliothèque standard
71 du C et la bibliothèque mathématique standard. Sans celles-ci, un
72 système Linux ne peut fonctionner. Il contient aussi la gestion des
73 langues nationales (locales) et les bases de données des zones
77 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
78 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
79 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
80 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
81 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
82 standardowych wspó³dzielonych (dynamicznych) bibliotek C i
83 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
84 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
85 jêzyków (locale) oraz definicje stref czasowych.
88 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
89 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
90 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
91 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
92 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
93 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
94 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
97 Summary: Additional libraries required to compile
98 Summary(de): Weitere Libraries zum Kompilieren
99 Summary(fr): Librairies supplémentaires nécessaires à la compilation.
100 Summary(pl): Dodatkowe biblioteki wymagane podczas kompilacji
101 Summary(tr): Geliþtirme için gerekli diðer kitaplýklar
102 Group: Development/Libraries
103 Group(de): Entwicklung/Libraries
104 Group(fr): Development/Librairies
105 Group(pl): Programowanie/Biblioteki
106 Requires: %{name} = %{version}
109 To develop programs which use the standard C libraries (which nearly
110 all programs do), the system needs to have these standard header files
111 and object files available for creating the executables.
113 %description -l de devel
114 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
115 verwenden (also fast alle), benötigt das System diese Standard-Header-
116 und Objektdateien zum Erstellen der ausführbaren Programme.
118 %description -l fr devel
119 Pour développer des programmes utilisant les bibliothèques standard du
120 C (ce que presque tous les programmes font), le système doit posséder
121 ces fichiers en-têtes et objets standards pour créer les exécutables.
123 %description -l pl devel
124 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
125 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
126 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
127 wykonywalnych i innych bibliotek.
129 %description -l tr devel
130 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
131 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
135 Summary: Name Service Caching Daemon
136 Summary(pl): Name Service Caching Daemon
137 Group: Networking/Daemons
138 Group(de): Netzwerkwesen/Server
139 Group(pl): Sieciowe/Serwery
140 Prereq: /sbin/chkconfig
141 Requires: rc-scripts >= 0.2.0
142 Requires: %{name} = %{version}
145 nscd caches name service lookups; it can dramatically improve
146 performance with NIS+, and may help with DNS as well. You cannot use
147 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
148 nscd happens to hit these bugs particularly hard.
150 %description -n nscd -l pl
151 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
152 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
153 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów po stronie j±dra w
156 %package -n localedb-src
157 Summary: Souce code locale database
158 Summary(pl): Kod ¬ród³owy bazy locale
162 Requires: %{name} = %{version}
164 %description -n localedb-src
165 This add-on package contains the data needed to build the locale data
166 files to use the internationalization features of the GNU libc. Glibc
167 package contains standard set of locale binary database and You need
168 this package if want build some non standard locale database.
170 %description -l pl -n localedb-src
171 Pakiet ten kod ¼ród³owy baz locale który jest potrzebny do zbudowania
172 binarnej wersji baz locale potrzebnej do poprawnego wspierania ró¿nych
173 jêzyków przez glibc. Pakiet glibc zawira binarn± wersjê standardowych
174 baz locale i ten pakiet jest potrzebny tylko w sytuacji kiedy potrzeba
175 wygenerowaæ jak±¶ niestandardow± bazê.
178 Summary: Convert encoding of given files from one encoding to another
179 Summary(pl): Program do konwersji plików tekstowych z jednego enkodingu w inny
183 Requires: %{name} = %{version}
185 %description -n iconv
186 Convert encoding of given files from one encoding to another. You need
187 this package if You want to convert some documet from one encoding to
188 another or if You have installed some programs which use Generic
189 Character Set Conversion Interface.
191 %description -l pl -n iconv
192 Program do konwersji plików tekstowych z jednego enkodingu w inny.
193 Potrzebujesz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
194 dokumentów z jednego enkodingu w inny lub je¿eli masz zainstalowane
195 jakie¶ programy które korzystaj± z Generic Character Set Conversion
196 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
197 umo¿liwiaj± konwersjê enkodingu danych z poziomu dowolnego programu.
200 Summary: Static libraries
201 Summary(pl): Biblioteki statyczne
202 Group: Development/Libraries
203 Group(de): Entwicklung/Libraries
204 Group(fr): Development/Librairies
205 Group(pl): Programowanie/Biblioteki
206 Requires: %{name}-devel = %{version}
209 GNU libc static libraries.
211 %description -l pl static
212 Biblioteki statyczne GNU libc.
215 Summary: glibc with profiling support
216 Summary(de): glibc mit Profil-Unterstützung
217 Summary(fr): glibc avec support pour profiling
218 Summary(tr): Ölçüm desteði olan glibc
219 Group: Development/Libraries/Libc
220 Group(de): Entwicklung/Libraries/Libc
221 Group(pl): Programowanie/Biblioteki/Libc
222 Obsoletes: libc-profile
223 Requires: %{name}-devel = %{version}
226 When programs are being profiled used gprof, they must use these
227 libraries instead of the standard C libraries for gprof to be able to
228 profile them correctly.
230 %description -l de profile
231 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
232 Libraries anstelle der üblichen C-Libraries verwendet werden.
234 %description -l tr profile
235 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
236 kitaplýðý kullanmak zorundadýrlar.
239 Summary: glibc PIC archive
240 Group: Development/Libraries/Libc
241 Group(de): Entwicklung/Libraries/Libc
242 Group(pl): Programowanie/Biblioteki/Libc
243 Requires: %{name}-devel = %{version}
246 GNU C Library PIC archive contains an archive library (ar file)
247 composed of individual shared objects. This is used for creating a
248 library which is a smaller subset of the standard libc shared library.
250 %package -n nss_compat
251 Summary: Old style NYS NSS glibc module
253 Group(de): Gründsätzlich
254 Group(pl): Podstawowe
255 Requires: %{name} = %{version}
257 %description -n nss_compat
258 Old style NYS NSS glibc module
261 Summary: BIND NSS glibc module
263 Group(de): Gründsätzlich
264 Group(pl): Podstawowe
265 Requires: %{name} = %{version}
267 %description -n nss_dns
268 BIND NSS glibc module.
270 %package -n nss_files
271 Summary: Traditional files databases NSS glibc module
273 Group(de): Gründsätzlich
274 Group(pl): Podstawowe
275 Requires: %{name} = %{version}
277 %description -n nss_files
278 Traditional files databases NSS glibc module.
280 %package -n nss_hesiod
281 Summary: Hesiod NSS glibc module
283 Group(de): Gründsätzlich
284 Group(pl): Podstawowe
285 Requires: %{name} = %{version}
287 %description -n nss_hesiod
288 Glibc NSS (Name Service Switch) module for databases acces.
291 Summary: NIS(YP) NSS glibc module
293 Group(de): Gründsätzlich
294 Group(pl): Podstawowe
295 Requires: %{name} = %{version}
297 %description -n nss_nis
298 Glibc NSS (Name Service Switch) module for NIS(YP) databases acces.
300 %package -n nss_nisplus
301 Summary: NIS+ NSS module
303 Group(de): Gründsätzlich
304 Group(pl): Podstawowe
305 Requires: %{name} = %{version}
307 %description -n nss_nisplus
308 Glibc NSS (Name Service Switch) module for NIS+ databases acces.
313 Group(de): Applikationen
315 Requires: %{name} = %{version}
318 %description memusage
336 --enable-add-ons=linuxthreads \
337 --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
344 rm -rf $RPM_BUILD_ROOT
345 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man{3,8},var/log}
347 env LANGUAGE=C LC_ALL=C \
349 install_root=$RPM_BUILD_ROOT \
350 infodir=%{_infodir} \
353 env LANGUAGE=C LC_ALL=C \
354 %{__make} install-locales -C localedata \
355 install_root=$RPM_BUILD_ROOT
357 PICFILES="libc_pic.a libc.map
358 math/libm_pic.a libm.map
359 resolv/libresolv_pic.a"
361 install $PICFILES $RPM_BUILD_ROOT/%{_libdir}
362 install elf/soinit.os $RPM_BUILD_ROOT/%{_libdir}/soinit.o
363 install elf/sofini.os $RPM_BUILD_ROOT/%{_libdir}/sofini.o
365 mv -f $RPM_BUILD_ROOT/lib/libmemusage.so $RPM_BUILD_ROOT%{_libdir}
366 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
368 %{__make} -C linuxthreads/man
369 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
371 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
373 ln -sf ../../..%{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
374 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
375 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
376 ln -sf ../..%{_libdir}/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
378 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
380 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
381 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
382 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
383 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
384 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
387 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man8/
388 touch $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.{cache,conf}
390 :> $RPM_BUILD_ROOT/var/log/nscd
393 install -d documentation
395 cp linuxthreads/ChangeLog documentation/ChangeLog.threads
396 cp linuxthreads/Changes documentation/Changes.threads
397 cp linuxthreads/README documentation/README.threads
398 cp crypt/README.ufc-crypt documentation/
400 cp ChangeLog ChangeLog.8 documentation
402 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS documentation/*
404 # Collect locale files and mark them with %%lang()
406 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
408 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
409 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
410 echo "%lang($lang) $dir" >>glibc.lang
415 %post -p /sbin/ldconfig
416 %postun -p /sbin/ldconfig
418 %post memusage -p /sbin/ldconfig
419 %postun memusage -p /sbin/ldconfig
422 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
425 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
428 /sbin/chkconfig --add nscd
429 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
430 if [ -f /var/lock/subsys/nscd ]; then
431 /etc/rc.d/init.d/nscd restart 1>&2
433 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
437 if [ "$1" = "0" ]; then
438 if [ -f /var/lock/subsys/nscd ]; then
439 /etc/rc.d/init.d/nscd stop 1>&2
441 /sbin/chkconfig --del nscd
445 rm -rf $RPM_BUILD_ROOT
448 %defattr(644,root,root,755)
449 %doc {README,NEWS,FAQ,BUGS}.gz
451 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nsswitch.conf
452 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ld.so.conf
453 %config %{_sysconfdir}/rpc
454 %ghost %{_sysconfdir}/ld.so.cache
456 %attr(755,root,root) /sbin/*
457 %attr(755,root,root) %{_bindir}/catchsegv
458 %attr(755,root,root) %{_bindir}/getent
459 %attr(755,root,root) %{_bindir}/glibcbug
460 %attr(755,root,root) %{_bindir}/ldd
461 %attr(755,root,root) %{_bindir}/lddlibc4
462 %attr(755,root,root) %{_bindir}/locale
463 %attr(755,root,root) %{_bindir}/rpcgen
464 %attr(755,root,root) %{_bindir}/tzselect
466 %attr(755,root,root) %{_sbindir}/rpcinfo
467 %attr(755,root,root) %{_sbindir}/zdump
468 %attr(755,root,root) %{_sbindir}/zic
470 %attr(755,root,root) /lib/ld-*
471 %attr(755,root,root) /lib/libdl*
472 %attr(755,root,root) /lib/libnsl*
473 %attr(755,root,root) /lib/lib[BScmprtu]*
475 %dir %{_datadir}/locale
476 %{_datadir}/locale/locale.alias
479 %dir %{_libdir}/locale
481 %{_mandir}/man8/ldconfig*
484 %defattr(644,root,root,755)
485 %attr(755,root,root) /lib/libnss_dns*.so*
488 %defattr(644,root,root,755)
489 %attr(755,root,root) /lib/libnss_files*.so*
492 %defattr(644,root,root,755)
493 %attr(755,root,root) /lib/libnss_compat*.so*
496 %defattr(644,root,root,755)
497 %attr(755,root,root) /lib/libnss_hesiod*.so*
500 %defattr(644,root,root,755)
501 %attr(755,root,root) /lib/libnss_nis.so.*
502 %attr(755,root,root) /lib/libnss_nis-*.so
504 %files -n nss_nisplus
505 %defattr(644,root,root,755)
506 %attr(755,root,root) /lib/libnss_nisplus*.so*
509 %defattr(644,root,root,755)
510 %attr(755,root,root) %{_bindir}/memusage*
511 %attr(755,root,root) %{_libdir}/libmemusage*
514 %defattr(644,root,root,755)
515 %doc documentation/* {NOTES,PROJECTS}.gz
516 %attr(755,root,root) %{_bindir}/gencat
517 %attr(755,root,root) %{_bindir}/getconf
518 %attr(755,root,root) %{_bindir}/*prof*
519 %attr(755,root,root) %{_bindir}/*trace
526 %{_includedir}/netash
527 %{_includedir}/netatalk
528 %{_includedir}/netax25
529 %{_includedir}/neteconet
530 %{_includedir}/netinet
531 %{_includedir}/netipx
532 %{_includedir}/netpacket
533 %{_includedir}/netrom
534 %{_includedir}/netrose
536 %{_includedir}/protocols
538 %{_includedir}/rpcsvc
542 %{_infodir}/libc.inf*.gz
544 %attr(755,root,root) %{_libdir}/lib*.so
545 %attr(755,root,root) %{_libdir}/*crt*.o
546 %{_libdir}/libc_nonshared.a
551 %defattr(644,root,root,755)
552 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
553 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nscd.*
554 %attr(754,root,root) /etc/rc.d/init.d/nscd
555 %attr(755,root,root) %{_sbindir}/nscd*
556 %attr(640,root,root) /etc/logrotate.d/nscd
557 %attr(640,root,root) %ghost /var/log/nscd
559 %files -n localedb-src
560 %defattr(644,root,root,755)
561 %attr(755,root,root) %{_bindir}/localedef
565 %defattr(644,root,root,755)
566 %attr(755,root,root) %{_bindir}/iconv
567 %dir %{_libdir}/gconv
568 %{_libdir}/gconv/gconv-modules
569 %attr(755,root,root) %{_libdir}/gconv/*.so
572 %defattr(644,root,root,755)
573 %{_libdir}/libBrokenLocale.a
574 %{_libdir}/libbsd-compat.a
577 %{_libdir}/libcrypt.a
582 %{_libdir}/libmcheck.a
584 %{_libdir}/libpthread.a
585 %{_libdir}/libresolv.a
586 %{_libdir}/librpcsvc.a
591 %defattr(644,root,root,755)
595 %defattr(644,root,root,755)
596 %{_libdir}/lib*_pic.a