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