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