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