]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- release 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:        3
9 License:        LGPL
10 Group:          Libraries
11 Group(fr):      Librairies
12 Group(pl):      Biblioteki
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
16 Source3:        utmpd.init
17 Source4:        nscd.init
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/
32 BuildRequires:  perl
33 Provides:       ld.so.2
34 Obsoletes:      %{name}-profile
35 Obsoletes:      %{name}-debug
36 Autoreq:        false
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
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.
47
48 %description -l de
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.
58
59 %description -l fr
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
68 horaires.
69
70 %description -l pl
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.
80
81 %description -l tr
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.
89
90 %package devel
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}
100
101 %description devel
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.
105
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.
110
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.
115
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.
121
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
125 kitaplýklar.
126
127 %package -n nscd
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
134
135 %description -n nscd
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.
140
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
145 ods³udze w±tków.
146
147 %package -n utmpd
148 Summary:        utmp and utmpx synchronizer for libc5 applications.
149 Summary(pl):    Synchrnnizuje zapis do plików utmp i utmpx.
150 Group:          Daemons
151 Group(pl):      Serwery
152 Prereq:         /sbin/chkconfig
153 Requires:       rc-scripts >= 0.2.0
154
155 %description -n utmpd
156 utmpd is a utmp and utmpx synchronizer. Is only needed for libc5 based
157 program with utmp access.
158
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).
163
164 %package -n localedb-src
165 Summary:        Souce code locale database
166 Summary(pl):    Kod ¬ród³owy bazy locale
167 Group:          Daemons
168 Group(pl):      Serwery
169
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.
175
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ê.
182
183 %package -n iconv
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
186 Group:          Daemons
187 Group(pl):      Serwery
188
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.
194
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.
202
203 %package static
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}
210
211 %description static
212 GNU libc static libraries.
213
214 %description -l pl static
215 Biblioteki statyczne GNU libc.
216
217 %package profile
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}
226
227 %description profile
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.
231
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.
235
236 %description -l tr profile
237 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
238 kitaplýðý kullanmak zorundadýrlar.
239
240 %package pic
241 Summary:        glibc PIC archive 
242 Group:          Development/Libraries/Libc
243 Group(pl):      Programowanie/Biblioteki/Libc
244 Requires:       %{name}-devel = %{version}
245
246 %description pic
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.
250
251 %prep
252 %setup  -q -a 1 -a 2
253 %patch0 -p1
254 %patch1 -p1
255 %patch2 -p1
256 %patch3 -p1
257 %patch4 -p1
258 %patch5 -p1
259 %patch6 -p1
260 %patch7 -p1
261 %patch8 -p1
262 %patch9 -p0
263
264 %build
265 %configure \
266         --enable-add-ons=crypt,linuxthreads \
267         --enable-profile \
268         --disable-omitfp
269 %{__make}
270
271 %install
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}}
274
275 %{__make} install \
276         install_root=$RPM_BUILD_ROOT \
277         infodir=%{_infodir} \
278         mandir=%{_mandir}
279
280 %{__make} install-locales -C localedata \
281         install_root=$RPM_BUILD_ROOT
282
283 PICFILES="libc_pic.a libc.map 
284           math/libm_pic.a libm.map 
285           resolv/libresolv_pic.a"
286
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
290
291 %{__make} -C linuxthreads/man
292 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
293
294 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
295
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
300
301 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
302
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}
310
311 install nss/db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
312 :> $RPM_BUILD_ROOT/var/log/nscd
313
314 cat << EOF > $RPM_BUILD_ROOT%{_bindir}/create-db
315 #!/bin/sh
316 /usr/bin/make -sC /var/db/
317 EOF
318
319 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
320
321 rm -rf documentation
322 install -d documentation
323
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
328
329 cp ChangeLog ChangeLog.8 documentation
330
331 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS \
332         $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
333         documentation/* login/README.utmpd
334
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
338
339 # Collect locale files and mark them with %%lang()
340 rm -f glibc.lang
341 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* ; do
342         if [ -d $i ]; then
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
346         fi
347 done
348
349 %post   -p /sbin/ldconfig
350 %postun -p /sbin/ldconfig
351
352 %post devel
353 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
354
355 %postun devel
356 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
357
358 %post -n nscd
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
363 else
364         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
365 fi
366
367 %preun -n nscd
368 if [ "$1" = "0" ]; then
369         if [ -f /var/lock/subsys/nscd ]; then
370                 /etc/rc.d/init.d/nscd stop 1>&2
371         fi
372         /sbin/chkconfig --del nscd
373 fi
374
375 %post -n utmpd
376 /sbin/chkconfig --add utmpd
377 if [ -f /var/lock/subsys/utmpd ]; then
378         /etc/rc.d/init.d/utmpd restart 1>&2
379 else
380         echo "Run \"/etc/rc.d/init.d/utmpd start\" to start utmpd daemon." 1>&2
381 fi
382
383 %preun -n utmpd
384 if [ "$1" = "0" ]; then
385         if [ -f /var/lock/subsys/utmpd ]; then
386                 /etc/rc.d/init.d/utmpd stop 1>&2
387         fi
388         /sbin/chkconfig --del utmpd
389 fi
390
391 %clean
392 rm -rf $RPM_BUILD_ROOT
393
394 %files -f glibc.lang
395 %defattr(644,root,root,755)
396 %doc {README,NEWS,FAQ,BUGS}.gz
397
398 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nsswitch.conf
399 %config %{_sysconfdir}/rpc
400
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
422
423 %attr(755,root,root) %{_sbindir}/rpcinfo
424 %attr(755,root,root) %{_sbindir}/zdump
425 %attr(755,root,root) %{_sbindir}/zic
426
427 %attr(755,root,root) /lib/ld-*
428 %attr(755,root,root) /lib/lib*
429
430 %dir %{_datadir}/locale
431 %{_datadir}/locale/locale.alias
432 %{_datadir}/zoneinfo
433
434 %config /var/db/Makefile
435
436 %files devel
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
443
444 %{_includedir}/*.h
445 %{_includedir}/arpa
446 %{_includedir}/bits
447 %{_includedir}/db1
448 %{_includedir}/gnu
449 %{_includedir}/net
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
459 %{_includedir}/nfs
460 %{_includedir}/protocols
461 %{_includedir}/rpc
462 %{_includedir}/rpcsvc
463 %{_includedir}/scsi
464 %{_includedir}/sys
465
466 %{_infodir}/libc.inf*.gz
467
468 %attr(755,root,root) %{_libdir}/lib*.so
469 %attr(755,root,root) %{_libdir}/*.o
470 %{_libdir}/libc_nonshared.a
471
472 %{_mandir}/man3/*
473
474 %files -n nscd
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
482
483 %files -n utmpd
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
489
490 %files -n localedb-src
491 %defattr(644,root,root,755)
492 %attr(755,root,root) %{_bindir}/localedef
493 %{_datadir}/i18n
494
495 %files -n iconv
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
501
502 %files static
503 %defattr(644,root,root,755)
504 %{_libdir}/libBrokenLocale.a
505 %{_libdir}/libbsd-compat.a
506 %{_libdir}/libbsd.a
507 %{_libdir}/libc.a
508 %{_libdir}/libcrypt.a
509 %{_libdir}/libdb.a
510 %{_libdir}/libdb1.a
511 %{_libdir}/libdl.a
512 %{_libdir}/libg.a
513 %{_libdir}/libieee.a
514 %{_libdir}/libm.a
515 %{_libdir}/libmcheck.a
516 %{_libdir}/libndbm.a
517 %{_libdir}/libnsl.a
518 %{_libdir}/libposix.a
519 %{_libdir}/libpthread.a
520 %{_libdir}/libresolv.a
521 %{_libdir}/librpcsvc.a
522 %{_libdir}/librt.a
523 %{_libdir}/libutil.a
524
525 %files profile
526 %defattr(644,root,root,755)
527 %{_libdir}/lib*_p.a
528
529 %files pic
530 %defattr(644,root,root,755)
531 %{_libdir}/lib*_pic.a
532 %{_libdir}/lib*.map
533 %{_libdir}/soinit.o
534 %{_libdir}/sofini.o
This page took 0.130291 seconds and 3 git commands to generate.