]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
1b0eb1c5e9e52cf10a02f6bc4fc20ec5039d243d
[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:        2
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:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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 Requires:       %{name} = %{version}
95
96 %description devel
97 To develop programs which use the standard C libraries (which nearly all
98 programs do), the system needs to have these standard header files and
99 object files available for creating the executables.
100
101 %description -l de devel
102 Bei der Entwicklung von Programmen, die die Standard-C-Libraries verwenden
103 (also fast alle), benötigt das System diese Standard-Header- und
104 Objektdateien zum Erstellen der ausführbaren Programme.
105
106 %description -l fr devel
107 Pour développer des programmes utilisant les bibliothèques standard du C
108 (ce que presque tous les programmes font), le système doit posséder ces
109 fichiers en-têtes et objets standards pour créer les exécutables.
110
111 %description -l pl devel
112 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów korzystaj±cych
113 ze standardowej biblioteki C. Znajduj± siê tutaj pliki nag³ówkowe oraz
114 pliki  objektowe, niezbêdne do kompilacji programów wykonywalnych i innych
115 bibliotek.
116
117 %description -l tr devel
118 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
119 geliþtirmek için gereken standart baþlýk dosyalarý ve statik kitaplýklar.
120
121 %package -n nscd
122 Summary:        Name Service Caching Daemon
123 Summary(pl):    Name Service Caching Daemon
124 Group:          Networking/Daemons
125 Group(pl):      Sieciowe/Serwery
126 Prereq:         /sbin/chkconfig
127 Requires:       rc-scripts >= 0.2.0
128
129 %description -n nscd
130 nscd caches name service lookups; it can dramatically improve performance
131 with NIS+, and may help with DNS as well.  You cannot use nscd with 2.0
132 kernels, due to bugs in the kernel-side thread support. nscd happens to hit
133 these bugs particularly hard.
134
135 %description -n nscd -l pl
136 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala drastycznie
137 poprawiæ szybko¶æ dzia³ania NIS+.  Nie jest mo¿liwe u¿ywanie nscd z j±drami
138 serii 2.0.x z powodu b³adów po stronie j±dra w ods³udze w±tków.
139
140 %package -n utmpd
141 Summary:        utmp and utmpx synchronizer for libc5 applications.
142 Summary(pl):    Synchrnnizuje zapis do plików utmp i utmpx.
143 Group:          Daemons
144 Group(pl):      Serwery
145 Prereq:         /sbin/chkconfig
146 Requires:       rc-scripts >= 0.2.0
147
148 %description -n utmpd
149 utmpd is a utmp and utmpx synchronizer. Is only needed for libc5 based
150 program with utmp access.
151
152 %description -n utmpd -l pl
153 utmpd stara siê utrzymaæ tak± sam± zawarto¶æ plików  /var/run/utmp i
154 /var/run/utmpx. Potrzebny jest tylko w przypadku korzystania ze starszych
155 programów (bazuj±cych na libc5).
156
157 %package -n localedb-src
158 Summary:        Souce code locale database
159 Summary(pl):    Kod ¬ród³owy bazy locale
160 Group:          Daemons
161 Group(pl):      Serwery
162
163 %description -n localedb-src
164 This add-on package contains the data needed to build the locale data files
165 to use the internationalization features of the GNU libc. Glibc package
166 contains standard set of locale binary database and You need this package
167 if want build some non standard locale database.
168
169 %description -l pl -n localedb-src
170 Pakiet ten kod ¼ród³owy baz locale który jest potrzebny do zbudowania
171 binarnej wersji baz locale potrzebnej do poprawnego wspierania ró¿nych
172 jêzyków przez glibc. Pakiet glibc zawira binarn± wersjê standardowych baz
173 locale i ten pakiet jest potrzebny tylko w sytuacji kiedy potrzeba
174 wygenerowaæ jak±¶ niestandardow± bazê.
175
176 %package -n iconv
177 Summary:        Convert encoding of given files from one encoding to another
178 Summary(pl):    Program do konwersji plików tekstowych z jednego enkodingu w inny
179 Group:          Daemons
180 Group(pl):      Serwery
181
182 %description -n iconv
183 Convert encoding of given files from one encoding to another. You need this
184 package if You want to convert some documet from one encoding to another or
185 if You have installed some programs which use Generic Character Set
186 Conversion Interface.
187
188 %description -l pl -n iconv
189 Program do konwersji plików tekstowych z jednego enkodingu w inny.
190 Potrzebujesz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
191 dokumentów z jednego enkodingu w inny lub je¿eli masz zainstalowane jakie¶
192 programy które korzystaj± z Generic Character Set Conversion Interface
193 w glibc, czyli z zestawu funkcji z tej biblioteki, które umo¿liwiaj± konwersjê
194 enkodingu danych z poziomu dowolnego programu.
195
196 %package static
197 Summary:        Static libraries
198 Summary(pl):    Biblioteki statyczne
199 Group:          Development/Libraries
200 Group(pl):      Programowanie/Biblioteki
201 Requires:       %{name}-devel = %{version}
202
203 %description static
204 GNU libc static libraries.
205
206 %description -l pl static
207 Biblioteki statyczne GNU libc.
208
209 %package profile
210 Summary:        glibc with profiling support
211 Summary(de):    glibc mit Profil-Unterstützung
212 Summary(fr):    glibc avec support pour profiling
213 Summary(tr):    Ölçüm desteði olan glibc
214 Group:          Development/Libraries/Libc
215 Group(pl):      Programowanie/Biblioteki/Libc
216 Obsoletes:      libc-profile
217 Requires:       %{name}-devel = %{version}
218
219 %description profile
220 When programs are being profiled used gprof, they must use these libraries
221 instead of the standard C libraries for gprof to be able to profile them
222 correctly.
223
224 %description -l de profile
225 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
226 Libraries anstelle der üblichen C-Libraries verwendet werden.
227
228 %description -l tr profile
229 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
230 kitaplýðý kullanmak zorundadýrlar.
231
232 %prep
233 %setup  -q -a 1 -a 2
234 %patch0 -p1
235 %patch1 -p1
236 %patch2 -p1
237 %patch3 -p1
238 %patch4 -p1
239 %patch5 -p1
240 %patch6 -p1
241 %patch7 -p1
242 %patch8 -p1
243 %patch9 -p0
244
245 %build
246 %configure \
247         --enable-add-ons=crypt,linuxthreads \
248         --enable-profile \
249         --disable-omitfp
250 make
251
252 %install
253 rm -rf $RPM_BUILD_ROOT
254 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man3,var/{db,log}}
255
256 make install \
257         install_root=$RPM_BUILD_ROOT \
258         infodir=%{_infodir} \
259         mandir=%{_mandir}
260
261 make install-locales -C localedata \
262         install_root=$RPM_BUILD_ROOT
263
264 make -C linuxthreads/man
265 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
266
267 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
268
269 ln -sf ../../../etc/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
270 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
271 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
272 ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
273
274 rm -f $RPM_BUILD_ROOT/etc/localtime
275
276 install %{SOURCE4}              $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
277 install %{SOURCE3}              $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
278 install %{SOURCE6}              $RPM_BUILD_ROOT/etc/sysconfig/nscd
279 install %{SOURCE5}              $RPM_BUILD_ROOT/etc/sysconfig/utmpd
280 install %{SOURCE7}              $RPM_BUILD_ROOT/etc/logrotate.d/nscd
281 install nscd/nscd.conf          $RPM_BUILD_ROOT/etc
282 install nss/nsswitch.conf       $RPM_BUILD_ROOT/etc
283
284 install nss/db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
285 :> $RPM_BUILD_ROOT/var/log/nscd
286
287 cat << EOF > $RPM_BUILD_ROOT/usr/bin/create-db
288 #!/bin/sh
289 /usr/bin/make -sC /var/db/
290 EOF
291
292 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
293
294 rm -rf documentation
295 install -d documentation
296
297 cp linuxthreads/ChangeLog  documentation/ChangeLog.threads
298 cp linuxthreads/Changes documentation/Changes.threads
299 cp linuxthreads/README documentation/README.threads
300 cp crypt/README documentation/README.crypt
301
302 cp ChangeLog ChangeLog.8 documentation
303
304 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS \
305         $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
306         documentation/* login/README.utmpd
307
308 strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
309 strip --strip-unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
310         $RPM_BUILD_ROOT/usr/lib/gconv/*.so
311
312 %post   -p /sbin/ldconfig
313 %postun -p /sbin/ldconfig
314
315 %post devel
316 [ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
317
318 %postun devel
319 [ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
320
321 %post -n nscd
322 /sbin/chkconfig --add nscd
323 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
324 if [ -f /var/lock/subsys/nscd ]; then
325         /etc/rc.d/init.d/nscd restart 1>&2
326 else
327         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
328 fi
329
330 %preun -n nscd
331 if [ "$1" = "0" ]; then
332         if [ -f /var/lock/subsys/nscd ]; then
333                 /etc/rc.d/init.d/nscd stop 1>&2
334         fi
335         /sbin/chkconfig --del nscd
336 fi
337
338 %post -n utmpd
339 /sbin/chkconfig --add utmpd
340 if [ -f /var/lock/subsys/utmpd ]; then
341         /etc/rc.d/init.d/utmpd restart 1>&2
342 else
343         echo "Run \"/etc/rc.d/init.d/utmpd start\" to start utmpd daemon." 1>&2
344 fi
345
346 %preun -n utmpd
347 if [ "$1" = "0" ]; then
348         if [ -f /var/lock/subsys/utmpd ]; then
349                 /etc/rc.d/init.d/utmpd stop 1>&2
350         fi
351         /sbin/chkconfig --del utmpd
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(754,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(754,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.070477 seconds and 3 git commands to generate.