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