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