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 URL: http://www.gnu.org/software/libc/
35 BuildRequires: gd-devel
36 BuildRequires: libpng-devel
37 BuildRequires: gettext-devel >= 0.10.36
38 BuildRequires: texinfo
39 BuildRequires: rpm-build >= 4.0-11
42 Provides: /sbin/ldconfig
43 Obsoletes: %{name}-debug
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 Conflicts: kernel < %{min_kernel}
51 Contains the standard libraries that are used by multiple programs on
52 the system. In order to save disk space and memory, as well as to ease
53 upgrades, common system code is kept in one place and shared between
54 programs. This package contains the most important sets of shared
55 libraries, the standard C library and the standard math library.
56 Without these, a Linux system will not function. It also contains
57 national language (locale) support and timezone databases.
60 Enthält die Standard-Libraries, die von verschiedenen Programmen im
61 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
62 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
63 einer einzigen Stelle gespeichert und wird von den Programmen
64 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
65 shared Libraries, die Standard-C-Library und die
66 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
67 Ferner enthält es den Support für die verschiedenen Sprachgregionen
68 (locale) und die Zeitzonen-Datenbank.
71 Contient les bibliothèques standards utilisées par de nombreux
72 programmes du système. Afin d'économiser l'espace disque et mémoire,
73 et de faciliter les mises à jour, le code commun au système est mis à
74 un endroit et partagé entre les programmes. Ce paquetage contient les
75 bibliothèques partagées les plus importantes, la bibliothèque standard
76 du C et la bibliothèque mathématique standard. Sans celles-ci, un
77 système Linux ne peut fonctionner. Il contient aussi la gestion des
78 langues nationales (locales) et les bases de données des zones
82 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
83 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
84 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
85 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
86 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
87 standardowych wspó³dzielonych (dynamicznych) bibliotek C i
88 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
89 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
90 jêzyków (locale) oraz definicje stref czasowych.
93 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
94 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
95 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
96 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
97 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
98 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
99 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
102 Summary: Additional libraries required to compile
103 Summary(de): Weitere Libraries zum Kompilieren
104 Summary(fr): Librairies supplémentaires nécessaires à la compilation.
105 Summary(pl): Dodatkowe biblioteki wymagane podczas kompilacji
106 Summary(tr): Geliþtirme için gerekli diðer kitaplýklar
107 Group: Development/Libraries
108 Group(de): Entwicklung/Libraries
109 Group(fr): Development/Librairies
110 Group(pl): Programowanie/Biblioteki
111 Requires: %{name} = %{version}
114 To develop programs which use the standard C libraries (which nearly
115 all programs do), the system needs to have these standard header files
116 and object files available for creating the executables.
118 %description -l de devel
119 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
120 verwenden (also fast alle), benötigt das System diese Standard-Header-
121 und Objektdateien zum Erstellen der ausführbaren Programme.
123 %description -l fr devel
124 Pour développer des programmes utilisant les bibliothèques standard du
125 C (ce que presque tous les programmes font), le système doit posséder
126 ces fichiers en-têtes et objets standards pour créer les exécutables.
128 %description -l pl devel
129 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
130 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
131 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
132 wykonywalnych i innych bibliotek.
134 %description -l tr devel
135 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
136 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
140 Summary: Name Service Caching Daemon
141 Summary(pl): Name Service Caching Daemon
142 Group: Networking/Daemons
143 Group(de): Netzwerkwesen/Server
144 Group(pl): Sieciowe/Serwery
145 Prereq: /sbin/chkconfig
146 Prereq: rc-scripts >= 0.2.0
147 Requires: %{name} = %{version}
150 nscd caches name service lookups; it can dramatically improve
151 performance with NIS+, and may help with DNS as well. You cannot use
152 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
153 nscd happens to hit these bugs particularly hard.
155 %description -n nscd -l pl
156 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
157 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
158 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów po stronie j±dra w
161 %package -n localedb-src
162 Summary: Souce code locale database
163 Summary(pl): Kod ¬ród³owy bazy locale
167 Requires: %{name} = %{version}
169 %description -n localedb-src
170 This add-on package contains the data needed to build the locale data
171 files to use the internationalization features of the GNU libc. Glibc
172 package contains standard set of locale binary database and You need
173 this package if want build some non standard locale database.
175 %description -l pl -n localedb-src
176 Pakiet ten kod ¼ród³owy baz locale który jest potrzebny do zbudowania
177 binarnej wersji baz locale potrzebnej do poprawnego wspierania ró¿nych
178 jêzyków przez glibc. Pakiet glibc zawira binarn± wersjê standardowych
179 baz locale i ten pakiet jest potrzebny tylko w sytuacji kiedy potrzeba
180 wygenerowaæ jak±¶ niestandardow± bazê.
183 Summary: Convert encoding of given files from one encoding to another
184 Summary(pl): Program do konwersji plików tekstowych z jednego enkodingu w inny
188 Requires: %{name} = %{version}
190 %description -n iconv
191 Convert encoding of given files from one encoding to another. You need
192 this package if You want to convert some documet from one encoding to
193 another or if You have installed some programs which use Generic
194 Character Set Conversion Interface.
196 %description -l pl -n iconv
197 Program do konwersji plików tekstowych z jednego enkodingu w inny.
198 Potrzebujesz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
199 dokumentów z jednego enkodingu w inny lub je¿eli masz zainstalowane
200 jakie¶ programy które korzystaj± z Generic Character Set Conversion
201 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
202 umo¿liwiaj± konwersjê enkodingu danych z poziomu dowolnego programu.
205 Summary: Static libraries
206 Summary(pl): Biblioteki statyczne
207 Group: Development/Libraries
208 Group(de): Entwicklung/Libraries
209 Group(fr): Development/Librairies
210 Group(pl): Programowanie/Biblioteki
211 Requires: %{name}-devel = %{version}
214 GNU libc static libraries.
216 %description -l pl static
217 Biblioteki statyczne GNU libc.
220 Summary: glibc with profiling support
221 Summary(de): glibc mit Profil-Unterstützung
222 Summary(fr): glibc avec support pour profiling
223 Summary(tr): Ölçüm desteði olan glibc
224 Group: Development/Libraries/Libc
225 Group(de): Entwicklung/Libraries/Libc
226 Group(pl): Programowanie/Biblioteki/Libc
227 Obsoletes: libc-profile
228 Requires: %{name}-devel = %{version}
231 When programs are being profiled used gprof, they must use these
232 libraries instead of the standard C libraries for gprof to be able to
233 profile them correctly.
235 %description -l de profile
236 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
237 Libraries anstelle der üblichen C-Libraries verwendet werden.
239 %description -l tr profile
240 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
241 kitaplýðý kullanmak zorundadýrlar.
244 Summary: glibc PIC archive
245 Group: Development/Libraries/Libc
246 Group(de): Entwicklung/Libraries/Libc
247 Group(pl): Programowanie/Biblioteki/Libc
248 Requires: %{name}-devel = %{version}
251 GNU C Library PIC archive contains an archive library (ar file)
252 composed of individual shared objects. This is used for creating a
253 library which is a smaller subset of the standard libc shared library.
255 %package -n nss_compat
256 Summary: Old style NYS NSS glibc module
258 Group(de): Gründsätzlich
259 Group(pl): Podstawowe
260 Requires: %{name} = %{version}
262 %description -n nss_compat
263 Old style NYS NSS glibc module
266 Summary: BIND NSS glibc module
268 Group(de): Gründsätzlich
269 Group(pl): Podstawowe
270 Requires: %{name} = %{version}
272 %description -n nss_dns
273 BIND NSS glibc module.
275 %package -n nss_files
276 Summary: Traditional files databases NSS glibc module
278 Group(de): Gründsätzlich
279 Group(pl): Podstawowe
280 Requires: %{name} = %{version}
282 %description -n nss_files
283 Traditional files databases NSS glibc module.
285 %package -n nss_hesiod
286 Summary: Hesiod NSS glibc module
288 Group(de): Gründsätzlich
289 Group(pl): Podstawowe
290 Requires: %{name} = %{version}
292 %description -n nss_hesiod
293 Glibc NSS (Name Service Switch) module for databases acces.
296 Summary: NIS(YP) NSS glibc module
298 Group(de): Gründsätzlich
299 Group(pl): Podstawowe
300 Requires: %{name} = %{version}
302 %description -n nss_nis
303 Glibc NSS (Name Service Switch) module for NIS(YP) databases acces.
305 %package -n nss_nisplus
306 Summary: NIS+ NSS module
308 Group(de): Gründsätzlich
309 Group(pl): Podstawowe
310 Requires: %{name} = %{version}
312 %description -n nss_nisplus
313 Glibc NSS (Name Service Switch) module for NIS+ databases acces.
318 Group(de): Applikationen
320 Requires: %{name} = %{version}
323 %description memusage
342 LDFLAGS=" " ; export LDFLAGS
344 --enable-add-ons=linuxthreads \
345 --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
352 rm -rf $RPM_BUILD_ROOT
353 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man{3,8},var/log}
355 env LANGUAGE=C LC_ALL=C \
357 install_root=$RPM_BUILD_ROOT \
358 infodir=%{_infodir} \
361 env LANGUAGE=C LC_ALL=C \
362 %{__make} install-locales -C localedata \
363 install_root=$RPM_BUILD_ROOT
365 PICFILES="libc_pic.a libc.map
366 math/libm_pic.a libm.map
367 resolv/libresolv_pic.a"
369 install $PICFILES $RPM_BUILD_ROOT/%{_libdir}
370 install elf/soinit.os $RPM_BUILD_ROOT/%{_libdir}/soinit.o
371 install elf/sofini.os $RPM_BUILD_ROOT/%{_libdir}/sofini.o
373 mv -f $RPM_BUILD_ROOT/lib/libmemusage.so $RPM_BUILD_ROOT%{_libdir}
374 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
376 %{__make} -C linuxthreads/man
377 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
379 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
381 ln -sf ../../..%{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
382 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
383 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
384 ln -sf ../..%{_libdir}/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
386 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
388 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
389 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
390 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
391 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
392 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
395 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man8/
396 touch $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.{cache,conf}
398 :> $RPM_BUILD_ROOT/var/log/nscd
401 install -d documentation
403 cp linuxthreads/ChangeLog documentation/ChangeLog.threads
404 cp linuxthreads/Changes documentation/Changes.threads
405 cp linuxthreads/README documentation/README.threads
406 cp crypt/README.ufc-crypt documentation/
408 cp ChangeLog ChangeLog.8 documentation
410 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS documentation/*
412 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
413 %{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/lib/ld-%{version}.so}
415 # Collect locale files and mark them with %%lang()
417 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
419 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
420 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
421 echo "%lang($lang) $dir" >>glibc.lang
426 %post -p /sbin/ldconfig
427 %postun -p /sbin/ldconfig
429 %post memusage -p /sbin/ldconfig
430 %postun memusage -p /sbin/ldconfig
433 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
436 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
439 /sbin/chkconfig --add nscd
440 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
441 if [ -f /var/lock/subsys/nscd ]; then
442 /etc/rc.d/init.d/nscd restart 1>&2
444 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
448 if [ "$1" = "0" ]; then
449 if [ -f /var/lock/subsys/nscd ]; then
450 /etc/rc.d/init.d/nscd stop 1>&2
452 /sbin/chkconfig --del nscd
456 rm -rf $RPM_BUILD_ROOT
459 %defattr(644,root,root,755)
460 %doc {README,NEWS,FAQ,BUGS}.gz
462 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nsswitch.conf
463 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ld.so.conf
464 %config %{_sysconfdir}/rpc
465 %ghost %{_sysconfdir}/ld.so.cache
467 %attr(755,root,root) /sbin/*
468 %attr(755,root,root) %{_bindir}/catchsegv
469 %attr(755,root,root) %{_bindir}/getent
470 %attr(755,root,root) %{_bindir}/glibcbug
471 %attr(755,root,root) %{_bindir}/iconv
472 %attr(755,root,root) %{_bindir}/ldd
474 %attr(755,root,root) %{_bindir}/lddlibc4
476 %attr(755,root,root) %{_bindir}/locale
477 %attr(755,root,root) %{_bindir}/rpcgen
478 %attr(755,root,root) %{_bindir}/tzselect
480 %attr(755,root,root) %{_sbindir}/rpcinfo
481 %attr(755,root,root) %{_sbindir}/zdump
482 %attr(755,root,root) %{_sbindir}/zic
484 %attr(755,root,root) /lib/ld-*
485 %attr(755,root,root) /lib/libdl*
486 %attr(755,root,root) /lib/libnsl*
487 %attr(755,root,root) /lib/lib[BScmprtu]*
489 %dir %{_datadir}/locale
490 %{_datadir}/locale/locale.alias
493 %dir %{_libdir}/locale
495 %{_mandir}/man8/ldconfig*
498 %defattr(644,root,root,755)
499 %attr(755,root,root) /lib/libnss_dns*.so*
502 %defattr(644,root,root,755)
503 %attr(755,root,root) /lib/libnss_files*.so*
506 %defattr(644,root,root,755)
507 %attr(755,root,root) /lib/libnss_compat*.so*
510 %defattr(644,root,root,755)
511 %attr(755,root,root) /lib/libnss_hesiod*.so*
514 %defattr(644,root,root,755)
515 %attr(755,root,root) /lib/libnss_nis.so.*
516 %attr(755,root,root) /lib/libnss_nis-*.so
518 %files -n nss_nisplus
519 %defattr(644,root,root,755)
520 %attr(755,root,root) /lib/libnss_nisplus*.so*
523 %defattr(644,root,root,755)
524 %attr(755,root,root) %{_bindir}/memusage*
525 %attr(755,root,root) %{_libdir}/libmemusage*
528 %defattr(644,root,root,755)
529 %doc documentation/* {NOTES,PROJECTS}.gz
530 %attr(755,root,root) %{_bindir}/gencat
531 %attr(755,root,root) %{_bindir}/getconf
532 %attr(755,root,root) %{_bindir}/*prof*
533 %attr(755,root,root) %{_bindir}/*trace
537 %{_infodir}/libc.info*
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 %dir %{_libdir}/gconv
562 %{_libdir}/gconv/gconv-modules
563 %attr(755,root,root) %{_libdir}/gconv/*.so
566 %defattr(644,root,root,755)
567 %{_libdir}/libBrokenLocale.a
568 %{_libdir}/libbsd-compat.a
571 %{_libdir}/libcrypt.a
576 %{_libdir}/libmcheck.a
578 %{_libdir}/libpthread.a
579 %{_libdir}/libresolv.a
580 %{_libdir}/librpcsvc.a
585 %defattr(644,root,root,755)
589 %defattr(644,root,root,755)
590 %{_libdir}/lib*_pic.a