12 Source0: ftp://sourceware.cygnus.com/pub/glibc/%{name}-%{version}.tar.gz
13 Source1: ftp://sourceware.cygnus.com/pub/glibc/%{name}-linuxthreads-%{version}.tar.gz
14 Source2: http://www.ozemail.com.au/~geoffk/glibc-crypt/%{name}-crypt-%{version}.tar.gz
17 Source5: utmpd.sysconfig
18 Source6: nscd.sysconfig
19 Source7: nscd.logrotate
20 Patch0: glibc-info.patch
21 Patch1: glibc-paths.patch
22 Patch2: glibc-versions.awk_fix.patch
23 Patch3: glibc-pld.patch
24 Patch4: glibc-getaddrinfo.patch
25 URL: http://www.gnu.org/software/libc/
28 Obsoletes: %{name}-profile
29 Obsoletes: %{name}-debug
31 BuildRoot: /tmp/%{name}-%{version}-root
34 Contains the standard libraries that are used by multiple programs on the
35 system. In order to save disk space and memory, as well as to ease upgrades,
36 common system code is kept in one place and shared between programs. This
37 package contains the most important sets of shared libraries, the standard C
38 library and the standard math library. Without these, a Linux system will
39 not function. It also contains national language (locale) support and
43 Enthält die Standard-Libraries, die von verschiedenen Programmen im System
44 benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen und zur
45 Vereinfachung von Upgrades ist der gemeinsame Systemcode an einer einzigen
46 Stelle gespeichert und wird von den Programmen gemeinsam genutzt. Dieses
47 Paket enthält die wichtigsten Sets der shared Libraries, die
48 Standard-C-Library und die Standard-Math-Library, ohne die das Linux-System
49 nicht funktioniert. Ferner enthält es den Support für die verschiedenen
50 Sprachgregionen (locale) und die Zeitzonen-Datenbank.
53 Contient les bibliothèques standards utilisées par de nombreux programmes
54 du système. Afin d'économiser l'espace disque et mémoire, et de faciliter
55 les mises à jour, le code commun au système est mis à un endroit et partagé
56 entre les programmes. Ce paquetage contient les bibliothèques partagées les
57 plus importantes, la bibliothèque standard du C et la bibliothèque
58 mathématique standard. Sans celles-ci, un système Linux ne peut fonctionner.
59 Il contient aussi la gestion des langues nationales (locales) et les bases
60 de données des zones horaires.
63 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne programy
64 w Twoim systemie. U¿ywanie przez programy bibliotek z tego pakietu oszczêdza
65 miejsce na dysku i pamiêæ. Wiekszo¶æ kodu systemowego jest usytuowane w
66 jednym miejscu i dzielone miêdzy wieloma programami. Pakiet ten zawiera
67 bardzo wa¿ny zbiór bibliotek standardowych wspó³dzielonych (dynamicznych)
68 bibliotek C i matematycznych. Bez glibc system Linux nie jest w stanie
69 funkcjonowaæ. Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla
70 wielu jêzyków (locale) oraz definicje stref czasowych.
73 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir. Disk
74 alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme iþlemlerini
75 kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde tutulup programlar
76 arasýnda paylaþtýrýlýr. Bu paket en önemli ortak kitaplýklarý, standart
77 C kitaplýðýný ve standart matematik kitaplýðýný içerir. Bu kitaplýklar olmadan
78 Linux sistemi çalýþmayacaktýr. Yerel dil desteði ve zaman dilimi veri tabaný
79 da bu pakette yer alýr.
82 Summary: Additional libraries required to compile
83 Summary(de): Weitere Libraries zum Kompilieren
84 Summary(fr): Librairies supplémentaires nécessaires à la compilation.
85 Summary(pl): Dodatkowe biblioteki wymagane podczas kompilacji
86 Summary(tr): Geliþtirme için gerekli diðer kitaplýklar
87 Group: Development/Libraries
88 Group(pl): Programowanie/Biblioteki
89 Prereq: /sbin/install-info
90 Requires: %{name} = %{version}
93 To develop programs which use the standard C libraries (which nearly all
94 programs do), the system needs to have these standard header files and object
95 files available for creating the executables.
97 %description -l de devel
98 Bei der Entwicklung von Programmen, die die Standard-C-Libraries verwenden
99 (also fast alle), benötigt das System diese Standard-Header- und Objektdateien
100 zum Erstellen der ausführbaren Programme.
102 %description -l fr devel
103 Pour développer des programmes utilisant les bibliothèques standard du C
104 (ce que presque tous les programmes font), le système doit posséder ces
105 fichiers en-têtes et objets standards pour créer les exécutables.
107 %description -l pl devel
108 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów korzystaj±cych
109 ze standardowej biblioteki C. Znajduj± siê tutaj pliki nag³ówkowe oraz pliki
110 objektowe, niezbêdne do kompilacji programów wykonywalnych i innych bibliotek.
112 %description -l tr devel
113 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
114 geliþtirmek için gereken standart baþlýk dosyalarý ve statik kitaplýklar.
117 Summary: Name Service Caching Daemon
118 Summary(pl): Name Service Caching Daemon
119 Group: Networnikng/Daemons
120 Group: Sieciowe/Serwery
121 Prereq: /sbin/chkconfig
124 nscd caches name service lookups; it can dramatically improve performance
125 with NIS+, and may help with DNS as well.
127 You cannot use nscd with 2.0 kernels, due to bugs in the kernel-side thread
128 support. nscd happens to hit these bugs particularly hard.
130 %description -n nscd -l pl
131 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala drastycznie
132 poprawiæ szybko¶æ dzia³ania NIS+.
134 Nie jest mo¿liwe u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów
135 po stronie j±dra w ods³udze w±tków.
138 Summary: utmp and utmpx synchronizer for libc5 applications.
139 Summary(pl): Synchrnnizuje zapis do plików utmp i utmpx.
142 Prereq: /sbin/chkconfig
144 %description -n utmpd
145 utmpd is a utmp and utmpx synchronizer. Is only needed for libc5 based
146 program with utmp access.
148 %description -n utmpd -l pl
149 utmpd stara siê utrzymaæ tak± sam± zawarto¶æ plików
150 /var/run/utmp i /var/run/utmpx. Potrzebny jest tylko w przypadku korzystania
151 ze starszych programów (bazuj±cych na libc5).
154 Summary: Static libraries
155 Summary(pl): Biblioteki statyczne
156 Group: Development/Libraries
157 Group(pl): Programowanie/Biblioteki
158 Requires: %{name}-devel = %{version}
161 GNU libc-2.1 Static libraries
163 %description -l pl static
164 GNU libc-2.1 Static libraries
176 --enable-add-ons=crypt,linuxthreads \
179 --infodir=%{_infodir} \
184 rm -rf $RPM_BUILD_ROOT
185 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig},%{_mandir}/man3,var/db}
188 install_root=$RPM_BUILD_ROOT \
189 infodir=%{_infodir} \
192 make install-locales -C localedata \
193 install_root=$RPM_BUILD_ROOT
195 make -C linuxthreads/man
196 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
198 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
200 ln -sf ../../../etc/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
201 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
202 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
203 ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
205 rm -f $RPM_BUILD_ROOT/etc/localtime
207 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
208 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
209 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/nscd
210 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/utmpd
211 install %{SOURCE7} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
212 install nscd/nscd.conf $RPM_BUILD_ROOT/etc
213 install nss/nsswitch.conf $RPM_BUILD_ROOT/etc
215 install nss/db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
216 :> $RPM_BUILD_ROOT/var/log/nscd
218 cat << EOF > $RPM_BUILD_ROOT/usr/bin/create-db
220 /usr/bin/make -sC /var/db/
223 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
226 install -d documentation
228 cp linuxthreads/ChangeLog documentation/ChangeLog.threads
229 cp linuxthreads/Changes documentation/Changes.threads
230 cp linuxthreads/README documentation/README.threads
231 cp crypt/README documentation/README.crypt
233 cp ChangeLog ChangeLog.8 documentation
235 gzip -9fn README NEWS FAQ BUGS NOTES PROJECTS \
236 $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
237 documentation/* login/README.utmpd
239 strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
240 strip --strip-unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
241 $RPM_BUILD_ROOT/usr/lib/gconv/*.so
243 %post -p /sbin/ldconfig
244 %postun -p /sbin/ldconfig
247 /sbin/install-info %{_infodir}/libc.info.gz /etc/info-dir
250 if [ "$1" = 0 ]; then
251 /sbin/install-info --delete %{_infodir}/libc.info.gz /etc/info-dir
255 /sbin/chkconfig --add nscd
256 touch /var/log/nscd && chmod 640 root.root /var/log/nscd
257 if [ -f /var/lock/subsys/nscd ]; then
258 /etc/rc.d/init.d/nscd restart 1>&2
260 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
264 if [ "$1" = "0" ]; then
265 /sbin/chkconfig --del nscd
266 /etc/rc.d/init.d/nscd stop 1>&2
270 /sbin/chkconfig --add utmpd
271 if [ -f /var/lock/subsys/utmpd ]; then
272 /etc/rc.d/init.d/utmpd restart 1>&2
274 echo "Run \"/etc/rc.d/init.d/utmpd start\" to start utmpd daemon." 1>&2
278 if [ "$1" = "0" ]; then
279 /sbin/chkconfig --del utmpd
280 /etc/rc.d/init.d/utmpd stop 1>&2
284 rm -rf $RPM_BUILD_ROOT
287 %defattr(644,root,root,755)
288 %doc {README,NEWS,FAQ,BUGS}.gz
290 %config(noreplace) %verify(not mtime md5 size) /etc/nsswitch.conf
293 %attr(755,root,root) /sbin/*
294 %attr(755,root,root) %{_bindir}/*
295 %attr(755,root,root) %{_sbindir}/rpcinfo
296 %attr(755,root,root) %{_sbindir}/zdump
297 %attr(755,root,root) %{_sbindir}/zic
299 %attr(755,root,root) /lib/ld-*
300 %attr(755,root,root) /lib/lib*
302 %dir %{_libdir}/gconv
303 %{_libdir}/gconv/gconv-modules
309 %config /var/db/Makefile
312 %defattr(644,root,root,755)
313 %doc documentation/* {NOTES,PROJECTS}.gz
321 %{_includedir}/netash
322 %{_includedir}/netatalk
323 %{_includedir}/netax25
324 %{_includedir}/neteconet
325 %{_includedir}/netinet
326 %{_includedir}/netipx
327 %{_includedir}/netpacket
328 %{_includedir}/netrom
329 %{_includedir}/netrose
331 %{_includedir}/protocols
333 %{_includedir}/rpcsvc
337 %{_infodir}/libc.inf*.gz
339 %attr(755,root,root) %{_libdir}/lib*.so
340 %attr(755,root,root) %{_libdir}/*.o
341 %attr(755,root,root) %{_libdir}/gconv/*.so
346 %defattr(644,root,root,755)
347 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
348 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
349 %attr(755,root,root) /etc/rc.d/init.d/nscd
350 %attr(755,root,root) %{_sbindir}/nscd
351 %attr(640,root,root) /etc/logrotate.d/nscd
352 %attr(640,root,root) %ghost /var/log/nscd
355 %defattr(644,root,root,755)
356 %doc login/README.utmpd.gz
357 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/utmpd
358 %attr(755,root,root) /etc/rc.d/init.d/utmpd
359 %attr(755,root,root) %{_sbindir}/utmpd
362 %defattr(644,root,root,755)