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