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