14 Source0: ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
15 Source1: ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
17 Source3: nscd.sysconfig
18 Source4: nscd.logrotate
20 Patch0: %{name}-info.patch
21 Patch1: %{name}-versions.awk_fix.patch
22 Patch2: %{name}-pld.patch
23 Patch3: %{name}-crypt-blowfish.patch
24 Patch4: %{name}-string2-pointer-arith.patch
25 Patch5: %{name}-linuxthreads-lock.patch
26 Patch6: %{name}-pthread_create-manpage.patch
27 Patch7: %{name}-sparc-linux-chown.patch
28 Patch8: %{name}-ldconfig.patch
29 Patch9: %{name}-getxxxxinfo.patch
30 URL: http://www.gnu.org/software/libc/
32 BuildRequires: gd-devel
33 BuildRequires: texinfo
36 Provides: /sbin/ldconfig
37 Obsoletes: %{name}-profile
38 Obsoletes: %{name}-debug
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 Requires: kernel >= 2.2.17
45 Contains the standard libraries that are used by multiple programs on
46 the system. In order to save disk space and memory, as well as to ease
47 upgrades, common system code is kept in one place and shared between
48 programs. This package contains the most important sets of shared
49 libraries, the standard C library and the standard math library.
50 Without these, a Linux system will not function. It also contains
51 national language (locale) support and timezone databases.
54 Enthält die Standard-Libraries, die von verschiedenen Programmen im
55 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
56 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
57 einer einzigen Stelle gespeichert und wird von den Programmen
58 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
59 shared Libraries, die Standard-C-Library und die
60 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
61 Ferner enthält es den Support für die verschiedenen Sprachgregionen
62 (locale) und die Zeitzonen-Datenbank.
65 Contient les bibliothèques standards utilisées par de nombreux
66 programmes du système. Afin d'économiser l'espace disque et mémoire,
67 et de faciliter les mises à jour, le code commun au système est mis à
68 un endroit et partagé entre les programmes. Ce paquetage contient les
69 bibliothèques partagées les plus importantes, la bibliothèque standard
70 du C et la bibliothèque mathématique standard. Sans celles-ci, un
71 système Linux ne peut fonctionner. Il contient aussi la gestion des
72 langues nationales (locales) et les bases de données des zones
76 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
77 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
78 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
79 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
80 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
81 standardowych wspó³dzielonych (dynamicznych) bibliotek C i
82 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
83 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
84 jêzyków (locale) oraz definicje stref czasowych.
87 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
88 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
89 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
90 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
91 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
92 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
93 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
96 Summary: Additional libraries required to compile
97 Summary(de): Weitere Libraries zum Kompilieren
98 Summary(fr): Librairies supplémentaires nécessaires à la compilation.
99 Summary(pl): Dodatkowe biblioteki wymagane podczas kompilacji
100 Summary(tr): Geliþtirme için gerekli diðer kitaplýklar
101 Group: Development/Libraries
102 Group(de): Entwicklung/Libraries
103 Group(fr): Development/Librairies
104 Group(pl): Programowanie/Biblioteki
105 Requires: %{name} = %{version}
108 To develop programs which use the standard C libraries (which nearly
109 all programs do), the system needs to have these standard header files
110 and object files available for creating the executables.
112 %description -l de devel
113 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
114 verwenden (also fast alle), benötigt das System diese Standard-Header-
115 und Objektdateien zum Erstellen der ausführbaren Programme.
117 %description -l fr devel
118 Pour développer des programmes utilisant les bibliothèques standard du
119 C (ce que presque tous les programmes font), le système doit posséder
120 ces fichiers en-têtes et objets standards pour créer les exécutables.
122 %description -l pl devel
123 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
124 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
125 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
126 wykonywalnych i innych bibliotek.
128 %description -l tr devel
129 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
130 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
134 Summary: Name Service Caching Daemon
135 Summary(pl): Name Service Caching Daemon
136 Group: Networking/Daemons
137 Group(de): Netzwerkwesen/Server
138 Group(pl): Sieciowe/Serwery
139 Prereq: /sbin/chkconfig
140 Requires: rc-scripts >= 0.2.0
141 Requires: %{name} = %{version}
144 nscd caches name service lookups; it can dramatically improve
145 performance with NIS+, and may help with DNS as well. You cannot use
146 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
147 nscd happens to hit these bugs particularly hard.
149 %description -n nscd -l pl
150 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
151 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
152 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów po stronie j±dra w
155 %package -n localedb-src
156 Summary: Souce code locale database
157 Summary(pl): Kod ¬ród³owy bazy locale
161 Requires: %{name} = %{version}
163 %description -n localedb-src
164 This add-on package contains the data needed to build the locale data
165 files to use the internationalization features of the GNU libc. Glibc
166 package contains standard set of locale binary database and You need
167 this package if want build some non standard locale database.
169 %description -l pl -n localedb-src
170 Pakiet ten kod ¼ród³owy baz locale który jest potrzebny do zbudowania
171 binarnej wersji baz locale potrzebnej do poprawnego wspierania ró¿nych
172 jêzyków przez glibc. Pakiet glibc zawira binarn± wersjê standardowych
173 baz locale i ten pakiet jest potrzebny tylko w sytuacji kiedy potrzeba
174 wygenerowaæ jak±¶ niestandardow± bazê.
177 Summary: Convert encoding of given files from one encoding to another
178 Summary(pl): Program do konwersji plików tekstowych z jednego enkodingu w inny
182 Requires: %{name} = %{version}
184 %description -n iconv
185 Convert encoding of given files from one encoding to another. You need
186 this package if You want to convert some documet from one encoding to
187 another or if You have installed some programs which use Generic
188 Character Set Conversion Interface.
190 %description -l pl -n iconv
191 Program do konwersji plików tekstowych z jednego enkodingu w inny.
192 Potrzebujesz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
193 dokumentów z jednego enkodingu w inny lub je¿eli masz zainstalowane
194 jakie¶ programy które korzystaj± z Generic Character Set Conversion
195 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
196 umo¿liwiaj± konwersjê enkodingu danych z poziomu dowolnego programu.
199 Summary: Static libraries
200 Summary(pl): Biblioteki statyczne
201 Group: Development/Libraries
202 Group(de): Entwicklung/Libraries
203 Group(fr): Development/Librairies
204 Group(pl): Programowanie/Biblioteki
205 Requires: %{name}-devel = %{version}
208 GNU libc static libraries.
210 %description -l pl static
211 Biblioteki statyczne GNU libc.
214 Summary: glibc with profiling support
215 Summary(de): glibc mit Profil-Unterstützung
216 Summary(fr): glibc avec support pour profiling
217 Summary(tr): Ölçüm desteði olan glibc
218 Group: Development/Libraries/Libc
219 Group(de): Entwicklung/Libraries/Libc
220 Group(pl): Programowanie/Biblioteki/Libc
221 Obsoletes: libc-profile
222 Requires: %{name}-devel = %{version}
225 When programs are being profiled used gprof, they must use these
226 libraries instead of the standard C libraries for gprof to be able to
227 profile them correctly.
229 %description -l de profile
230 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
231 Libraries anstelle der üblichen C-Libraries verwendet werden.
233 %description -l tr profile
234 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
235 kitaplýðý kullanmak zorundadýrlar.
238 Summary: glibc PIC archive
239 Group: Development/Libraries/Libc
240 Group(de): Entwicklung/Libraries/Libc
241 Group(pl): Programowanie/Biblioteki/Libc
242 Requires: %{name}-devel = %{version}
245 GNU C Library PIC archive contains an archive library (ar file)
246 composed of individual shared objects. This is used for creating a
247 library which is a smaller subset of the standard libc shared library.
249 %package -n nss_compat
250 Summary: Old style NYS NSS glibc module
252 Group(de): Gründsätzlich
253 Group(pl): Podstawowe
254 Requires: %{name} = %{version}
256 %description -n nss_compat
257 Old style NYS NSS glibc module
260 Summary: BIND NSS glibc module
262 Group(de): Gründsätzlich
263 Group(pl): Podstawowe
264 Requires: %{name} = %{version}
266 %description -n nss_dns
267 BIND NSS glibc module.
269 %package -n nss_files
270 Summary: Traditional files databases NSS glibc module
272 Group(de): Gründsätzlich
273 Group(pl): Podstawowe
274 Requires: %{name} = %{version}
276 %description -n nss_files
277 Traditional files databases NSS glibc module.
279 %package -n nss_hesiod
280 Summary: Hesiod NSS glibc module
282 Group(de): Gründsätzlich
283 Group(pl): Podstawowe
284 Requires: %{name} = %{version}
286 %description -n nss_hesiod
287 Glibc NSS (Name Service Switch) module for databases acces.
290 Summary: NIS(YP) NSS glibc module
292 Group(de): Gründsätzlich
293 Group(pl): Podstawowe
294 Requires: %{name} = %{version}
296 %description -n nss_nis
297 Glibc NSS (Name Service Switch) module for NIS(YP) databases acces.
299 %package -n nss_nisplus
300 Summary: NIS+ NSS module
302 Group(de): Gründsätzlich
303 Group(pl): Podstawowe
304 Requires: %{name} = %{version}
306 %description -n nss_nisplus
307 Glibc NSS (Name Service Switch) module for NIS+ databases acces.
312 Group(de): Applikationen
314 Requires: %{name} = %{version}
317 %description memusage
335 --enable-add-ons=linuxthreads \
336 --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:2.2.17}" \
343 rm -rf $RPM_BUILD_ROOT
344 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man{3,8},var/log}
346 env LANGUAGE=C LC_ALL=C \
348 install_root=$RPM_BUILD_ROOT \
349 infodir=%{_infodir} \
352 env LANGUAGE=C LC_ALL=C \
353 %{__make} install-locales -C localedata \
354 install_root=$RPM_BUILD_ROOT
356 PICFILES="libc_pic.a libc.map
357 math/libm_pic.a libm.map
358 resolv/libresolv_pic.a"
360 install $PICFILES $RPM_BUILD_ROOT/%{_libdir}
361 install elf/soinit.os $RPM_BUILD_ROOT/%{_libdir}/soinit.o
362 install elf/sofini.os $RPM_BUILD_ROOT/%{_libdir}/sofini.o
364 mv -f $RPM_BUILD_ROOT/lib/libmemusage.so $RPM_BUILD_ROOT%{_libdir}
365 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
367 %{__make} -C linuxthreads/man
368 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
370 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
372 ln -sf ../../..%{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
373 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
374 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
375 ln -sf ../..%{_libdir}/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
377 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
379 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
380 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
381 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
382 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
383 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
386 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man8/
387 touch $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.{cache,conf}
389 :> $RPM_BUILD_ROOT/var/log/nscd
392 install -d documentation
394 cp linuxthreads/ChangeLog documentation/ChangeLog.threads
395 cp linuxthreads/Changes documentation/Changes.threads
396 cp linuxthreads/README documentation/README.threads
397 cp crypt/README.ufc-crypt documentation/
399 cp ChangeLog ChangeLog.8 documentation
401 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS documentation/*
403 # Collect locale files and mark them with %%lang()
405 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
407 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
408 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
409 echo "%lang($lang) $dir" >>glibc.lang
414 %post -p /sbin/ldconfig
415 %postun -p /sbin/ldconfig
418 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
421 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
424 /sbin/chkconfig --add nscd
425 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
426 if [ -f /var/lock/subsys/nscd ]; then
427 /etc/rc.d/init.d/nscd restart 1>&2
429 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
433 if [ "$1" = "0" ]; then
434 if [ -f /var/lock/subsys/nscd ]; then
435 /etc/rc.d/init.d/nscd stop 1>&2
437 /sbin/chkconfig --del nscd
441 rm -rf $RPM_BUILD_ROOT
444 %defattr(644,root,root,755)
445 %doc {README,NEWS,FAQ,BUGS}.gz
447 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nsswitch.conf
448 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ld.so.conf
449 %config %{_sysconfdir}/rpc
450 %ghost %{_sysconfdir}/ld.so.cache
452 %attr(755,root,root) /sbin/*
453 %attr(755,root,root) %{_bindir}/catchsegv
454 %attr(755,root,root) %{_bindir}/getent
455 %attr(755,root,root) %{_bindir}/glibcbug
456 %attr(755,root,root) %{_bindir}/ldd
457 %attr(755,root,root) %{_bindir}/lddlibc4
458 %attr(755,root,root) %{_bindir}/locale
459 %attr(755,root,root) %{_bindir}/rpcgen
460 %attr(755,root,root) %{_bindir}/tzselect
462 %attr(755,root,root) %{_sbindir}/rpcinfo
463 %attr(755,root,root) %{_sbindir}/zdump
464 %attr(755,root,root) %{_sbindir}/zic
466 %attr(755,root,root) /lib/ld-*
467 %attr(755,root,root) /lib/libdl*
468 %attr(755,root,root) /lib/libnsl*
469 %attr(755,root,root) /lib/lib[BScmprtu]*
471 %dir %{_datadir}/locale
472 %{_datadir}/locale/locale.alias
475 %dir %{_libdir}/locale
477 %{_mandir}/man8/ldconfig*
480 %defattr(644,root,root,755)
481 %attr(755,root,root) /lib/libnss_dns*.so*
484 %defattr(644,root,root,755)
485 %attr(755,root,root) /lib/libnss_files*.so*
488 %defattr(644,root,root,755)
489 %attr(755,root,root) /lib/libnss_compat*.so*
492 %defattr(644,root,root,755)
493 %attr(755,root,root) /lib/libnss_hesiod*.so*
496 %defattr(644,root,root,755)
497 %attr(755,root,root) /lib/libnss_nis.so.*
498 %attr(755,root,root) /lib/libnss_nis-*.so
500 %files -n nss_nisplus
501 %defattr(644,root,root,755)
502 %attr(755,root,root) /lib/libnss_nisplus*.so*
505 %defattr(644,root,root,755)
506 %attr(755,root,root) %{_bindir}/memusage*
509 %defattr(644,root,root,755)
510 %doc documentation/* {NOTES,PROJECTS}.gz
511 %attr(755,root,root) %{_bindir}/gencat
512 %attr(755,root,root) %{_bindir}/getconf
513 %attr(755,root,root) %{_bindir}/*prof*
514 %attr(755,root,root) %{_bindir}/*trace
521 %{_includedir}/netash
522 %{_includedir}/netatalk
523 %{_includedir}/netax25
524 %{_includedir}/neteconet
525 %{_includedir}/netinet
526 %{_includedir}/netipx
527 %{_includedir}/netpacket
528 %{_includedir}/netrom
529 %{_includedir}/netrose
531 %{_includedir}/protocols
533 %{_includedir}/rpcsvc
537 %{_infodir}/libc.inf*.gz
539 %attr(755,root,root) %{_libdir}/lib*.so
540 %attr(755,root,root) %{_libdir}/*crt*.o
541 %{_libdir}/libc_nonshared.a
546 %defattr(644,root,root,755)
547 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
548 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nscd.*
549 %attr(754,root,root) /etc/rc.d/init.d/nscd
550 %attr(755,root,root) %{_sbindir}/nscd*
551 %attr(640,root,root) /etc/logrotate.d/nscd
552 %attr(640,root,root) %ghost /var/log/nscd
554 %files -n localedb-src
555 %defattr(644,root,root,755)
556 %attr(755,root,root) %{_bindir}/localedef
560 %defattr(644,root,root,755)
561 %attr(755,root,root) %{_bindir}/iconv
562 %dir %{_libdir}/gconv
563 %{_libdir}/gconv/gconv-modules
564 %attr(755,root,root) %{_libdir}/gconv/*.so
567 %defattr(644,root,root,755)
568 %{_libdir}/libBrokenLocale.a
569 %{_libdir}/libbsd-compat.a
572 %{_libdir}/libcrypt.a
577 %{_libdir}/libmcheck.a
579 %{_libdir}/libpthread.a
580 %{_libdir}/libresolv.a
581 %{_libdir}/librpcsvc.a
586 %defattr(644,root,root,755)
590 %defattr(644,root,root,755)
591 %{_libdir}/lib*_pic.a