1 %define min_kernel 2.2.0
15 Source0: ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
16 Source1: ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
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.patch
30 Patch9: %{name}-getxxxxinfo.patch
31 Patch10: %{name}-flexiblearray.patch
32 URL: http://www.gnu.org/software/libc/
34 BuildRequires: gd-static
35 BuildRequires: libpng-static
36 BuildRequires: texinfo
37 BuildRequires: rpm-build >= 4.0-9
40 Provides: /sbin/ldconfig
41 Obsoletes: %{name}-profile
42 Obsoletes: %{name}-debug
46 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Conflicts: kernel < %{min_kernel}
50 Contains the standard libraries that are used by multiple programs on
51 the system. In order to save disk space and memory, as well as to ease
52 upgrades, common system code is kept in one place and shared between
53 programs. This package contains the most important sets of shared
54 libraries, the standard C library and the standard math library.
55 Without these, a Linux system will not function. It also contains
56 national language (locale) support and timezone databases.
59 Enthält die Standard-Libraries, die von verschiedenen Programmen im
60 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
61 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
62 einer einzigen Stelle gespeichert und wird von den Programmen
63 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
64 shared Libraries, die Standard-C-Library und die
65 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
66 Ferner enthält es den Support für die verschiedenen Sprachgregionen
67 (locale) und die Zeitzonen-Datenbank.
70 Contient les bibliothèques standards utilisées par de nombreux
71 programmes du système. Afin d'économiser l'espace disque et mémoire,
72 et de faciliter les mises à jour, le code commun au système est mis à
73 un endroit et partagé entre les programmes. Ce paquetage contient les
74 bibliothèques partagées les plus importantes, la bibliothèque standard
75 du C et la bibliothèque mathématique standard. Sans celles-ci, un
76 système Linux ne peut fonctionner. Il contient aussi la gestion des
77 langues nationales (locales) et les bases de données des zones
81 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
82 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
83 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
84 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
85 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
86 standardowych wspó³dzielonych (dynamicznych) bibliotek C i
87 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
88 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
89 jêzyków (locale) oraz definicje stref czasowych.
92 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
93 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
94 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
95 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
96 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
97 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
98 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
101 Summary: Additional libraries required to compile
102 Summary(de): Weitere Libraries zum Kompilieren
103 Summary(fr): Librairies supplémentaires nécessaires à la compilation.
104 Summary(pl): Dodatkowe biblioteki wymagane podczas kompilacji
105 Summary(tr): Geliþtirme için gerekli diðer kitaplýklar
106 Group: Development/Libraries
107 Group(de): Entwicklung/Libraries
108 Group(fr): Development/Librairies
109 Group(pl): Programowanie/Biblioteki
110 Requires: %{name} = %{version}
113 To develop programs which use the standard C libraries (which nearly
114 all programs do), the system needs to have these standard header files
115 and object files available for creating the executables.
117 %description -l de devel
118 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
119 verwenden (also fast alle), benötigt das System diese Standard-Header-
120 und Objektdateien zum Erstellen der ausführbaren Programme.
122 %description -l fr devel
123 Pour développer des programmes utilisant les bibliothèques standard du
124 C (ce que presque tous les programmes font), le système doit posséder
125 ces fichiers en-têtes et objets standards pour créer les exécutables.
127 %description -l pl devel
128 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
129 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
130 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
131 wykonywalnych i innych bibliotek.
133 %description -l tr devel
134 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
135 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
139 Summary: Name Service Caching Daemon
140 Summary(pl): Name Service Caching Daemon
141 Group: Networking/Daemons
142 Group(de): Netzwerkwesen/Server
143 Group(pl): Sieciowe/Serwery
144 Prereq: /sbin/chkconfig
145 Requires: rc-scripts >= 0.2.0
146 Requires: %{name} = %{version}
149 nscd caches name service lookups; it can dramatically improve
150 performance with NIS+, and may help with DNS as well. You cannot use
151 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
152 nscd happens to hit these bugs particularly hard.
154 %description -n nscd -l pl
155 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
156 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
157 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów po stronie j±dra w
160 %package -n localedb-src
161 Summary: Souce code locale database
162 Summary(pl): Kod ¬ród³owy bazy locale
166 Requires: %{name} = %{version}
168 %description -n localedb-src
169 This add-on package contains the data needed to build the locale data
170 files to use the internationalization features of the GNU libc. Glibc
171 package contains standard set of locale binary database and You need
172 this package if want build some non standard locale database.
174 %description -l pl -n localedb-src
175 Pakiet ten kod ¼ród³owy baz locale który jest potrzebny do zbudowania
176 binarnej wersji baz locale potrzebnej do poprawnego wspierania ró¿nych
177 jêzyków przez glibc. Pakiet glibc zawira binarn± wersjê standardowych
178 baz locale i ten pakiet jest potrzebny tylko w sytuacji kiedy potrzeba
179 wygenerowaæ jak±¶ niestandardow± bazê.
182 Summary: Convert encoding of given files from one encoding to another
183 Summary(pl): Program do konwersji plików tekstowych z jednego enkodingu w inny
187 Requires: %{name} = %{version}
189 %description -n iconv
190 Convert encoding of given files from one encoding to another. You need
191 this package if You want to convert some documet from one encoding to
192 another or if You have installed some programs which use Generic
193 Character Set Conversion Interface.
195 %description -l pl -n iconv
196 Program do konwersji plików tekstowych z jednego enkodingu w inny.
197 Potrzebujesz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
198 dokumentów z jednego enkodingu w inny lub je¿eli masz zainstalowane
199 jakie¶ programy które korzystaj± z Generic Character Set Conversion
200 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
201 umo¿liwiaj± konwersjê enkodingu danych z poziomu dowolnego programu.
204 Summary: Static libraries
205 Summary(pl): Biblioteki statyczne
206 Group: Development/Libraries
207 Group(de): Entwicklung/Libraries
208 Group(fr): Development/Librairies
209 Group(pl): Programowanie/Biblioteki
210 Requires: %{name}-devel = %{version}
213 GNU libc static libraries.
215 %description -l pl static
216 Biblioteki statyczne GNU libc.
219 Summary: glibc with profiling support
220 Summary(de): glibc mit Profil-Unterstützung
221 Summary(fr): glibc avec support pour profiling
222 Summary(tr): Ölçüm desteði olan glibc
223 Group: Development/Libraries/Libc
224 Group(de): Entwicklung/Libraries/Libc
225 Group(pl): Programowanie/Biblioteki/Libc
226 Obsoletes: libc-profile
227 Requires: %{name}-devel = %{version}
230 When programs are being profiled used gprof, they must use these
231 libraries instead of the standard C libraries for gprof to be able to
232 profile them correctly.
234 %description -l de profile
235 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
236 Libraries anstelle der üblichen C-Libraries verwendet werden.
238 %description -l tr profile
239 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
240 kitaplýðý kullanmak zorundadýrlar.
243 Summary: glibc PIC archive
244 Group: Development/Libraries/Libc
245 Group(de): Entwicklung/Libraries/Libc
246 Group(pl): Programowanie/Biblioteki/Libc
247 Requires: %{name}-devel = %{version}
250 GNU C Library PIC archive contains an archive library (ar file)
251 composed of individual shared objects. This is used for creating a
252 library which is a smaller subset of the standard libc shared library.
254 %package -n nss_compat
255 Summary: Old style NYS NSS glibc module
257 Group(de): Gründsätzlich
258 Group(pl): Podstawowe
259 Requires: %{name} = %{version}
261 %description -n nss_compat
262 Old style NYS NSS glibc module
265 Summary: BIND NSS glibc module
267 Group(de): Gründsätzlich
268 Group(pl): Podstawowe
269 Requires: %{name} = %{version}
271 %description -n nss_dns
272 BIND NSS glibc module.
274 %package -n nss_files
275 Summary: Traditional files databases NSS glibc module
277 Group(de): Gründsätzlich
278 Group(pl): Podstawowe
279 Requires: %{name} = %{version}
281 %description -n nss_files
282 Traditional files databases NSS glibc module.
284 %package -n nss_hesiod
285 Summary: Hesiod NSS glibc module
287 Group(de): Gründsätzlich
288 Group(pl): Podstawowe
289 Requires: %{name} = %{version}
291 %description -n nss_hesiod
292 Glibc NSS (Name Service Switch) module for databases acces.
295 Summary: NIS(YP) NSS glibc module
297 Group(de): Gründsätzlich
298 Group(pl): Podstawowe
299 Requires: %{name} = %{version}
301 %description -n nss_nis
302 Glibc NSS (Name Service Switch) module for NIS(YP) databases acces.
304 %package -n nss_nisplus
305 Summary: NIS+ NSS module
307 Group(de): Gründsätzlich
308 Group(pl): Podstawowe
309 Requires: %{name} = %{version}
311 %description -n nss_nisplus
312 Glibc NSS (Name Service Switch) module for NIS+ databases acces.
317 Group(de): Applikationen
319 Requires: %{name} = %{version}
322 %description memusage
341 --enable-add-ons=linuxthreads \
342 --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
349 rm -rf $RPM_BUILD_ROOT
350 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man{3,8},var/log}
352 env LANGUAGE=C LC_ALL=C \
354 install_root=$RPM_BUILD_ROOT \
355 infodir=%{_infodir} \
358 env LANGUAGE=C LC_ALL=C \
359 %{__make} install-locales -C localedata \
360 install_root=$RPM_BUILD_ROOT
362 PICFILES="libc_pic.a libc.map
363 math/libm_pic.a libm.map
364 resolv/libresolv_pic.a"
366 install $PICFILES $RPM_BUILD_ROOT/%{_libdir}
367 install elf/soinit.os $RPM_BUILD_ROOT/%{_libdir}/soinit.o
368 install elf/sofini.os $RPM_BUILD_ROOT/%{_libdir}/sofini.o
370 mv -f $RPM_BUILD_ROOT/lib/libmemusage.so $RPM_BUILD_ROOT%{_libdir}
371 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
373 %{__make} -C linuxthreads/man
374 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
376 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
378 ln -sf ../../..%{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
379 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
380 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
381 ln -sf ../..%{_libdir}/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
383 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
385 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
386 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
387 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
388 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
389 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
392 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man8/
393 touch $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.{cache,conf}
395 :> $RPM_BUILD_ROOT/var/log/nscd
398 install -d documentation
400 cp linuxthreads/ChangeLog documentation/ChangeLog.threads
401 cp linuxthreads/Changes documentation/Changes.threads
402 cp linuxthreads/README documentation/README.threads
403 cp crypt/README.ufc-crypt documentation/
405 cp ChangeLog ChangeLog.8 documentation
407 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS documentation/*
409 # Collect locale files and mark them with %%lang()
411 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
413 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
414 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
415 echo "%lang($lang) $dir" >>glibc.lang
420 %post -p /sbin/ldconfig
421 %postun -p /sbin/ldconfig
423 %post memusage -p /sbin/ldconfig
424 %postun memusage -p /sbin/ldconfig
427 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
430 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
433 /sbin/chkconfig --add nscd
434 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
435 if [ -f /var/lock/subsys/nscd ]; then
436 /etc/rc.d/init.d/nscd restart 1>&2
438 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
442 if [ "$1" = "0" ]; then
443 if [ -f /var/lock/subsys/nscd ]; then
444 /etc/rc.d/init.d/nscd stop 1>&2
446 /sbin/chkconfig --del nscd
450 rm -rf $RPM_BUILD_ROOT
453 %defattr(644,root,root,755)
454 %doc {README,NEWS,FAQ,BUGS}.gz
456 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nsswitch.conf
457 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ld.so.conf
458 %config %{_sysconfdir}/rpc
459 %ghost %{_sysconfdir}/ld.so.cache
461 %attr(755,root,root) /sbin/*
462 %attr(755,root,root) %{_bindir}/catchsegv
463 %attr(755,root,root) %{_bindir}/getent
464 %attr(755,root,root) %{_bindir}/glibcbug
465 %attr(755,root,root) %{_bindir}/ldd
467 %attr(755,root,root) %{_bindir}/lddlibc4
469 %attr(755,root,root) %{_bindir}/locale
470 %attr(755,root,root) %{_bindir}/rpcgen
471 %attr(755,root,root) %{_bindir}/tzselect
473 %attr(755,root,root) %{_sbindir}/rpcinfo
474 %attr(755,root,root) %{_sbindir}/zdump
475 %attr(755,root,root) %{_sbindir}/zic
477 %attr(755,root,root) /lib/ld-*
478 %attr(755,root,root) /lib/libdl*
479 %attr(755,root,root) /lib/libnsl*
480 %attr(755,root,root) /lib/lib[BScmprtu]*
482 %dir %{_datadir}/locale
483 %{_datadir}/locale/locale.alias
486 %dir %{_libdir}/locale
488 %{_mandir}/man8/ldconfig*
491 %defattr(644,root,root,755)
492 %attr(755,root,root) /lib/libnss_dns*.so*
495 %defattr(644,root,root,755)
496 %attr(755,root,root) /lib/libnss_files*.so*
499 %defattr(644,root,root,755)
500 %attr(755,root,root) /lib/libnss_compat*.so*
503 %defattr(644,root,root,755)
504 %attr(755,root,root) /lib/libnss_hesiod*.so*
507 %defattr(644,root,root,755)
508 %attr(755,root,root) /lib/libnss_nis.so.*
509 %attr(755,root,root) /lib/libnss_nis-*.so
511 %files -n nss_nisplus
512 %defattr(644,root,root,755)
513 %attr(755,root,root) /lib/libnss_nisplus*.so*
516 %defattr(644,root,root,755)
517 %attr(755,root,root) %{_bindir}/memusage*
518 %attr(755,root,root) %{_libdir}/libmemusage*
521 %defattr(644,root,root,755)
522 %doc documentation/* {NOTES,PROJECTS}.gz
523 %attr(755,root,root) %{_bindir}/gencat
524 %attr(755,root,root) %{_bindir}/getconf
525 %attr(755,root,root) %{_bindir}/*prof*
526 %attr(755,root,root) %{_bindir}/*trace
533 %{_includedir}/netash
534 %{_includedir}/netatalk
535 %{_includedir}/netax25
536 %{_includedir}/neteconet
537 %{_includedir}/netinet
538 %{_includedir}/netipx
539 %{_includedir}/netpacket
540 %{_includedir}/netrom
541 %{_includedir}/netrose
543 %{_includedir}/protocols
545 %{_includedir}/rpcsvc
549 %{_infodir}/libc.info*
551 %attr(755,root,root) %{_libdir}/lib*.so
552 %attr(755,root,root) %{_libdir}/*crt*.o
553 %{_libdir}/libc_nonshared.a
558 %defattr(644,root,root,755)
559 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
560 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nscd.*
561 %attr(754,root,root) /etc/rc.d/init.d/nscd
562 %attr(755,root,root) %{_sbindir}/nscd*
563 %attr(640,root,root) /etc/logrotate.d/nscd
564 %attr(640,root,root) %ghost /var/log/nscd
566 %files -n localedb-src
567 %defattr(644,root,root,755)
568 %attr(755,root,root) %{_bindir}/localedef
572 %defattr(644,root,root,755)
573 %attr(755,root,root) %{_bindir}/iconv
574 %dir %{_libdir}/gconv
575 %{_libdir}/gconv/gconv-modules
576 %attr(755,root,root) %{_libdir}/gconv/*.so
579 %defattr(644,root,root,755)
580 %{_libdir}/libBrokenLocale.a
581 %{_libdir}/libbsd-compat.a
584 %{_libdir}/libcrypt.a
589 %{_libdir}/libmcheck.a
591 %{_libdir}/libpthread.a
592 %{_libdir}/libresolv.a
593 %{_libdir}/librpcsvc.a
598 %defattr(644,root,root,755)
602 %defattr(644,root,root,755)
603 %{_libdir}/lib*_pic.a