12 Source0: ftp://sourceware.cygnus.com/pub/glibc/%{name}-%{version}.tar.bz2
13 Source1: ftp://sourceware.cygnus.com/pub/glibc/%{name}-linuxthreads-%{version}.tar.bz2
14 Source2: http://www.ozemail.com.au/~geoffk/glibc-crypt/%{name}-crypt-2.1.1.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: Networking/Daemons
120 Group(pl): Sieciowe/Serwery
121 Prereq: /sbin/chkconfig
125 nscd caches name service lookups; it can dramatically improve performance
126 with NIS+, and may help with DNS as well.
128 You cannot use nscd with 2.0 kernels, due to bugs in the kernel-side thread
129 support. nscd happens to hit these bugs particularly hard.
131 %description -n nscd -l pl
132 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala drastycznie
133 poprawiæ szybko¶æ dzia³ania NIS+.
135 Nie jest mo¿liwe u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów
136 po stronie j±dra w ods³udze w±tków.
139 Summary: utmp and utmpx synchronizer for libc5 applications.
140 Summary(pl): Synchrnnizuje zapis do plików utmp i utmpx.
143 Prereq: /sbin/chkconfig
146 %description -n utmpd
147 utmpd is a utmp and utmpx synchronizer. Is only needed for libc5 based
148 program with utmp access.
150 %description -n utmpd -l pl
151 utmpd stara siê utrzymaæ tak± sam± zawarto¶æ plików
152 /var/run/utmp i /var/run/utmpx. Potrzebny jest tylko w przypadku korzystania
153 ze starszych programów (bazuj±cych na libc5).
156 Summary: Static libraries
157 Summary(pl): Biblioteki statyczne
158 Group: Development/Libraries
159 Group(pl): Programowanie/Biblioteki
160 Requires: %{name}-devel = %{version}
163 GNU libc-2.1 Static libraries
165 %description -l pl static
166 GNU libc-2.1 Static libraries
178 --enable-add-ons=crypt,linuxthreads \
185 rm -rf $RPM_BUILD_ROOT
186 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man3,var/{db,log}}
189 install_root=$RPM_BUILD_ROOT \
190 infodir=%{_infodir} \
193 make install-locales -C localedata \
194 install_root=$RPM_BUILD_ROOT
196 make -C linuxthreads/man
197 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
199 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
201 ln -sf ../../../etc/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
202 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
203 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
204 ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
206 rm -f $RPM_BUILD_ROOT/etc/localtime
208 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
209 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
210 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/nscd
211 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/utmpd
212 install %{SOURCE7} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
213 install nscd/nscd.conf $RPM_BUILD_ROOT/etc
214 install nss/nsswitch.conf $RPM_BUILD_ROOT/etc
216 install nss/db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
217 :> $RPM_BUILD_ROOT/var/log/nscd
219 cat << EOF > $RPM_BUILD_ROOT/usr/bin/create-db
221 /usr/bin/make -sC /var/db/
224 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
227 install -d documentation
229 cp linuxthreads/ChangeLog documentation/ChangeLog.threads
230 cp linuxthreads/Changes documentation/Changes.threads
231 cp linuxthreads/README documentation/README.threads
232 cp crypt/README documentation/README.crypt
234 cp ChangeLog ChangeLog.8 documentation
236 gzip -9fn README NEWS FAQ BUGS NOTES PROJECTS \
237 $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
238 documentation/* login/README.utmpd
240 strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
241 strip --strip-unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
242 $RPM_BUILD_ROOT/usr/lib/gconv/*.so
244 %post -p /sbin/ldconfig
245 %postun -p /sbin/ldconfig
248 /sbin/install-info %{_infodir}/libc.info.gz /etc/info-dir
251 if [ "$1" = 0 ]; then
252 /sbin/install-info --delete %{_infodir}/libc.info.gz /etc/info-dir
256 /sbin/chkconfig --add nscd
257 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
258 if [ -f /var/lock/subsys/nscd ]; then
259 /etc/rc.d/init.d/nscd restart 1>&2
261 echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
265 if [ "$1" = "0" ]; then
266 /sbin/chkconfig --del nscd
267 /etc/rc.d/init.d/nscd stop 1>&2
271 /sbin/chkconfig --add utmpd
272 if [ -f /var/lock/subsys/utmpd ]; then
273 /etc/rc.d/init.d/utmpd restart 1>&2
275 echo "Run \"/etc/rc.d/init.d/utmpd start\" to start utmpd daemon." 1>&2
279 if [ "$1" = "0" ]; then
280 /sbin/chkconfig --del utmpd
281 /etc/rc.d/init.d/utmpd stop 1>&2
285 rm -rf $RPM_BUILD_ROOT
288 %defattr(644,root,root,755)
289 %doc {README,NEWS,FAQ,BUGS}.gz
291 %config(noreplace) %verify(not mtime md5 size) /etc/nsswitch.conf
294 %attr(755,root,root) /sbin/*
295 %attr(755,root,root) %{_bindir}/*
296 %attr(755,root,root) %{_sbindir}/rpcinfo
297 %attr(755,root,root) %{_sbindir}/zdump
298 %attr(755,root,root) %{_sbindir}/zic
300 %attr(755,root,root) /lib/ld-*
301 %attr(755,root,root) /lib/lib*
303 %dir %{_libdir}/gconv
304 %{_libdir}/gconv/gconv-modules
310 %config /var/db/Makefile
313 %defattr(644,root,root,755)
314 %doc documentation/* {NOTES,PROJECTS}.gz
322 %{_includedir}/netash
323 %{_includedir}/netatalk
324 %{_includedir}/netax25
325 %{_includedir}/neteconet
326 %{_includedir}/netinet
327 %{_includedir}/netipx
328 %{_includedir}/netpacket
329 %{_includedir}/netrom
330 %{_includedir}/netrose
332 %{_includedir}/protocols
334 %{_includedir}/rpcsvc
338 %{_infodir}/libc.inf*.gz
340 %attr(755,root,root) %{_libdir}/lib*.so
341 %attr(755,root,root) %{_libdir}/*.o
342 %attr(755,root,root) %{_libdir}/gconv/*.so
347 %defattr(644,root,root,755)
348 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
349 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
350 %attr(755,root,root) /etc/rc.d/init.d/nscd
351 %attr(755,root,root) %{_sbindir}/nscd
352 %attr(640,root,root) /etc/logrotate.d/nscd
353 %attr(640,root,root) %ghost /var/log/nscd
356 %defattr(644,root,root,755)
357 %doc login/README.utmpd.gz
358 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/utmpd
359 %attr(755,root,root) /etc/rc.d/init.d/utmpd
360 %attr(755,root,root) %{_sbindir}/utmpd
363 %defattr(644,root,root,755)