]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- updated to 2.1.3
[packages/glibc.git] / glibc.spec
1 Summary:        GNU libc
2 Summary(de):    GNU libc
3 Summary(fr):    GNU libc
4 Summary(pl):    GNU libc
5 Summary(tr):    GNU libc
6 name:           glibc
7 Version:        2.1.3
8 Release:        1
9 License:        LGPL
10 Group:          Libraries
11 Group(pl):      Biblioteki
12 Source0:        ftp://sourceware.cygnus.com/pub/glibc/%{name}-%{version}.tar.bz2
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-2.1.1.tar.gz
15 Source3:        utmpd.init
16 Source4:        nscd.init
17 Source5:        utmpd.sysconfig
18 Source6:        nscd.sysconfig
19 Source7:        nscd.logrotate
20 Patch0:         glibc-info.patch
21 Patch1:         glibc-versions.awk_fix.patch
22 Patch2:         glibc-pld.patch
23 Patch3:         glibc-crypt-blowfish.patch
24 Patch4:         glibc-string2-pointer-arith.patch
25 Patch5:         glibc-db2-alpha-mutex.patch
26 Patch6:         glibc-linuxthreads-lock.patch
27 Patch7:         glibc-pthread_create-manpage.patch
28 Patch8:         glibc-sparc-linux-chown.patch
29 Patch9:         glibc-ctype.patch
30 URL:            http://www.gnu.org/software/libc/
31 BuildRequires:  perl
32 Provides:       ld.so.2
33 Obsoletes:      %{name}-profile
34 Obsoletes:      %{name}-debug
35 Autoreq:        false
36 BuildRoot:      /tmp/%{name}-%{version}-root
37
38 %description
39 Contains the standard libraries that are used by multiple programs on the
40 system. In order to save disk space and memory, as well as to ease
41 upgrades, common system code is kept in one place and shared between
42 programs. This package contains the most important sets of shared
43 libraries, the standard C library and the standard math library. Without
44 these, a Linux system will not function. It also contains national language
45 (locale) support and timezone databases.
46
47 %description -l de
48 Enthält die Standard-Libraries, die von verschiedenen Programmen im System
49 benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen und zur
50 Vereinfachung von Upgrades ist der gemeinsame Systemcode an einer einzigen
51 Stelle gespeichert und wird von den Programmen gemeinsam genutzt. Dieses
52 Paket enthält die wichtigsten Sets der shared Libraries, die
53 Standard-C-Library und die Standard-Math-Library, ohne die das Linux-System
54 nicht funktioniert. Ferner enthält es den Support für die verschiedenen
55 Sprachgregionen (locale) und die Zeitzonen-Datenbank.
56
57 %description -l fr
58 Contient les bibliothèques standards utilisées par de nombreux programmes
59 du système. Afin d'économiser l'espace disque et mémoire, et de faciliter
60 les mises à jour, le code commun au système est mis à un endroit et partagé
61 entre les programmes. Ce paquetage contient les bibliothèques partagées les
62 plus importantes, la bibliothèque standard du C et la bibliothèque
63 mathématique standard. Sans celles-ci, un système Linux ne peut
64 fonctionner. Il contient aussi la gestion des langues nationales (locales)
65 et les bases de données des zones horaires.
66
67 %description -l pl
68 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne programy
69 w Twoim systemie. U¿ywanie przez programy bibliotek z tego pakietu
70 oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu systemowego jest
71 usytuowane w jednym miejscu i dzielone miêdzy wieloma programami. Pakiet
72 ten zawiera bardzo wa¿ny zbiór bibliotek standardowych wspó³dzielonych
73 (dynamicznych) bibliotek C i matematycznych. Bez glibc system Linux nie
74 jest w stanie funkcjonowaæ. Znajduj± siê tutaj równie¿ definicje ró¿nych
75 informacji dla wielu jêzyków (locale) oraz definicje stref czasowych.
76
77 %description -l tr
78 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir. Disk
79 alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme iþlemlerini
80 kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde tutulup programlar
81 arasýnda paylaþtýrýlýr. Bu paket en önemli ortak kitaplýklarý, standart C
82 kitaplýðýný ve standart matematik kitaplýðýný içerir. Bu kitaplýklar
83 olmadan Linux sistemi çalýþmayacaktýr. Yerel dil desteði ve zaman dilimi
84 veri tabaný da bu pakette yer alýr.
85
86 %package devel
87 Summary:        Additional libraries required to compile
88 Summary(de):    Weitere Libraries zum Kompilieren
89 Summary(fr):    Librairies supplémentaires nécessaires à la compilation.
90 Summary(pl):    Dodatkowe biblioteki wymagane podczas kompilacji
91 Summary(tr):    Geliþtirme için gerekli diðer kitaplýklar
92 Group:          Development/Libraries
93 Group(pl):      Programowanie/Biblioteki
94 Prereq:         /usr/sbin/fix-info-dir
95 Requires:       %{name} = %{version}
96
97 %description devel
98 To develop programs which use the standard C libraries (which nearly all
99 programs do), the system needs to have these standard header files and
100 object files available for creating the executables.
101
102 %description -l de devel
103 Bei der Entwicklung von Programmen, die die Standard-C-Libraries verwenden
104 (also fast alle), benötigt das System diese Standard-Header- und
105 Objektdateien zum Erstellen der ausführbaren Programme.
106
107 %description -l fr devel
108 Pour développer des programmes utilisant les bibliothèques standard du C
109 (ce que presque tous les programmes font), le système doit posséder ces
110 fichiers en-têtes et objets standards pour créer les exécutables.
111
112 %description -l pl devel
113 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów korzystaj±cych
114 ze standardowej biblioteki C. Znajduj± siê tutaj pliki nag³ówkowe oraz
115 pliki  objektowe, niezbêdne do kompilacji programów wykonywalnych i innych
116 bibliotek.
117
118 %description -l tr devel
119 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
120 geliþtirmek için gereken standart baþlýk dosyalarý ve statik kitaplýklar.
121
122 %package -n nscd
123 Summary:        Name Service Caching Daemon
124 Summary(pl):    Name Service Caching Daemon
125 Group:          Networking/Daemons
126 Group(pl):      Sieciowe/Serwery
127 Prereq:         /sbin/chkconfig
128 Requires:       rc-scripts
129
130 %description -n nscd
131 nscd caches name service lookups; it can dramatically improve performance
132 with NIS+, and may help with DNS as well.  You cannot use nscd with 2.0
133 kernels, due to bugs in the kernel-side thread support. nscd happens to hit
134 these bugs particularly hard.
135
136 %description -n nscd -l pl
137 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala drastycznie
138 poprawiæ szybko¶æ dzia³ania NIS+.  Nie jest mo¿liwe u¿ywanie nscd z j±drami
139 serii 2.0.x z powodu b³adów po stronie j±dra w ods³udze w±tków.
140
141 %package -n utmpd
142 Summary:        utmp and utmpx synchronizer for libc5 applications.
143 Summary(pl):    Synchrnnizuje zapis do plików utmp i utmpx.
144 Group:          Daemons
145 Group(pl):      Serwery
146 Prereq:         /sbin/chkconfig
147 Requires:       rc-scripts
148
149 %description -n utmpd
150 utmpd is a utmp and utmpx synchronizer. Is only needed for libc5 based
151 program with utmp access.
152
153 %description -n utmpd -l pl
154 utmpd stara siê utrzymaæ tak± sam± zawarto¶æ plików  /var/run/utmp i
155 /var/run/utmpx. Potrzebny jest tylko w przypadku korzystania ze starszych
156 programów (bazuj±cych na libc5).
157
158 %package -n localedb-src
159 Summary:        Souce code locale database
160 Summary(pl):    Kod ¬ród³owy bazy locale
161 Group:          Daemons
162 Group(pl):      Serwery
163
164 %description -n localedb-src
165 This add-on package contains the data needed to build the locale data files
166 to use the internationalization features of the GNU libc. Glibc package
167 contains standard set of locale binary database and You need this package
168 if want build some non standard locale database.
169
170 %description -l pl -n localedb-src
171 Pakiet ten kod ¼ród³owy baz locale który jest potrzebny do zbudowania
172 binarnej wersji baz locale potrzebnej do poprawnego wspierania ró¿nych
173 jêzyków przez glibc. Pakiet glibc zawira binarn± wersjê standardowych baz
174 locale i ten pakiet jest potrzebny tylko w sytuacji kiedy potrzeba
175 wygenerowaæ jak±¶ niestandardow± bazê.
176
177 %package -n iconv
178 Summary:        Convert encoding of given files from one encoding to another
179 Summary(pl):    Program do konwersji plików tekstowych z jednego enkodingu w inny
180 Group:          Daemons
181 Group(pl):      Serwery
182
183 %description -n iconv
184 Convert encoding of given files from one encoding to another. You neet this
185 package if You want to convert some documet from one encoding to another or
186 if Yoo have installed some programs which use Generic Character Set
187 Conversion Interface.
188
189 %description -l pl -n iconv
190 Program do konwersji plików tekstowych z jednego enkodingu w inny.
191 Potrzebujesz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
192 dokumentów z jednego enkodingu w inny lub je¿eli masz zainstalowane jakie¶
193 programy które korzystaj± Generic Character Set Conversion Interface w
194 glibc czyli zestawu funkcji z tej biblioteki które umo¿liwiaj± kowersje
195 enkodingu danych z poziomu dowolnego programu.
196
197 %package static
198 Summary:        Static libraries
199 Summary(pl):    Biblioteki statyczne
200 Group:          Development/Libraries
201 Group(pl):      Programowanie/Biblioteki
202 Requires:       %{name}-devel = %{version}
203
204 %description static
205 GNU libc static libraries.
206
207 %description -l pl static
208 Biblioteki statyczne GNU libc.
209
210 %package profile
211 Summary:        glibc with profiling support
212 Summary(de):    glibc mit Profil-Unterstützung
213 Summary(fr):    glibc avec support pour profiling
214 Summary(tr):    Ölçüm desteði olan glibc
215 Group:          Development/Libraries/Libc
216 Group(pl):      Programowanie/Biblioteki/Libc
217 Obsoletes:      libc-profile
218 Requires:       %{name}-devel = %{version}
219
220 %description profile
221 When programs are being profiled used gprof, they must use these libraries
222 instrad of the standard C libraries for gprof to be able to profile them
223 correctly.
224
225 %description -l de profile
226 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
227 Libraries anstelle der üblichen C-Libraries verwendet werden.
228
229 %description -l tr profile
230 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
231 kitaplýðý kullanmak zorundadýrlar.
232
233 %prep
234 %setup  -q -a 1 -a 2
235 %patch0 -p1
236 %patch1 -p1
237 %patch2 -p1
238 %patch3 -p1
239 %patch4 -p1
240 %patch5 -p1
241 %patch6 -p1
242 %patch7 -p1
243 %patch8 -p1
244 %patch9 -p0
245
246 %build
247 %configure \
248         --enable-add-ons=crypt,linuxthreads \
249         --enable-profile \
250         --disable-omitfp
251 make
252
253 %install
254 rm -rf $RPM_BUILD_ROOT
255 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man3,var/{db,log}}
256
257 make install \
258         install_root=$RPM_BUILD_ROOT \
259         infodir=%{_infodir} \
260         mandir=%{_mandir}
261
262 make install-locales -C localedata \
263         install_root=$RPM_BUILD_ROOT
264
265 make -C linuxthreads/man
266 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
267
268 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
269
270 ln -sf ../../../etc/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
271 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
272 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
273 ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
274
275 rm -f $RPM_BUILD_ROOT/etc/localtime
276
277 install %{SOURCE4}              $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
278 install %{SOURCE3}              $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
279 install %{SOURCE6}              $RPM_BUILD_ROOT/etc/sysconfig/nscd
280 install %{SOURCE5}              $RPM_BUILD_ROOT/etc/sysconfig/utmpd
281 install %{SOURCE7}              $RPM_BUILD_ROOT/etc/logrotate.d/nscd
282 install nscd/nscd.conf          $RPM_BUILD_ROOT/etc
283 install nss/nsswitch.conf       $RPM_BUILD_ROOT/etc
284
285 install nss/db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
286 :> $RPM_BUILD_ROOT/var/log/nscd
287
288 cat << EOF > $RPM_BUILD_ROOT/usr/bin/create-db
289 #!/bin/sh
290 /usr/bin/make -sC /var/db/
291 EOF
292
293 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
294
295 rm -rf documentation
296 install -d documentation
297
298 cp linuxthreads/ChangeLog  documentation/ChangeLog.threads
299 cp linuxthreads/Changes documentation/Changes.threads
300 cp linuxthreads/README documentation/README.threads
301 cp crypt/README documentation/README.crypt
302
303 cp ChangeLog ChangeLog.8 documentation
304
305 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS \
306         $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
307         documentation/* login/README.utmpd
308
309 strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
310 strip --strip-unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
311         $RPM_BUILD_ROOT/usr/lib/gconv/*.so
312
313 %post   -p /sbin/ldconfig
314 %postun -p /sbin/ldconfig
315
316 %post devel
317 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
318
319 %postun devel
320 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
321
322 %post -n nscd
323 /sbin/chkconfig --add nscd
324 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
325 if [ -f /var/lock/subsys/nscd ]; then
326         /etc/rc.d/init.d/nscd restart 1>&2
327 else
328         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
329 fi
330
331 %preun -n nscd
332 if [ "$1" = "0" ]; then
333         /sbin/chkconfig --del nscd
334         /etc/rc.d/init.d/nscd stop 1>&2
335 fi
336
337 %post -n utmpd
338 /sbin/chkconfig --add utmpd
339 if [ -f /var/lock/subsys/utmpd ]; then
340         /etc/rc.d/init.d/utmpd restart 1>&2
341 else
342         echo "Run \"/etc/rc.d/init.d/utmpd start\" to start utmpd daemon." 1>&2
343 fi
344
345 %preun -n utmpd
346 if [ "$1" = "0" ]; then
347         /sbin/chkconfig --del utmpd
348         /etc/rc.d/init.d/utmpd stop 1>&2
349 fi
350
351 %clean
352 rm -rf $RPM_BUILD_ROOT
353
354 %files
355 %defattr(644,root,root,755)
356 %doc {README,NEWS,FAQ,BUGS}.gz
357
358 %config(noreplace) %verify(not mtime md5 size) /etc/nsswitch.conf
359 %config /etc/rpc
360
361 %attr(755,root,root) /sbin/*
362 %attr(755,root,root) %{_bindir}/catchsegv
363 %attr(755,root,root) %{_bindir}/create-db
364 %attr(755,root,root) %{_bindir}/db_archive
365 %attr(755,root,root) %{_bindir}/db_checkpoint
366 %attr(755,root,root) %{_bindir}/db_deadlock
367 %attr(755,root,root) %{_bindir}/db_dump
368 %attr(755,root,root) %{_bindir}/db_dump185
369 %attr(755,root,root) %{_bindir}/db_load
370 %attr(755,root,root) %{_bindir}/db_printlog
371 %attr(755,root,root) %{_bindir}/db_recover
372 %attr(755,root,root) %{_bindir}/db_stat
373 %attr(755,root,root) %{_bindir}/getent
374 %attr(755,root,root) %{_bindir}/glibcbug
375 %attr(755,root,root) %{_bindir}/ldd
376 %attr(755,root,root) %{_bindir}/lddlibc4
377 %attr(755,root,root) %{_bindir}/locale
378 %attr(755,root,root) %{_bindir}/makedb
379 %attr(755,root,root) %{_bindir}/rpcgen
380 %attr(755,root,root) %{_bindir}/tzselect
381 %attr(755,root,root) %{_bindir}/update-db
382
383 %attr(755,root,root) %{_sbindir}/rpcinfo
384 %attr(755,root,root) %{_sbindir}/zdump
385 %attr(755,root,root) %{_sbindir}/zic
386
387 %attr(755,root,root) /lib/ld-*
388 %attr(755,root,root) /lib/lib*
389
390 %{_datadir}/locale
391 %{_datadir}/zoneinfo
392
393 %config /var/db/Makefile
394
395 %files devel
396 %defattr(644,root,root,755)
397 %doc documentation/* {NOTES,PROJECTS}.gz
398 %attr(755,root,root) %{_bindir}/gencat
399 %attr(755,root,root) %{_bindir}/getconf
400 %attr(755,root,root) %{_bindir}/mtrace
401 %attr(755,root,root) %{_bindir}/sprof
402
403 %{_includedir}/*.h
404 %{_includedir}/arpa
405 %{_includedir}/bits
406 %{_includedir}/db1
407 %{_includedir}/gnu
408 %{_includedir}/net
409 %{_includedir}/netash
410 %{_includedir}/netatalk
411 %{_includedir}/netax25
412 %{_includedir}/neteconet
413 %{_includedir}/netinet
414 %{_includedir}/netipx
415 %{_includedir}/netpacket
416 %{_includedir}/netrom
417 %{_includedir}/netrose
418 %{_includedir}/nfs
419 %{_includedir}/protocols
420 %{_includedir}/rpc
421 %{_includedir}/rpcsvc
422 %{_includedir}/scsi
423 %{_includedir}/sys
424
425 %{_infodir}/libc.inf*.gz
426
427 %attr(755,root,root) %{_libdir}/lib*.so
428 %attr(755,root,root) %{_libdir}/*.o
429 %{_libdir}/libc_nonshared.a
430
431 %{_mandir}/man3/*
432
433 %files -n nscd
434 %defattr(644,root,root,755)
435 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
436 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
437 %attr(754,root,root) /etc/rc.d/init.d/nscd
438 %attr(755,root,root) %{_sbindir}/nscd
439 %attr(640,root,root) /etc/logrotate.d/nscd
440 %attr(640,root,root) %ghost /var/log/nscd
441
442 %files -n utmpd
443 %defattr(644,root,root,755)
444 %doc login/README.utmpd.gz
445 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/utmpd
446 %attr(754,root,root) /etc/rc.d/init.d/utmpd
447 %attr(755,root,root) %{_sbindir}/utmpd
448
449 %files -n localedb-src
450 %defattr(644,root,root,755)
451 %attr(755,root,root) %{_bindir}/localedef
452 %{_datadir}/i18n
453
454 %files -n iconv
455 %defattr(644,root,root,755)
456 %attr(755,root,root) %{_bindir}/iconv
457 %dir %{_libdir}/gconv
458 %{_libdir}/gconv/gconv-modules
459 %attr(755,root,root) %{_libdir}/gconv/*.so
460
461 %files static
462 %defattr(644,root,root,755)
463 %{_libdir}/libBrokenLocale.a
464 %{_libdir}/libbsd-compat.a
465 %{_libdir}/libbsd.a
466 %{_libdir}/libc.a
467 %{_libdir}/libcrypt.a
468 %{_libdir}/libdb.a
469 %{_libdir}/libdb1.a
470 %{_libdir}/libdl.a
471 %{_libdir}/libg.a
472 %{_libdir}/libieee.a
473 %{_libdir}/libm.a
474 %{_libdir}/libmcheck.a
475 %{_libdir}/libndbm.a
476 %{_libdir}/libnsl.a
477 %{_libdir}/libposix.a
478 %{_libdir}/libpthread.a
479 %{_libdir}/libresolv.a
480 %{_libdir}/librpcsvc.a
481 %{_libdir}/librt.a
482 %{_libdir}/libutil.a
483
484 %files profile
485 %defattr(644,root,root,755)
486 %{_libdir}/lib*_p.a
This page took 0.061557 seconds and 4 git commands to generate.