]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- spec adapterized.
[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(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 %prep
241 %setup  -q -a 1 -a 2
242 %patch0 -p1
243 %patch1 -p1
244 %patch2 -p1
245 %patch3 -p1
246 %patch4 -p1
247 %patch5 -p1
248 %patch6 -p1
249 %patch7 -p1
250 %patch8 -p1
251 %patch9 -p0
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 ../../..%{_sysconfdir}/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 ../..%{_libdir}/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
281
282 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/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%{_sysconfdir}
290 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
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%{_bindir}/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 -9nf 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%{_libdir}/gconv/*.so
319
320 %post   -p /sbin/ldconfig
321 %postun -p /sbin/ldconfig
322
323 %post devel
324 [ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
325
326 %postun devel
327 [ -x /usr/sbin/fix-info-dir ] && /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         if [ -f /var/lock/subsys/nscd ]; then
341                 /etc/rc.d/init.d/nscd stop 1>&2
342         fi
343         /sbin/chkconfig --del nscd
344 fi
345
346 %post -n utmpd
347 /sbin/chkconfig --add utmpd
348 if [ -f /var/lock/subsys/utmpd ]; then
349         /etc/rc.d/init.d/utmpd restart 1>&2
350 else
351         echo "Run \"/etc/rc.d/init.d/utmpd start\" to start utmpd daemon." 1>&2
352 fi
353
354 %preun -n utmpd
355 if [ "$1" = "0" ]; then
356         if [ -f /var/lock/subsys/utmpd ]; then
357                 /etc/rc.d/init.d/utmpd stop 1>&2
358         fi
359         /sbin/chkconfig --del utmpd
360 fi
361
362 %clean
363 rm -rf $RPM_BUILD_ROOT
364
365 %files
366 %defattr(644,root,root,755)
367 %doc {README,NEWS,FAQ,BUGS}.gz
368
369 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nsswitch.conf
370 %config %{_sysconfdir}/rpc
371
372 %attr(755,root,root) /sbin/*
373 %attr(755,root,root) %{_bindir}/catchsegv
374 %attr(755,root,root) %{_bindir}/create-db
375 %attr(755,root,root) %{_bindir}/db_archive
376 %attr(755,root,root) %{_bindir}/db_checkpoint
377 %attr(755,root,root) %{_bindir}/db_deadlock
378 %attr(755,root,root) %{_bindir}/db_dump
379 %attr(755,root,root) %{_bindir}/db_dump185
380 %attr(755,root,root) %{_bindir}/db_load
381 %attr(755,root,root) %{_bindir}/db_printlog
382 %attr(755,root,root) %{_bindir}/db_recover
383 %attr(755,root,root) %{_bindir}/db_stat
384 %attr(755,root,root) %{_bindir}/getent
385 %attr(755,root,root) %{_bindir}/glibcbug
386 %attr(755,root,root) %{_bindir}/ldd
387 %attr(755,root,root) %{_bindir}/lddlibc4
388 %attr(755,root,root) %{_bindir}/locale
389 %attr(755,root,root) %{_bindir}/makedb
390 %attr(755,root,root) %{_bindir}/rpcgen
391 %attr(755,root,root) %{_bindir}/tzselect
392 %attr(755,root,root) %{_bindir}/update-db
393
394 %attr(755,root,root) %{_sbindir}/rpcinfo
395 %attr(755,root,root) %{_sbindir}/zdump
396 %attr(755,root,root) %{_sbindir}/zic
397
398 %attr(755,root,root) /lib/ld-*
399 %attr(755,root,root) /lib/lib*
400
401 %{_datadir}/locale
402 %{_datadir}/zoneinfo
403
404 %config /var/db/Makefile
405
406 %files devel
407 %defattr(644,root,root,755)
408 %doc documentation/* {NOTES,PROJECTS}.gz
409 %attr(755,root,root) %{_bindir}/gencat
410 %attr(755,root,root) %{_bindir}/getconf
411 %attr(755,root,root) %{_bindir}/mtrace
412 %attr(755,root,root) %{_bindir}/sprof
413
414 %{_includedir}/*.h
415 %{_includedir}/arpa
416 %{_includedir}/bits
417 %{_includedir}/db1
418 %{_includedir}/gnu
419 %{_includedir}/net
420 %{_includedir}/netash
421 %{_includedir}/netatalk
422 %{_includedir}/netax25
423 %{_includedir}/neteconet
424 %{_includedir}/netinet
425 %{_includedir}/netipx
426 %{_includedir}/netpacket
427 %{_includedir}/netrom
428 %{_includedir}/netrose
429 %{_includedir}/nfs
430 %{_includedir}/protocols
431 %{_includedir}/rpc
432 %{_includedir}/rpcsvc
433 %{_includedir}/scsi
434 %{_includedir}/sys
435
436 %{_infodir}/libc.inf*.gz
437
438 %attr(755,root,root) %{_libdir}/lib*.so
439 %attr(755,root,root) %{_libdir}/*.o
440 %{_libdir}/libc_nonshared.a
441
442 %{_mandir}/man3/*
443
444 %files -n nscd
445 %defattr(644,root,root,755)
446 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
447 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nscd.*
448 %attr(754,root,root) /etc/rc.d/init.d/nscd
449 %attr(755,root,root) %{_sbindir}/nscd
450 %attr(640,root,root) /etc/logrotate.d/nscd
451 %attr(640,root,root) %ghost /var/log/nscd
452
453 %files -n utmpd
454 %defattr(644,root,root,755)
455 %doc login/README.utmpd.gz
456 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/utmpd
457 %attr(754,root,root) /etc/rc.d/init.d/utmpd
458 %attr(755,root,root) %{_sbindir}/utmpd
459
460 %files -n localedb-src
461 %defattr(644,root,root,755)
462 %attr(755,root,root) %{_bindir}/localedef
463 %{_datadir}/i18n
464
465 %files -n iconv
466 %defattr(644,root,root,755)
467 %attr(755,root,root) %{_bindir}/iconv
468 %dir %{_libdir}/gconv
469 %{_libdir}/gconv/gconv-modules
470 %attr(755,root,root) %{_libdir}/gconv/*.so
471
472 %files static
473 %defattr(644,root,root,755)
474 %{_libdir}/libBrokenLocale.a
475 %{_libdir}/libbsd-compat.a
476 %{_libdir}/libbsd.a
477 %{_libdir}/libc.a
478 %{_libdir}/libcrypt.a
479 %{_libdir}/libdb.a
480 %{_libdir}/libdb1.a
481 %{_libdir}/libdl.a
482 %{_libdir}/libg.a
483 %{_libdir}/libieee.a
484 %{_libdir}/libm.a
485 %{_libdir}/libmcheck.a
486 %{_libdir}/libndbm.a
487 %{_libdir}/libnsl.a
488 %{_libdir}/libposix.a
489 %{_libdir}/libpthread.a
490 %{_libdir}/libresolv.a
491 %{_libdir}/librpcsvc.a
492 %{_libdir}/librt.a
493 %{_libdir}/libutil.a
494
495 %files profile
496 %defattr(644,root,root,755)
497 %{_libdir}/lib*_p.a
This page took 0.074197 seconds and 4 git commands to generate.