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