13 Source0: ftp://sourceware.cygnus.com/pub/glibc/%{name}-%{version}.tar.bz2
14 Source1: ftp://sourceware.cygnus.com/pub/glibc/%{name}-linuxthreads-%{version}.tar.gz
15 Source2: http://www.ozemail.com.au/~geoffk/glibc-crypt/%{name}-crypt-2.1.1.tar.gz
18 Source5: utmpd.sysconfig
19 Source6: nscd.sysconfig
20 Source7: nscd.logrotate
21 Patch0: glibc-info.patch
22 Patch1: glibc-versions.awk_fix.patch
23 Patch2: glibc-pld.patch
24 Patch3: glibc-crypt-blowfish.patch
25 Patch4: glibc-string2-pointer-arith.patch
26 Patch5: glibc-db2-alpha-mutex.patch
27 Patch6: glibc-linuxthreads-lock.patch
28 Patch7: glibc-pthread_create-manpage.patch
29 Patch8: glibc-sparc-linux-chown.patch
30 Patch9: glibc-ctype.patch
31 URL: http://www.gnu.org/software/libc/
34 Obsoletes: %{name}-profile
35 Obsoletes: %{name}-debug
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 Contains the standard libraries that are used by multiple programs on
41 the system. In order to save disk space and memory, as well as to ease
42 upgrades, common system code is kept in one place and shared between
43 programs. This package contains the most important sets of shared
44 libraries, the standard C library and the standard math library.
45 Without these, a Linux system will not function. It also contains
46 national language (locale) support and timezone databases.
49 Enthält die Standard-Libraries, die von verschiedenen Programmen im
50 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
51 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
52 einer einzigen Stelle gespeichert und wird von den Programmen
53 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
54 shared Libraries, die Standard-C-Library und die
55 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
56 Ferner enthält es den Support für die verschiedenen Sprachgregionen
57 (locale) und die Zeitzonen-Datenbank.
60 Contient les bibliothèques standards utilisées par de nombreux
61 programmes du système. Afin d'économiser l'espace disque et mémoire,
62 et de faciliter les mises à jour, le code commun au système est mis à
63 un endroit et partagé entre les programmes. Ce paquetage contient les
64 bibliothèques partagées les plus importantes, la bibliothèque standard
65 du C et la bibliothèque mathématique standard. Sans celles-ci, un
66 système Linux ne peut fonctionner. Il contient aussi la gestion des
67 langues nationales (locales) et les bases de données des zones
71 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
72 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
73 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
74 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
75 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
76 standardowych wspó³dzielonych (dynamicznych) bibliotek C i
77 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
78 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
79 jêzyków (locale) oraz definicje stref czasowych.
82 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
83 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
84 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
85 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
86 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
87 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
88 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
91 Summary: Additional libraries required to compile
92 Summary(de): Weitere Libraries zum Kompilieren
93 Summary(fr): Librairies supplémentaires nécessaires à la compilation.
94 Summary(pl): Dodatkowe biblioteki wymagane podczas kompilacji
95 Summary(tr): Geliþtirme için gerekli diðer kitaplýklar
96 Group: Development/Libraries
97 Group(fr): Development/Librairies
98 Group(pl): Programowanie/Biblioteki
99 Requires: %{name} = %{version}
102 To develop programs which use the standard C libraries (which nearly
103 all programs do), the system needs to have these standard header files
104 and object files available for creating the executables.
106 %description -l de devel
107 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
108 verwenden (also fast alle), benötigt das System diese Standard-Header-
109 und Objektdateien zum Erstellen der ausführbaren Programme.
111 %description -l fr devel
112 Pour développer des programmes utilisant les bibliothèques standard du
113 C (ce que presque tous les programmes font), le système doit posséder
114 ces fichiers en-têtes et objets standards pour créer les exécutables.
116 %description -l pl devel
117 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
118 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
119 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
120 wykonywalnych i innych bibliotek.
122 %description -l tr devel
123 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
124 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
128 Summary: Name Service Caching Daemon
129 Summary(pl): Name Service Caching Daemon
130 Group: Networking/Daemons
131 Group(pl): Sieciowe/Serwery
132 Prereq: /sbin/chkconfig
133 Requires: rc-scripts >= 0.2.0
136 nscd caches name service lookups; it can dramatically improve
137 performance with NIS+, and may help with DNS as well. You cannot use
138 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
139 nscd happens to hit these bugs particularly hard.
141 %description -n nscd -l pl
142 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
143 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
144 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów po stronie j±dra w
148 Summary: utmp and utmpx synchronizer for libc5 applications.
149 Summary(pl): Synchrnnizuje zapis do plików utmp i utmpx.
152 Prereq: /sbin/chkconfig
153 Requires: rc-scripts >= 0.2.0
155 %description -n utmpd
156 utmpd is a utmp and utmpx synchronizer. Is only needed for libc5 based
157 program with utmp access.
159 %description -n utmpd -l pl
160 utmpd stara siê utrzymaæ tak± sam± zawarto¶æ plików /var/run/utmp i
161 /var/run/utmpx. Potrzebny jest tylko w przypadku korzystania ze
162 starszych programów (bazuj±cych na libc5).
164 %package -n localedb-src
165 Summary: Souce code locale database
166 Summary(pl): Kod ¬ród³owy bazy locale
170 %description -n localedb-src
171 This add-on package contains the data needed to build the locale data
172 files to use the internationalization features of the GNU libc. Glibc
173 package contains standard set of locale binary database and You need
174 this package if want build some non standard locale database.
176 %description -l pl -n localedb-src
177 Pakiet ten kod ¼ród³owy baz locale który jest potrzebny do zbudowania
178 binarnej wersji baz locale potrzebnej do poprawnego wspierania ró¿nych
179 jêzyków przez glibc. Pakiet glibc zawira binarn± wersjê standardowych
180 baz locale i ten pakiet jest potrzebny tylko w sytuacji kiedy potrzeba
181 wygenerowaæ jak±¶ niestandardow± bazê.
184 Summary: Convert encoding of given files from one encoding to another
185 Summary(pl): Program do konwersji plików tekstowych z jednego enkodingu w inny
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(fr): Development/Librairies
208 Group(pl): Programowanie/Biblioteki
209 Requires: %{name}-devel = %{version}
212 GNU libc static libraries.
214 %description -l pl static
215 Biblioteki statyczne GNU libc.
218 Summary: glibc with profiling support
219 Summary(de): glibc mit Profil-Unterstützung
220 Summary(fr): glibc avec support pour profiling
221 Summary(tr): Ölçüm desteði olan glibc
222 Group: Development/Libraries/Libc
223 Group(pl): Programowanie/Biblioteki/Libc
224 Obsoletes: libc-profile
225 Requires: %{name}-devel = %{version}
228 When programs are being profiled used gprof, they must use these
229 libraries instead of the standard C libraries for gprof to be able to
230 profile them correctly.
232 %description -l de profile
233 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
234 Libraries anstelle der üblichen C-Libraries verwendet werden.
236 %description -l tr profile
237 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
238 kitaplýðý kullanmak zorundadýrlar.
241 Summary: glibc PIC archive
242 Group: Development/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) composed
248 of individual shared objects. This is used for creating a library which
249 is a smaller subset of the standard libc shared library.
266 --enable-add-ons=crypt,linuxthreads \
272 rm -rf $RPM_BUILD_ROOT
273 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man3,var/{db,log}}
276 install_root=$RPM_BUILD_ROOT \
277 infodir=%{_infodir} \
280 %{__make} install-locales -C localedata \
281 install_root=$RPM_BUILD_ROOT
283 PICFILES="libc_pic.a libc.map
284 math/libm_pic.a libm.map
285 resolv/libresolv_pic.a"
287 install $PICFILES $RPM_BUILD_ROOT/%{_libdir}
288 install elf/soinit.os $RPM_BUILD_ROOT/%{_libdir}/soinit.o
289 install elf/sofini.os $RPM_BUILD_ROOT/%{_libdir}/sofini.o
291 %{__make} -C linuxthreads/man
292 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
294 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
296 ln -sf ../../..%{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
297 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
298 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
299 ln -sf ../..%{_libdir}/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
301 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
303 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
304 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
305 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/nscd
306 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/utmpd
307 install %{SOURCE7} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
308 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
309 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
311 install nss/db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
312 :> $RPM_BUILD_ROOT/var/log/nscd
314 cat << EOF > $RPM_BUILD_ROOT%{_bindir}/create-db
316 /usr/bin/make -sC /var/db/
319 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
322 install -d documentation
324 cp linuxthreads/ChangeLog documentation/ChangeLog.threads
325 cp linuxthreads/Changes documentation/Changes.threads
326 cp linuxthreads/README documentation/README.threads
327 cp crypt/README documentation/README.crypt
329 cp ChangeLog ChangeLog.8 documentation
331 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS \
332 $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
333 documentation/* login/README.utmpd
335 strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
336 strip --strip-unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
337 $RPM_BUILD_ROOT%{_libdir}/gconv/*.so
339 # Collect locale files and mark them with %%lang()
341 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* ; do
343 lang=`echo $i | sed -e 's/.*locale\///' -e 's/^\(..\).*/\1/'`
344 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
345 echo "%lang($lang) $dir" >>glibc.lang
349 %post -p /sbin/ldconfig
350 %postun -p /sbin/ldconfig
353 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
356 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
359 /sbin/chkconfig --add nscd
360 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
361 if [ -f /var/lock/subsys/nscd ]; then
362 /etc/rc.d/init.d/nscd restart 1>&2
364 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
368 if [ "$1" = "0" ]; then
369 if [ -f /var/lock/subsys/nscd ]; then
370 /etc/rc.d/init.d/nscd stop 1>&2
372 /sbin/chkconfig --del nscd
376 /sbin/chkconfig --add utmpd
377 if [ -f /var/lock/subsys/utmpd ]; then
378 /etc/rc.d/init.d/utmpd restart 1>&2
380 echo "Run \"/etc/rc.d/init.d/utmpd start\" to start utmpd daemon." 1>&2
384 if [ "$1" = "0" ]; then
385 if [ -f /var/lock/subsys/utmpd ]; then
386 /etc/rc.d/init.d/utmpd stop 1>&2
388 /sbin/chkconfig --del utmpd
392 rm -rf $RPM_BUILD_ROOT
395 %defattr(644,root,root,755)
396 %doc {README,NEWS,FAQ,BUGS}.gz
398 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nsswitch.conf
399 %config %{_sysconfdir}/rpc
401 %attr(755,root,root) /sbin/*
402 %attr(755,root,root) %{_bindir}/catchsegv
403 %attr(755,root,root) %{_bindir}/create-db
404 %attr(755,root,root) %{_bindir}/db_archive
405 %attr(755,root,root) %{_bindir}/db_checkpoint
406 %attr(755,root,root) %{_bindir}/db_deadlock
407 %attr(755,root,root) %{_bindir}/db_dump
408 %attr(755,root,root) %{_bindir}/db_dump185
409 %attr(755,root,root) %{_bindir}/db_load
410 %attr(755,root,root) %{_bindir}/db_printlog
411 %attr(755,root,root) %{_bindir}/db_recover
412 %attr(755,root,root) %{_bindir}/db_stat
413 %attr(755,root,root) %{_bindir}/getent
414 %attr(755,root,root) %{_bindir}/glibcbug
415 %attr(755,root,root) %{_bindir}/ldd
416 %attr(755,root,root) %{_bindir}/lddlibc4
417 %attr(755,root,root) %{_bindir}/locale
418 %attr(755,root,root) %{_bindir}/makedb
419 %attr(755,root,root) %{_bindir}/rpcgen
420 %attr(755,root,root) %{_bindir}/tzselect
421 %attr(755,root,root) %{_bindir}/update-db
423 %attr(755,root,root) %{_sbindir}/rpcinfo
424 %attr(755,root,root) %{_sbindir}/zdump
425 %attr(755,root,root) %{_sbindir}/zic
427 %attr(755,root,root) /lib/ld-*
428 %attr(755,root,root) /lib/lib*
430 %dir %{_datadir}/locale
431 %{_datadir}/locale/locale.alias
434 %config /var/db/Makefile
437 %defattr(644,root,root,755)
438 %doc documentation/* {NOTES,PROJECTS}.gz
439 %attr(755,root,root) %{_bindir}/gencat
440 %attr(755,root,root) %{_bindir}/getconf
441 %attr(755,root,root) %{_bindir}/mtrace
442 %attr(755,root,root) %{_bindir}/sprof
450 %{_includedir}/netash
451 %{_includedir}/netatalk
452 %{_includedir}/netax25
453 %{_includedir}/neteconet
454 %{_includedir}/netinet
455 %{_includedir}/netipx
456 %{_includedir}/netpacket
457 %{_includedir}/netrom
458 %{_includedir}/netrose
460 %{_includedir}/protocols
462 %{_includedir}/rpcsvc
466 %{_infodir}/libc.inf*.gz
468 %attr(755,root,root) %{_libdir}/lib*.so
469 %attr(755,root,root) %{_libdir}/*.o
470 %{_libdir}/libc_nonshared.a
475 %defattr(644,root,root,755)
476 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
477 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nscd.*
478 %attr(754,root,root) /etc/rc.d/init.d/nscd
479 %attr(755,root,root) %{_sbindir}/nscd
480 %attr(640,root,root) /etc/logrotate.d/nscd
481 %attr(640,root,root) %ghost /var/log/nscd
484 %defattr(644,root,root,755)
485 %doc login/README.utmpd.gz
486 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/utmpd
487 %attr(754,root,root) /etc/rc.d/init.d/utmpd
488 %attr(755,root,root) %{_sbindir}/utmpd
490 %files -n localedb-src
491 %defattr(644,root,root,755)
492 %attr(755,root,root) %{_bindir}/localedef
496 %defattr(644,root,root,755)
497 %attr(755,root,root) %{_bindir}/iconv
498 %dir %{_libdir}/gconv
499 %{_libdir}/gconv/gconv-modules
500 %attr(755,root,root) %{_libdir}/gconv/*.so
503 %defattr(644,root,root,755)
504 %{_libdir}/libBrokenLocale.a
505 %{_libdir}/libbsd-compat.a
508 %{_libdir}/libcrypt.a
515 %{_libdir}/libmcheck.a
518 %{_libdir}/libposix.a
519 %{_libdir}/libpthread.a
520 %{_libdir}/libresolv.a
521 %{_libdir}/librpcsvc.a
526 %defattr(644,root,root,755)
530 %defattr(644,root,root,755)
531 %{_libdir}/lib*_pic.a