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