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/
38 BuildRequires: gd-devel >= 2.0.1
39 BuildRequires: libpng-devel
40 BuildRequires: gettext-devel >= 0.10.36
41 BuildRequires: texinfo
42 BuildRequires: rpm-build >= 4.0-11
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 -l de devel
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 -l fr devel
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 -l pl devel
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 -l tr devel
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³adów po stronie j±dra w
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 -l pl -n localedb-src
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 enkodingu w inny
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 -l pl -n iconv
201 Program do konwersji plików tekstowych z jednego enkodingu w inny.
202 Potrzebujesz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
203 dokumentów z jednego enkodingu w inny 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ê enkodingu 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 -l pl static
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(tr): Ölçüm desteði olan glibc
228 Group: Development/Libraries/Libc
229 Group(de): Entwicklung/Libraries/Libc
230 Group(pl): Programowanie/Biblioteki/Libc
231 Obsoletes: libc-profile
232 Requires: %{name}-devel = %{version}
235 When programs are being profiled used gprof, they must use these
236 libraries instead of the standard C libraries for gprof to be able to
237 profile them correctly.
239 %description -l de profile
240 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
241 Libraries anstelle der üblichen C-Libraries verwendet werden.
243 %description -l tr profile
244 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
245 kitaplýðý kullanmak zorundadýrlar.
248 Summary: glibc PIC archive
249 Group: Development/Libraries/Libc
250 Group(de): Entwicklung/Libraries/Libc
251 Group(pl): Programowanie/Biblioteki/Libc
252 Requires: %{name}-devel = %{version}
255 GNU C Library PIC archive contains an archive library (ar file)
256 composed of individual shared objects. This is used for creating a
257 library which is a smaller subset of the standard libc shared library.
259 %package -n nss_compat
260 Summary: Old style NYS NSS glibc module
262 Group(de): Gründsätzlich
263 Group(pl): Podstawowe
264 Requires: %{name} = %{version}
266 %description -n nss_compat
267 Old style NYS NSS glibc module
270 Summary: BIND NSS glibc module
272 Group(de): Gründsätzlich
273 Group(pl): Podstawowe
274 Requires: %{name} = %{version}
276 %description -n nss_dns
277 BIND NSS glibc module.
279 %package -n nss_files
280 Summary: Traditional files databases NSS glibc module
282 Group(de): Gründsätzlich
283 Group(pl): Podstawowe
284 Requires: %{name} = %{version}
286 %description -n nss_files
287 Traditional files databases NSS glibc module.
289 %package -n nss_hesiod
290 Summary: Hesiod NSS glibc module
292 Group(de): Gründsätzlich
293 Group(pl): Podstawowe
294 Requires: %{name} = %{version}
296 %description -n nss_hesiod
297 Glibc NSS (Name Service Switch) module for databases acces.
300 Summary: NIS(YP) NSS glibc module
302 Group(de): Gründsätzlich
303 Group(pl): Podstawowe
304 Requires: %{name} = %{version}
306 %description -n nss_nis
307 Glibc NSS (Name Service Switch) module for NIS(YP) databases acces.
309 %package -n nss_nisplus
310 Summary: NIS+ NSS module
312 Group(de): Gründsätzlich
313 Group(pl): Podstawowe
314 Requires: %{name} = %{version}
316 %description -n nss_nisplus
317 Glibc NSS (Name Service Switch) module for NIS+ databases acces.
322 Group(de): Applikationen
324 Requires: %{name} = %{version}
327 %description memusage
349 LDFLAGS=" " ; export LDFLAGS
351 --enable-add-ons=linuxthreads \
352 --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
359 rm -rf $RPM_BUILD_ROOT
360 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man{3,8},var/log}
362 env LANGUAGE=C LC_ALL=C \
364 install_root=$RPM_BUILD_ROOT \
365 infodir=%{_infodir} \
368 env LANGUAGE=C LC_ALL=C \
369 %{__make} install-locales -C localedata \
370 install_root=$RPM_BUILD_ROOT
372 PICFILES="libc_pic.a libc.map
373 math/libm_pic.a libm.map
374 resolv/libresolv_pic.a"
376 install $PICFILES $RPM_BUILD_ROOT/%{_libdir}
377 install elf/soinit.os $RPM_BUILD_ROOT/%{_libdir}/soinit.o
378 install elf/sofini.os $RPM_BUILD_ROOT/%{_libdir}/sofini.o
380 mv -f $RPM_BUILD_ROOT/lib/libmemusage.so $RPM_BUILD_ROOT%{_libdir}
381 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
383 %{__make} -C linuxthreads/man
384 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
386 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
388 ln -sf ../../..%{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
389 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
390 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
391 ln -sf ../..%{_libdir}/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
393 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
395 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
396 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
397 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
398 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
399 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
402 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man8/
403 touch $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.{cache,conf}
405 :> $RPM_BUILD_ROOT/var/log/nscd
408 install -d documentation
410 cp linuxthreads/ChangeLog documentation/ChangeLog.threads
411 cp linuxthreads/Changes documentation/Changes.threads
412 cp linuxthreads/README documentation/README.threads
413 cp crypt/README.ufc-crypt documentation/
415 cp ChangeLog ChangeLog.8 documentation
417 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS documentation/*
419 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
420 %{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/lib/ld-%{version}.so}
422 # Collect locale files and mark them with %%lang()
424 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
426 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
427 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
428 echo "%lang($lang) $dir" >>glibc.lang
433 %post -p /sbin/ldconfig
434 %postun -p /sbin/ldconfig
436 %post memusage -p /sbin/ldconfig
437 %postun memusage -p /sbin/ldconfig
440 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
443 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
446 /sbin/chkconfig --add nscd
447 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
448 if [ -f /var/lock/subsys/nscd ]; then
449 /etc/rc.d/init.d/nscd restart 1>&2
451 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
455 if [ "$1" = "0" ]; then
456 if [ -f /var/lock/subsys/nscd ]; then
457 /etc/rc.d/init.d/nscd stop 1>&2
459 /sbin/chkconfig --del nscd
463 rm -rf $RPM_BUILD_ROOT
466 %defattr(644,root,root,755)
467 %doc {README,NEWS,FAQ,BUGS}.gz
469 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nsswitch.conf
470 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ld.so.conf
471 %config %{_sysconfdir}/rpc
472 %ghost %{_sysconfdir}/ld.so.cache
474 %attr(755,root,root) /sbin/*
475 %attr(755,root,root) %{_bindir}/catchsegv
476 %attr(755,root,root) %{_bindir}/getent
477 %attr(755,root,root) %{_bindir}/glibcbug
478 %attr(755,root,root) %{_bindir}/iconv
479 %attr(755,root,root) %{_bindir}/ldd
481 %attr(755,root,root) %{_bindir}/lddlibc4
483 %attr(755,root,root) %{_bindir}/locale
484 %attr(755,root,root) %{_bindir}/rpcgen
485 %attr(755,root,root) %{_bindir}/tzselect
487 %attr(755,root,root) %{_sbindir}/rpcinfo
488 %attr(755,root,root) %{_sbindir}/zdump
489 %attr(755,root,root) %{_sbindir}/zic
491 %attr(755,root,root) /lib/ld-*
492 %attr(755,root,root) /lib/libdl*
493 %attr(755,root,root) /lib/libnsl*
494 %attr(755,root,root) /lib/lib[BScmprtu]*
496 %dir %{_datadir}/locale
497 %{_datadir}/locale/locale.alias
500 %dir %{_libdir}/locale
502 %{_mandir}/man8/ldconfig*
505 %defattr(644,root,root,755)
506 %attr(755,root,root) /lib/libnss_dns*.so*
509 %defattr(644,root,root,755)
510 %attr(755,root,root) /lib/libnss_files*.so*
513 %defattr(644,root,root,755)
514 %attr(755,root,root) /lib/libnss_compat*.so*
517 %defattr(644,root,root,755)
518 %attr(755,root,root) /lib/libnss_hesiod*.so*
521 %defattr(644,root,root,755)
522 %attr(755,root,root) /lib/libnss_nis.so.*
523 %attr(755,root,root) /lib/libnss_nis-*.so
525 %files -n nss_nisplus
526 %defattr(644,root,root,755)
527 %attr(755,root,root) /lib/libnss_nisplus*.so*
530 %defattr(644,root,root,755)
531 %attr(755,root,root) %{_bindir}/memusage*
532 %attr(755,root,root) %{_libdir}/libmemusage*
535 %defattr(644,root,root,755)
536 %doc documentation/* {NOTES,PROJECTS}.gz
537 %attr(755,root,root) %{_bindir}/gencat
538 %attr(755,root,root) %{_bindir}/getconf
539 %attr(755,root,root) %{_bindir}/*prof*
540 %attr(755,root,root) %{_bindir}/*trace
544 %{_infodir}/libc.info*
546 %attr(755,root,root) %{_libdir}/lib*.so
547 %attr(755,root,root) %{_libdir}/*crt*.o
548 %{_libdir}/libc_nonshared.a
553 %defattr(644,root,root,755)
554 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
555 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nscd.*
556 %attr(754,root,root) /etc/rc.d/init.d/nscd
557 %attr(755,root,root) %{_sbindir}/nscd*
558 %attr(640,root,root) /etc/logrotate.d/nscd
559 %attr(640,root,root) %ghost /var/log/nscd
561 %files -n localedb-src
562 %defattr(644,root,root,755)
563 %attr(755,root,root) %{_bindir}/localedef
567 %defattr(644,root,root,755)
568 %dir %{_libdir}/gconv
569 %{_libdir}/gconv/gconv-modules
570 %attr(755,root,root) %{_libdir}/gconv/*.so
573 %defattr(644,root,root,755)
574 %{_libdir}/libBrokenLocale.a
575 %{_libdir}/libbsd-compat.a
578 %{_libdir}/libcrypt.a
583 %{_libdir}/libmcheck.a
585 %{_libdir}/libpthread.a
586 %{_libdir}/libresolv.a
587 %{_libdir}/librpcsvc.a
592 %defattr(644,root,root,755)
596 %defattr(644,root,root,755)
597 %{_libdir}/lib*_pic.a