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