]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- changed all BuildRoot definitons
[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 Prereq:         basesystem
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 the
41 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. Without
45 these, a Linux system will not function. It also contains national language
46 (locale) support and 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
65 fonctionner. Il contient aussi la gestion des langues nationales (locales)
66 et les bases 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
71 oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu systemowego jest
72 usytuowane w jednym miejscu i dzielone miêdzy wieloma programami. Pakiet
73 ten zawiera bardzo wa¿ny zbiór bibliotek standardowych wspó³dzielonych
74 (dynamicznych) bibliotek C i matematycznych. Bez glibc system Linux nie
75 jest w stanie funkcjonowaæ. Znajduj± siê tutaj równie¿ definicje ró¿nych
76 informacji dla 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 C
83 kitaplýðýný ve standart matematik kitaplýðýný içerir. Bu kitaplýklar
84 olmadan Linux sistemi çalýþmayacaktýr. Yerel dil desteði ve zaman dilimi
85 veri tabaný 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
101 object 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
106 Objektdateien 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
116 pliki  objektowe, niezbêdne do kompilacji programów wykonywalnych i innych
117 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.  You cannot use nscd with 2.0
134 kernels, due to bugs in the kernel-side thread support. nscd happens to hit
135 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+.  Nie jest mo¿liwe u¿ywanie nscd z j±drami
140 serii 2.0.x z powodu b³adów po stronie j±dra w ods³udze w±tków.
141
142 %package -n utmpd
143 Summary:        utmp and utmpx synchronizer for libc5 applications.
144 Summary(pl):    Synchrnnizuje zapis do plików utmp i utmpx.
145 Group:          Daemons
146 Group(pl):      Serwery
147 Prereq:         /sbin/chkconfig
148 Requires:       rc-scripts
149
150 %description -n utmpd
151 utmpd is a utmp and utmpx synchronizer. Is only needed for libc5 based
152 program with utmp access.
153
154 %description -n utmpd -l pl
155 utmpd stara siê utrzymaæ tak± sam± zawarto¶æ plików  /var/run/utmp i
156 /var/run/utmpx. Potrzebny jest tylko w przypadku korzystania ze starszych
157 programów (bazuj±cych na libc5).
158
159 %package -n localedb-src
160 Summary:        Souce code locale database
161 Summary(pl):    Kod ¬ród³owy bazy locale
162 Group:          Daemons
163 Group(pl):      Serwery
164
165 %description -n localedb-src
166 This add-on package contains the data needed to build the locale data files
167 to use the internationalization features of the GNU libc. Glibc package
168 contains standard set of locale binary database and You need this package
169 if want build some non standard locale database.
170
171 %description -l pl -n localedb-src
172 Pakiet ten kod ¼ród³owy baz locale który jest potrzebny do zbudowania
173 binarnej wersji baz locale potrzebnej do poprawnego wspierania ró¿nych
174 jêzyków przez glibc. Pakiet glibc zawira binarn± wersjê standardowych baz
175 locale i ten pakiet jest potrzebny tylko w sytuacji kiedy potrzeba
176 wygenerowaæ jak±¶ niestandardow± bazê.
177
178 %package -n iconv
179 Summary:        Convert encoding of given files from one encoding to another
180 Summary(pl):    Program do konwersji plików tekstowych z jednego enkodingu w inny
181 Group:          Daemons
182 Group(pl):      Serwery
183
184 %description -n iconv
185 Convert encoding of given files from one encoding to another. You need this
186 package if You want to convert some documet from one encoding to another or
187 if You have installed some programs which use Generic Character Set
188 Conversion Interface.
189
190 %description -l pl -n iconv
191 Program do konwersji plików tekstowych z jednego enkodingu w inny.
192 Potrzebujesz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
193 dokumentów z jednego enkodingu w inny lub je¿eli masz zainstalowane jakie¶
194 programy które korzystaj± z Generic Character Set Conversion Interface
195 w glibc, czyli z zestawu funkcji z tej biblioteki, które umo¿liwiaj± konwersjê
196 enkodingu danych z poziomu dowolnego programu.
197
198 %package static
199 Summary:        Static libraries
200 Summary(pl):    Biblioteki statyczne
201 Group:          Development/Libraries
202 Group(pl):      Programowanie/Biblioteki
203 Requires:       %{name}-devel = %{version}
204
205 %description static
206 GNU libc static libraries.
207
208 %description -l pl static
209 Biblioteki statyczne GNU libc.
210
211 %package profile
212 Summary:        glibc with profiling support
213 Summary(de):    glibc mit Profil-Unterstützung
214 Summary(fr):    glibc avec support pour profiling
215 Summary(tr):    Ölçüm desteði olan glibc
216 Group:          Development/Libraries/Libc
217 Group(pl):      Programowanie/Biblioteki/Libc
218 Obsoletes:      libc-profile
219 Requires:       %{name}-devel = %{version}
220
221 %description profile
222 When programs are being profiled used gprof, they must use these libraries
223 instead of the standard C libraries for gprof to be able to profile them
224 correctly.
225
226 %description -l de profile
227 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
228 Libraries anstelle der üblichen C-Libraries verwendet werden.
229
230 %description -l tr profile
231 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
232 kitaplýðý kullanmak zorundadýrlar.
233
234 %prep
235 %setup  -q -a 1 -a 2
236 %patch0 -p1
237 %patch1 -p1
238 %patch2 -p1
239 %patch3 -p1
240 %patch4 -p1
241 %patch5 -p1
242 %patch6 -p1
243 %patch7 -p1
244 %patch8 -p1
245 %patch9 -p0
246
247 %build
248 %configure \
249         --enable-add-ons=crypt,linuxthreads \
250         --enable-profile \
251         --disable-omitfp
252 make
253
254 %install
255 rm -rf $RPM_BUILD_ROOT
256 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man3,var/{db,log}}
257
258 make install \
259         install_root=$RPM_BUILD_ROOT \
260         infodir=%{_infodir} \
261         mandir=%{_mandir}
262
263 make install-locales -C localedata \
264         install_root=$RPM_BUILD_ROOT
265
266 make -C linuxthreads/man
267 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
268
269 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
270
271 ln -sf ../../../etc/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
272 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
273 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
274 ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
275
276 rm -f $RPM_BUILD_ROOT/etc/localtime
277
278 install %{SOURCE4}              $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
279 install %{SOURCE3}              $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
280 install %{SOURCE6}              $RPM_BUILD_ROOT/etc/sysconfig/nscd
281 install %{SOURCE5}              $RPM_BUILD_ROOT/etc/sysconfig/utmpd
282 install %{SOURCE7}              $RPM_BUILD_ROOT/etc/logrotate.d/nscd
283 install nscd/nscd.conf          $RPM_BUILD_ROOT/etc
284 install nss/nsswitch.conf       $RPM_BUILD_ROOT/etc
285
286 install nss/db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
287 :> $RPM_BUILD_ROOT/var/log/nscd
288
289 cat << EOF > $RPM_BUILD_ROOT/usr/bin/create-db
290 #!/bin/sh
291 /usr/bin/make -sC /var/db/
292 EOF
293
294 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
295
296 rm -rf documentation
297 install -d documentation
298
299 cp linuxthreads/ChangeLog  documentation/ChangeLog.threads
300 cp linuxthreads/Changes documentation/Changes.threads
301 cp linuxthreads/README documentation/README.threads
302 cp crypt/README documentation/README.crypt
303
304 cp ChangeLog ChangeLog.8 documentation
305
306 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS \
307         $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
308         documentation/* login/README.utmpd
309
310 strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
311 strip --strip-unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
312         $RPM_BUILD_ROOT/usr/lib/gconv/*.so
313
314 %post   -p /sbin/ldconfig
315 %postun -p /sbin/ldconfig
316
317 %post devel
318 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
319
320 %postun devel
321 /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
322
323 %post -n nscd
324 /sbin/chkconfig --add nscd
325 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
326 if [ -f /var/lock/subsys/nscd ]; then
327         /etc/rc.d/init.d/nscd restart 1>&2
328 else
329         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
330 fi
331
332 %preun -n nscd
333 if [ "$1" = "0" ]; then
334         /sbin/chkconfig --del nscd
335         /etc/rc.d/init.d/nscd stop 1>&2
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         /sbin/chkconfig --del utmpd
349         /etc/rc.d/init.d/utmpd stop 1>&2
350 fi
351
352 %clean
353 rm -rf $RPM_BUILD_ROOT
354
355 %files
356 %defattr(644,root,root,755)
357 %doc {README,NEWS,FAQ,BUGS}.gz
358
359 %config(noreplace) %verify(not mtime md5 size) /etc/nsswitch.conf
360 %config /etc/rpc
361
362 %attr(755,root,root) /sbin/*
363 %attr(755,root,root) %{_bindir}/catchsegv
364 %attr(755,root,root) %{_bindir}/create-db
365 %attr(755,root,root) %{_bindir}/db_archive
366 %attr(755,root,root) %{_bindir}/db_checkpoint
367 %attr(755,root,root) %{_bindir}/db_deadlock
368 %attr(755,root,root) %{_bindir}/db_dump
369 %attr(755,root,root) %{_bindir}/db_dump185
370 %attr(755,root,root) %{_bindir}/db_load
371 %attr(755,root,root) %{_bindir}/db_printlog
372 %attr(755,root,root) %{_bindir}/db_recover
373 %attr(755,root,root) %{_bindir}/db_stat
374 %attr(755,root,root) %{_bindir}/getent
375 %attr(755,root,root) %{_bindir}/glibcbug
376 %attr(755,root,root) %{_bindir}/ldd
377 %attr(755,root,root) %{_bindir}/lddlibc4
378 %attr(755,root,root) %{_bindir}/locale
379 %attr(755,root,root) %{_bindir}/makedb
380 %attr(755,root,root) %{_bindir}/rpcgen
381 %attr(755,root,root) %{_bindir}/tzselect
382 %attr(755,root,root) %{_bindir}/update-db
383
384 %attr(755,root,root) %{_sbindir}/rpcinfo
385 %attr(755,root,root) %{_sbindir}/zdump
386 %attr(755,root,root) %{_sbindir}/zic
387
388 %attr(755,root,root) /lib/ld-*
389 %attr(755,root,root) /lib/lib*
390
391 %{_datadir}/locale
392 %{_datadir}/zoneinfo
393
394 %config /var/db/Makefile
395
396 %files devel
397 %defattr(644,root,root,755)
398 %doc documentation/* {NOTES,PROJECTS}.gz
399 %attr(755,root,root) %{_bindir}/gencat
400 %attr(755,root,root) %{_bindir}/getconf
401 %attr(755,root,root) %{_bindir}/mtrace
402 %attr(755,root,root) %{_bindir}/sprof
403
404 %{_includedir}/*.h
405 %{_includedir}/arpa
406 %{_includedir}/bits
407 %{_includedir}/db1
408 %{_includedir}/gnu
409 %{_includedir}/net
410 %{_includedir}/netash
411 %{_includedir}/netatalk
412 %{_includedir}/netax25
413 %{_includedir}/neteconet
414 %{_includedir}/netinet
415 %{_includedir}/netipx
416 %{_includedir}/netpacket
417 %{_includedir}/netrom
418 %{_includedir}/netrose
419 %{_includedir}/nfs
420 %{_includedir}/protocols
421 %{_includedir}/rpc
422 %{_includedir}/rpcsvc
423 %{_includedir}/scsi
424 %{_includedir}/sys
425
426 %{_infodir}/libc.inf*.gz
427
428 %attr(755,root,root) %{_libdir}/lib*.so
429 %attr(755,root,root) %{_libdir}/*.o
430 %{_libdir}/libc_nonshared.a
431
432 %{_mandir}/man3/*
433
434 %files -n nscd
435 %defattr(644,root,root,755)
436 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
437 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
438 %attr(754,root,root) /etc/rc.d/init.d/nscd
439 %attr(755,root,root) %{_sbindir}/nscd
440 %attr(640,root,root) /etc/logrotate.d/nscd
441 %attr(640,root,root) %ghost /var/log/nscd
442
443 %files -n utmpd
444 %defattr(644,root,root,755)
445 %doc login/README.utmpd.gz
446 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/utmpd
447 %attr(754,root,root) /etc/rc.d/init.d/utmpd
448 %attr(755,root,root) %{_sbindir}/utmpd
449
450 %files -n localedb-src
451 %defattr(644,root,root,755)
452 %attr(755,root,root) %{_bindir}/localedef
453 %{_datadir}/i18n
454
455 %files -n iconv
456 %defattr(644,root,root,755)
457 %attr(755,root,root) %{_bindir}/iconv
458 %dir %{_libdir}/gconv
459 %{_libdir}/gconv/gconv-modules
460 %attr(755,root,root) %{_libdir}/gconv/*.so
461
462 %files static
463 %defattr(644,root,root,755)
464 %{_libdir}/libBrokenLocale.a
465 %{_libdir}/libbsd-compat.a
466 %{_libdir}/libbsd.a
467 %{_libdir}/libc.a
468 %{_libdir}/libcrypt.a
469 %{_libdir}/libdb.a
470 %{_libdir}/libdb1.a
471 %{_libdir}/libdl.a
472 %{_libdir}/libg.a
473 %{_libdir}/libieee.a
474 %{_libdir}/libm.a
475 %{_libdir}/libmcheck.a
476 %{_libdir}/libndbm.a
477 %{_libdir}/libnsl.a
478 %{_libdir}/libposix.a
479 %{_libdir}/libpthread.a
480 %{_libdir}/libresolv.a
481 %{_libdir}/librpcsvc.a
482 %{_libdir}/librt.a
483 %{_libdir}/libutil.a
484
485 %files profile
486 %defattr(644,root,root,755)
487 %{_libdir}/lib*_p.a
This page took 0.060568 seconds and 4 git commands to generate.