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-devel
35 BuildRequires: libpng-devel
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 %{__make} -C linuxthreads/man
371 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
373 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
375 ln -sf ../../..%{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
376 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
377 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
378 ln -sf ../..%{_libdir}/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
380 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
382 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
383 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/nscd
384 install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
385 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
386 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
389 install %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man8/
390 touch $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.{cache,conf}
392 :> $RPM_BUILD_ROOT/var/log/nscd
395 install -d documentation
397 cp linuxthreads/ChangeLog documentation/ChangeLog.threads
398 cp linuxthreads/Changes documentation/Changes.threads
399 cp linuxthreads/README documentation/README.threads
400 cp crypt/README.ufc-crypt documentation/
402 cp ChangeLog ChangeLog.8 documentation
404 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS documentation/*
406 # Collect locale files and mark them with %%lang()
408 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
410 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
411 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
412 echo "%lang($lang) $dir" >>glibc.lang
417 %post -p /sbin/ldconfig
418 %postun -p /sbin/ldconfig
420 %post memusage -p /sbin/ldconfig
421 %postun memusage -p /sbin/ldconfig
424 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
427 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
430 /sbin/chkconfig --add nscd
431 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
432 if [ -f /var/lock/subsys/nscd ]; then
433 /etc/rc.d/init.d/nscd restart 1>&2
435 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
439 if [ "$1" = "0" ]; then
440 if [ -f /var/lock/subsys/nscd ]; then
441 /etc/rc.d/init.d/nscd stop 1>&2
443 /sbin/chkconfig --del nscd
447 rm -rf $RPM_BUILD_ROOT
450 %defattr(644,root,root,755)
451 %doc {README,NEWS,FAQ,BUGS}.gz
453 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nsswitch.conf
454 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ld.so.conf
455 %config %{_sysconfdir}/rpc
456 %ghost %{_sysconfdir}/ld.so.cache
458 %attr(755,root,root) /sbin/*
459 %attr(755,root,root) %{_bindir}/catchsegv
460 %attr(755,root,root) %{_bindir}/getent
461 %attr(755,root,root) %{_bindir}/glibcbug
462 %attr(755,root,root) %{_bindir}/ldd
464 %attr(755,root,root) %{_bindir}/lddlibc4
466 %attr(755,root,root) %{_bindir}/locale
467 %attr(755,root,root) %{_bindir}/rpcgen
468 %attr(755,root,root) %{_bindir}/tzselect
470 %attr(755,root,root) %{_sbindir}/rpcinfo
471 %attr(755,root,root) %{_sbindir}/zdump
472 %attr(755,root,root) %{_sbindir}/zic
474 %attr(755,root,root) /lib/ld-*
475 %attr(755,root,root) /lib/libdl*
476 %attr(755,root,root) /lib/libnsl*
477 %attr(755,root,root) /lib/lib[BScmprtu]*
479 %dir %{_datadir}/locale
480 %{_datadir}/locale/locale.alias
483 %dir %{_libdir}/locale
485 %{_mandir}/man8/ldconfig*
488 %defattr(644,root,root,755)
489 %attr(755,root,root) /lib/libnss_dns*.so*
492 %defattr(644,root,root,755)
493 %attr(755,root,root) /lib/libnss_files*.so*
496 %defattr(644,root,root,755)
497 %attr(755,root,root) /lib/libnss_compat*.so*
500 %defattr(644,root,root,755)
501 %attr(755,root,root) /lib/libnss_hesiod*.so*
504 %defattr(644,root,root,755)
505 %attr(755,root,root) /lib/libnss_nis.so.*
506 %attr(755,root,root) /lib/libnss_nis-*.so
508 %files -n nss_nisplus
509 %defattr(644,root,root,755)
510 %attr(755,root,root) /lib/libnss_nisplus*.so*
513 %defattr(644,root,root,755)
514 %attr(755,root,root) %{_bindir}/memusage*
515 %attr(755,root,root) /lib/libmemusage*
518 %defattr(644,root,root,755)
519 %doc documentation/* {NOTES,PROJECTS}.gz
520 %attr(755,root,root) %{_bindir}/gencat
521 %attr(755,root,root) %{_bindir}/getconf
522 %attr(755,root,root) %{_bindir}/*prof*
523 %attr(755,root,root) %{_bindir}/*trace
527 %{_infodir}/libc.info*
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