14 Source0: ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
15 Source1: ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
17 Source3: nscd.sysconfig
18 Source4: nscd.logrotate
20 Patch0: %{name}-info.patch
21 Patch1: %{name}-versions.awk_fix.patch
22 Patch2: %{name}-pld.patch
23 Patch3: %{name}-crypt-blowfish.patch
24 Patch4: %{name}-string2-pointer-arith.patch
25 Patch5: %{name}-linuxthreads-lock.patch
26 Patch6: %{name}-pthread_create-manpage.patch
27 Patch7: %{name}-sparc-linux-chown.patch
28 Patch8: %{name}-ldconfig.patch
29 Patch9: %{name}-getxxxxinfo.patch
30 URL: http://www.gnu.org/software/libc/
32 BuildRequires: gd-devel
35 Provides: /sbin/ldconfig
36 Obsoletes: %{name}-profile
37 Obsoletes: %{name}-debug
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 Contains the standard libraries that are used by multiple programs on
44 the system. In order to save disk space and memory, as well as to ease
45 upgrades, common system code is kept in one place and shared between
46 programs. This package contains the most important sets of shared
47 libraries, the standard C library and the standard math library.
48 Without these, a Linux system will not function. It also contains
49 national language (locale) support and timezone databases.
52 Enthält die Standard-Libraries, die von verschiedenen Programmen im
53 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
54 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
55 einer einzigen Stelle gespeichert und wird von den Programmen
56 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
57 shared Libraries, die Standard-C-Library und die
58 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
59 Ferner enthält es den Support für die verschiedenen Sprachgregionen
60 (locale) und die Zeitzonen-Datenbank.
63 Contient les bibliothèques standards utilisées par de nombreux
64 programmes du système. Afin d'économiser l'espace disque et mémoire,
65 et de faciliter les mises à jour, le code commun au système est mis à
66 un endroit et partagé entre les programmes. Ce paquetage contient les
67 bibliothèques partagées les plus importantes, la bibliothèque standard
68 du C et la bibliothèque mathématique standard. Sans celles-ci, un
69 système Linux ne peut fonctionner. Il contient aussi la gestion des
70 langues nationales (locales) et les bases de données des zones
74 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
75 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
76 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
77 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
78 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
79 standardowych wspó³dzielonych (dynamicznych) bibliotek C i
80 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
81 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
82 jêzyków (locale) oraz definicje stref czasowych.
85 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
86 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
87 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
88 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
89 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
90 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
91 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
94 Summary: Additional libraries required to compile
95 Summary(de): Weitere Libraries zum Kompilieren
96 Summary(fr): Librairies supplémentaires nécessaires à la compilation.
97 Summary(pl): Dodatkowe biblioteki wymagane podczas kompilacji
98 Summary(tr): Geliþtirme için gerekli diðer kitaplýklar
99 Group: Development/Libraries
100 Group(de): Entwicklung/Libraries
101 Group(fr): Development/Librairies
102 Group(pl): Programowanie/Biblioteki
103 Requires: %{name} = %{version}
106 To develop programs which use the standard C libraries (which nearly
107 all programs do), the system needs to have these standard header files
108 and object files available for creating the executables.
110 %description -l de devel
111 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
112 verwenden (also fast alle), benötigt das System diese Standard-Header-
113 und Objektdateien zum Erstellen der ausführbaren Programme.
115 %description -l fr devel
116 Pour développer des programmes utilisant les bibliothèques standard du
117 C (ce que presque tous les programmes font), le système doit posséder
118 ces fichiers en-têtes et objets standards pour créer les exécutables.
120 %description -l pl devel
121 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
122 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
123 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
124 wykonywalnych i innych bibliotek.
126 %description -l tr devel
127 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
128 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
132 Summary: Name Service Caching Daemon
133 Summary(pl): Name Service Caching Daemon
134 Group: Networking/Daemons
135 Group(de): Netzwerkwesen/Server
136 Group(pl): Sieciowe/Serwery
137 Prereq: /sbin/chkconfig
138 Requires: rc-scripts >= 0.2.0
141 nscd caches name service lookups; it can dramatically improve
142 performance with NIS+, and may help with DNS as well. You cannot use
143 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
144 nscd happens to hit these bugs particularly hard.
146 %description -n nscd -l pl
147 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
148 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
149 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów po stronie j±dra w
152 %package -n localedb-src
153 Summary: Souce code locale database
154 Summary(pl): Kod ¬ród³owy bazy locale
159 %description -n localedb-src
160 This add-on package contains the data needed to build the locale data
161 files to use the internationalization features of the GNU libc. Glibc
162 package contains standard set of locale binary database and You need
163 this package if want build some non standard locale database.
165 %description -l pl -n localedb-src
166 Pakiet ten kod ¼ród³owy baz locale który jest potrzebny do zbudowania
167 binarnej wersji baz locale potrzebnej do poprawnego wspierania ró¿nych
168 jêzyków przez glibc. Pakiet glibc zawira binarn± wersjê standardowych
169 baz locale i ten pakiet jest potrzebny tylko w sytuacji kiedy potrzeba
170 wygenerowaæ jak±¶ niestandardow± bazê.
173 Summary: Convert encoding of given files from one encoding to another
174 Summary(pl): Program do konwersji plików tekstowych z jednego enkodingu w inny
179 %description -n iconv
180 Convert encoding of given files from one encoding to another. You need
181 this package if You want to convert some documet from one encoding to
182 another or if You have installed some programs which use Generic
183 Character Set Conversion Interface.
185 %description -l pl -n iconv
186 Program do konwersji plików tekstowych z jednego enkodingu w inny.
187 Potrzebujesz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
188 dokumentów z jednego enkodingu w inny lub je¿eli masz zainstalowane
189 jakie¶ programy które korzystaj± z Generic Character Set Conversion
190 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
191 umo¿liwiaj± konwersjê enkodingu danych z poziomu dowolnego programu.
194 Summary: Static libraries
195 Summary(pl): Biblioteki statyczne
196 Group: Development/Libraries
197 Group(de): Entwicklung/Libraries
198 Group(fr): Development/Librairies
199 Group(pl): Programowanie/Biblioteki
200 Requires: %{name}-devel = %{version}
203 GNU libc static libraries.
205 %description -l pl static
206 Biblioteki statyczne GNU libc.
209 Summary: glibc with profiling support
210 Summary(de): glibc mit Profil-Unterstützung
211 Summary(fr): glibc avec support pour profiling
212 Summary(tr): Ölçüm desteði olan glibc
213 Group: Development/Libraries/Libc
214 Group(de): Entwicklung/Libraries/Libc
215 Group(pl): Programowanie/Biblioteki/Libc
216 Obsoletes: libc-profile
217 Requires: %{name}-devel = %{version}
220 When programs are being profiled used gprof, they must use these
221 libraries instead of the standard C libraries for gprof to be able to
222 profile them correctly.
224 %description -l de profile
225 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
226 Libraries anstelle der üblichen C-Libraries verwendet werden.
228 %description -l tr profile
229 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
230 kitaplýðý kullanmak zorundadýrlar.
233 Summary: glibc PIC archive
234 Group: Development/Libraries/Libc
235 Group(de): Entwicklung/Libraries/Libc
236 Group(pl): Programowanie/Biblioteki/Libc
237 Requires: %{name}-devel = %{version}
240 GNU C Library PIC archive contains an archive library (ar file)
241 composed of individual shared objects. This is used for creating a
242 library which is a smaller subset of the standard libc shared library.
244 %package -n nss_compat
245 Summary: Old style NYS NSS glibc module
247 Group(de): Gründsätzlich
248 Group(pl): Podstawowe
249 Requires: %{name} = %{version}
251 %description -n nss_compat
252 Old style NYS NSS glibc module
255 Summary: BIND NSS glibc module
257 Group(de): Gründsätzlich
258 Group(pl): Podstawowe
259 Requires: %{name} = %{version}
261 %description -n nss_dns
262 BIND NSS glibc module.
264 %package -n nss_files
265 Summary: Traditional files databases NSS glibc module
267 Group(de): Gründsätzlich
268 Group(pl): Podstawowe
269 Requires: %{name} = %{version}
271 %description -n nss_files
272 Traditional files databases NSS glibc module.
274 %package -n nss_hesiod
275 Summary: Hesiod NSS glibc module
277 Group(de): Gründsätzlich
278 Group(pl): Podstawowe
279 Requires: %{name} = %{version}
281 %description -n nss_hesiod
282 Glibc NSS (Name Service Switch) module for databases acces.
285 Summary: NIS(YP) NSS glibc module
287 Group(de): Gründsätzlich
288 Group(pl): Podstawowe
289 Requires: %{name} = %{version}
291 %description -n nss_nis
292 Glibc NSS (Name Service Switch) module for NIS(YP) databases acces.
294 %package -n nss_nisplus
295 Summary: NIS+ NSS module
297 Group(de): Gründsätzlich
298 Group(pl): Podstawowe
299 Requires: %{name} = %{version}
301 %description -n nss_nisplus
302 Glibc NSS (Name Service Switch) module for NIS+ databases acces.
307 ###### Unknown group!
308 Requires: %{name} = %{version}
311 %description memusage
329 --enable-add-ons=linuxthreads \
330 %{?kernel:--enable-kernel=%{kernel}} \
337 rm -rf $RPM_BUILD_ROOT
338 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man{3,8},var/log}
340 env LANGUAGE=C LC_ALL=C \
342 install_root=$RPM_BUILD_ROOT \
343 infodir=%{_infodir} \
346 env LANGUAGE=C LC_ALL=C \
347 %{__make} install-locales -C localedata \
348 install_root=$RPM_BUILD_ROOT
350 PICFILES="libc_pic.a libc.map
351 math/libm_pic.a libm.map
352 resolv/libresolv_pic.a"
354 install $PICFILES $RPM_BUILD_ROOT/%{_libdir}
355 install elf/soinit.os $RPM_BUILD_ROOT/%{_libdir}/soinit.o
356 install elf/sofini.os $RPM_BUILD_ROOT/%{_libdir}/sofini.o
358 mv -f $RPM_BUILD_ROOT/lib/libmemusage.so $RPM_BUILD_ROOT%{_libdir}
359 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so $RPM_BUILD_ROOT%{_libdir}
361 %{__make} -C linuxthreads/man
362 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
364 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
366 ln -sf ../../..%{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
367 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
368 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
369 ln -sf ../..%{_libdir}/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
371 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
373 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
374 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
375 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
376 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
377 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
380 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man8/
381 touch $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.{cache,conf}
383 :> $RPM_BUILD_ROOT/var/log/nscd
386 install -d documentation
388 cp linuxthreads/ChangeLog documentation/ChangeLog.threads
389 cp linuxthreads/Changes documentation/Changes.threads
390 cp linuxthreads/README documentation/README.threads
391 cp crypt/README.ufc-crypt documentation/
393 cp ChangeLog ChangeLog.8 documentation
395 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS documentation/*
397 # Collect locale files and mark them with %%lang()
399 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
401 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
402 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
403 echo "%lang($lang) $dir" >>glibc.lang
408 %post -p /sbin/ldconfig
409 %postun -p /sbin/ldconfig
412 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
415 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
418 /sbin/chkconfig --add nscd
419 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
420 if [ -f /var/lock/subsys/nscd ]; then
421 /etc/rc.d/init.d/nscd restart 1>&2
423 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
427 if [ "$1" = "0" ]; then
428 if [ -f /var/lock/subsys/nscd ]; then
429 /etc/rc.d/init.d/nscd stop 1>&2
431 /sbin/chkconfig --del nscd
435 rm -rf $RPM_BUILD_ROOT
438 %defattr(644,root,root,755)
439 %doc {README,NEWS,FAQ,BUGS}.gz
441 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nsswitch.conf
442 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ld.so.conf
443 %config %{_sysconfdir}/rpc
444 %ghost %{_sysconfdir}/ld.so.cache
446 %attr(755,root,root) /sbin/*
447 %attr(755,root,root) %{_bindir}/catchsegv
448 %attr(755,root,root) %{_bindir}/getent
449 %attr(755,root,root) %{_bindir}/glibcbug
450 %attr(755,root,root) %{_bindir}/ldd
451 %attr(755,root,root) %{_bindir}/lddlibc4
452 %attr(755,root,root) %{_bindir}/locale
453 %attr(755,root,root) %{_bindir}/rpcgen
454 %attr(755,root,root) %{_bindir}/tzselect
456 %attr(755,root,root) %{_sbindir}/rpcinfo
457 %attr(755,root,root) %{_sbindir}/zdump
458 %attr(755,root,root) %{_sbindir}/zic
460 %attr(755,root,root) /lib/ld-*
461 %attr(755,root,root) /lib/libdl*
462 %attr(755,root,root) /lib/libnsl*
463 %attr(755,root,root) /lib/lib[BScmprtu]*
465 %dir %{_datadir}/locale
466 %{_datadir}/locale/locale.alias
469 %dir %{_libdir}/locale
471 %{_mandir}/man8/ldconfig*
474 %defattr(644,root,root,755)
475 %attr(755,root,root) /lib/libnss_dns*.so*
478 %defattr(644,root,root,755)
479 %attr(755,root,root) /lib/libnss_files*.so*
482 %defattr(644,root,root,755)
483 %attr(755,root,root) /lib/libnss_compat*.so*
486 %defattr(644,root,root,755)
487 %attr(755,root,root) /lib/libnss_hesiod*.so*
490 %defattr(644,root,root,755)
491 %attr(755,root,root) /lib/libnss_nis.so.*
492 %attr(755,root,root) /lib/libnss_nis-*.so
494 %files -n nss_nisplus
495 %defattr(644,root,root,755)
496 %attr(755,root,root) /lib/libnss_nisplus*.so*
499 %defattr(644,root,root,755)
500 %attr(755,root,root) %{_bindir}/memusage*
503 %defattr(644,root,root,755)
504 %doc documentation/* {NOTES,PROJECTS}.gz
505 %attr(755,root,root) %{_bindir}/gencat
506 %attr(755,root,root) %{_bindir}/getconf
507 %attr(755,root,root) %{_bindir}/*prof*
508 %attr(755,root,root) %{_bindir}/*trace
515 %{_includedir}/netash
516 %{_includedir}/netatalk
517 %{_includedir}/netax25
518 %{_includedir}/neteconet
519 %{_includedir}/netinet
520 %{_includedir}/netipx
521 %{_includedir}/netpacket
522 %{_includedir}/netrom
523 %{_includedir}/netrose
525 %{_includedir}/protocols
527 %{_includedir}/rpcsvc
531 %{_infodir}/libc.inf*.gz
533 %attr(755,root,root) %{_libdir}/lib*.so
534 %attr(755,root,root) %{_libdir}/*crt*.o
535 %{_libdir}/libc_nonshared.a
540 %defattr(644,root,root,755)
541 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
542 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nscd.*
543 %attr(754,root,root) /etc/rc.d/init.d/nscd
544 %attr(755,root,root) %{_sbindir}/nscd*
545 %attr(640,root,root) /etc/logrotate.d/nscd
546 %attr(640,root,root) %ghost /var/log/nscd
548 %files -n localedb-src
549 %defattr(644,root,root,755)
550 %attr(755,root,root) %{_bindir}/localedef
554 %defattr(644,root,root,755)
555 %attr(755,root,root) %{_bindir}/iconv
556 %dir %{_libdir}/gconv
557 %{_libdir}/gconv/gconv-modules
558 %attr(755,root,root) %{_libdir}/gconv/*.so
561 %defattr(644,root,root,755)
562 %{_libdir}/libBrokenLocale.a
563 %{_libdir}/libbsd-compat.a
566 %{_libdir}/libcrypt.a
571 %{_libdir}/libmcheck.a
573 %{_libdir}/libpthread.a
574 %{_libdir}/libresolv.a
575 %{_libdir}/librpcsvc.a
580 %defattr(644,root,root,755)
584 %defattr(644,root,root,755)
585 %{_libdir}/lib*_pic.a