]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- release 20
[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:        20
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 Source10:       ftp://ftp.yggdrasil.com/private/hjl/ldconfig-980708.tar.gz
22 Source11:       ldconfig.8
23 Patch0:         glibc-2.1-CVS-20000905.patch.bz2
24 Patch1:         glibc-info.patch
25 Patch2:         glibc-versions.awk_fix.patch
26 Patch3:         glibc-pld.patch
27 Patch4:         glibc-crypt-blowfish.patch
28 Patch5:         glibc-string2-pointer-arith.patch
29 Patch6:         glibc-db2-alpha-mutex.patch
30 Patch7:         glibc-linuxthreads-lock.patch
31 Patch8:         glibc-pthread_create-manpage.patch
32 Patch9:         glibc-sparc-linux-chown.patch
33 Patch10:        ldconfig-glibc.patch
34 Patch11:        ldconfig-bklinks.patch
35 Patch12:        glibc-cvs-20000824-md5-align-clean.patch.gz
36 URL:            http://www.gnu.org/software/libc/
37 BuildRequires:  perl
38 Provides:       ld.so.2
39 Provides:       ldconfig
40 Provides:       /sbin/ldconfig
41 Obsoletes:      %{name}-profile
42 Obsoletes:      %{name}-debug
43 Obsoletes:      ldconfig
44 Prereq:         basesystem
45 Autoreq:        false
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 Contains the standard libraries that are used by multiple programs on
50 the system. In order to save disk space and memory, as well as to ease
51 upgrades, common system code is kept in one place and shared between
52 programs. This package contains the most important sets of shared
53 libraries, the standard C library and the standard math library.
54 Without these, a Linux system will not function. It also contains
55 national language (locale) support and timezone databases.
56
57 %description -l de
58 Enthält die Standard-Libraries, die von verschiedenen Programmen im
59 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
60 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
61 einer einzigen Stelle gespeichert und wird von den Programmen
62 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
63 shared Libraries, die Standard-C-Library und die
64 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
65 Ferner enthält es den Support für die verschiedenen Sprachgregionen
66 (locale) und die Zeitzonen-Datenbank.
67
68 %description -l fr
69 Contient les bibliothèques standards utilisées par de nombreux
70 programmes du système. Afin d'économiser l'espace disque et mémoire,
71 et de faciliter les mises à jour, le code commun au système est mis à
72 un endroit et partagé entre les programmes. Ce paquetage contient les
73 bibliothèques partagées les plus importantes, la bibliothèque standard
74 du C et la bibliothèque mathématique standard. Sans celles-ci, un
75 système Linux ne peut fonctionner. Il contient aussi la gestion des
76 langues nationales (locales) et les bases de données des zones
77 horaires.
78
79 %description -l pl
80 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
81 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
82 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
83 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
84 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
85 standardowych wspó³dzielonych (dynamicznych) bibliotek C i
86 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
87 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
88 jêzyków (locale) oraz definicje stref czasowych.
89
90 %description -l tr
91 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
92 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
93 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
94 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
95 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
96 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
97 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
98
99 %package devel
100 Summary:        Additional libraries required to compile
101 Summary(de):    Weitere Libraries zum Kompilieren
102 Summary(fr):    Librairies supplémentaires nécessaires à la compilation.
103 Summary(pl):    Dodatkowe biblioteki wymagane podczas kompilacji
104 Summary(tr):    Geliþtirme için gerekli diðer kitaplýklar
105 Group:          Development/Libraries
106 Group(fr):      Development/Librairies
107 Group(pl):      Programowanie/Biblioteki
108 Requires:       %{name} = %{version}
109
110 %description devel
111 To develop programs which use the standard C libraries (which nearly
112 all programs do), the system needs to have these standard header files
113 and object files available for creating the executables.
114
115 %description -l de devel
116 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
117 verwenden (also fast alle), benötigt das System diese Standard-Header-
118 und Objektdateien zum Erstellen der ausführbaren Programme.
119
120 %description -l fr devel
121 Pour développer des programmes utilisant les bibliothèques standard du
122 C (ce que presque tous les programmes font), le système doit posséder
123 ces fichiers en-têtes et objets standards pour créer les exécutables.
124
125 %description -l pl devel
126 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
127 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
128 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
129 wykonywalnych i innych bibliotek.
130
131 %description -l tr devel
132 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
133 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
134 kitaplýklar.
135
136 %package -n nss_compat
137 Summary:        Old style NYS NSS glibc module
138 Group:          Base
139 Requires:       %{name} = %{version}
140
141 %description -n nss_compat
142 Old style NYS NSS glibc module
143
144 %package -n nss_db
145 Summary:        Berkeley DB NSS glibc module
146 Group:          Base
147 Requires:       %{name} = %{version}
148
149 %description -n nss_db
150 Berkeley DB NSS glibc module.
151
152 %package -n nss_dns
153 Summary:        BIND NSS glibc module
154 Group:          Base
155 Requires:       %{name} = %{version}
156
157 %description -n nss_dns
158 BIND NSS glibc module.
159
160 %package -n nss_files
161 Summary:        Traditional files databases NSS glibc module
162 Group:          Base
163 Requires:       %{name} = %{version}
164
165 %description -n nss_files
166 Traditional files databases NSS glibc module.
167
168 %package -n nss_hesiod
169 Summary:        Hesiod NSS glibc module
170 Group:          Base
171 Requires:       %{name} = %{version}
172
173 %description -n nss_hesiod
174 Glibc NSS (Name Service Switch) module for databases acces.
175
176 %package -n nss_nis
177 Summary:        NIS(YP) NSS glibc module
178 Group:          Base
179 Requires:       %{name} = %{version}
180
181 %description -n nss_nis
182 Glibc NSS (Name Service Switch) module for NIS(YP) databases acces.
183
184 %package -n nss_nisplus
185 Summary:        NIS+ NSS module
186 Group:          Base
187 Requires:       %{name} = %{version}
188
189 %description -n nss_nisplus
190 Glibc NSS (Name Service Switch) module for NIS+ databases acces.
191
192 %package -n nscd
193 Summary:        Name Service Caching Daemon
194 Summary(pl):    Name Service Caching Daemon
195 Group:          Networking/Daemons
196 Group(pl):      Sieciowe/Serwery
197 Prereq:         /sbin/chkconfig
198 Requires:       rc-scripts >= 0.2.0
199
200 %description -n nscd
201 nscd caches name service lookups; it can dramatically improve
202 performance with NIS+, and may help with DNS as well. You cannot use
203 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
204 nscd happens to hit these bugs particularly hard.
205
206 %description -n nscd -l pl
207 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
208 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
209 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów po stronie j±dra w
210 ods³udze w±tków.
211
212 %package -n utmpd
213 Summary:        utmp and utmpx synchronizer for libc5 applications.
214 Summary(pl):    Synchrnnizuje zapis do plików utmp i utmpx.
215 Group:          Daemons
216 Group(pl):      Serwery
217 Prereq:         /sbin/chkconfig
218 Requires:       rc-scripts >= 0.2.0
219
220 %description -n utmpd
221 utmpd is a utmp and utmpx synchronizer. Is only needed for libc5 based
222 program with utmp access.
223
224 %description -n utmpd -l pl
225 utmpd stara siê utrzymaæ tak± sam± zawarto¶æ plików /var/run/utmp i
226 /var/run/utmpx. Potrzebny jest tylko w przypadku korzystania ze
227 starszych programów (bazuj±cych na libc5).
228
229 %package -n localedb-src
230 Summary:        Souce code locale database
231 Summary(pl):    Kod ¬ród³owy bazy locale
232 Group:          Daemons
233 Group(pl):      Serwery
234
235 %description -n localedb-src
236 This add-on package contains the data needed to build the locale data
237 files to use the internationalization features of the GNU libc. Glibc
238 package contains standard set of locale binary database and You need
239 this package if want build some non standard locale database.
240
241 %description -l pl -n localedb-src
242 Pakiet ten kod ¼ród³owy baz locale który jest potrzebny do zbudowania
243 binarnej wersji baz locale potrzebnej do poprawnego wspierania ró¿nych
244 jêzyków przez glibc. Pakiet glibc zawira binarn± wersjê standardowych
245 baz locale i ten pakiet jest potrzebny tylko w sytuacji kiedy potrzeba
246 wygenerowaæ jak±¶ niestandardow± bazê.
247
248 %package -n iconv
249 Summary:        Convert encoding of given files from one encoding to another
250 Summary(pl):    Program do konwersji plików tekstowych z jednego enkodingu w inny
251 Group:          Daemons
252 Group(pl):      Serwery
253
254 %description -n iconv
255 Convert encoding of given files from one encoding to another. You need
256 this package if You want to convert some documet from one encoding to
257 another or if You have installed some programs which use Generic
258 Character Set Conversion Interface.
259
260 %description -l pl -n iconv
261 Program do konwersji plików tekstowych z jednego enkodingu w inny.
262 Potrzebujesz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
263 dokumentów z jednego enkodingu w inny lub je¿eli masz zainstalowane
264 jakie¶ programy które korzystaj± z Generic Character Set Conversion
265 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
266 umo¿liwiaj± konwersjê enkodingu danych z poziomu dowolnego programu.
267
268 %package static
269 Summary:        Static libraries
270 Summary(pl):    Biblioteki statyczne
271 Group:          Development/Libraries
272 Group(fr):      Development/Librairies
273 Group(pl):      Programowanie/Biblioteki
274 Requires:       %{name}-devel = %{version}
275
276 %description static
277 GNU libc static libraries.
278
279 %description -l pl static
280 Biblioteki statyczne GNU libc.
281
282 %package profile
283 Summary:        glibc with profiling support
284 Summary(de):    glibc mit Profil-Unterstützung
285 Summary(fr):    glibc avec support pour profiling
286 Summary(tr):    Ölçüm desteði olan glibc
287 Group:          Development/Libraries/Libc
288 Group(pl):      Programowanie/Biblioteki/Libc
289 Obsoletes:      libc-profile
290 Requires:       %{name}-devel = %{version}
291
292 %description profile
293 When programs are being profiled used gprof, they must use these
294 libraries instead of the standard C libraries for gprof to be able to
295 profile them correctly.
296
297 %description -l de profile
298 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
299 Libraries anstelle der üblichen C-Libraries verwendet werden.
300
301 %description -l tr profile
302 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
303 kitaplýðý kullanmak zorundadýrlar.
304
305 %package pic
306 Summary:        glibc PIC archive 
307 Group:          Development/Libraries/Libc
308 Group(pl):      Programowanie/Biblioteki/Libc
309 Requires:       %{name}-devel = %{version}
310
311 %description pic
312 GNU C Library PIC archive contains an archive library (ar file) composed
313 of individual shared objects. This is used for creating a library which
314 is a smaller subset of the standard libc shared library.
315
316 %package db1
317 Summary:        BSD database library for C
318 Group:          Libraries
319 PreReq:         /sbin/ldconfig
320 Provides:       db1
321
322 %description db1
323 The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
324 embedded database support for both traditional and client/server applications.
325 It should be installed if compatibility is needed with databases created with
326 db1. This library used to be part of the glibc package.
327
328 %package db1-devel
329 Summary:        Development libraries and header files for Berkeley database library
330 Group:          Development/Libraries
331 Group(fr):      Development/Librairies
332 Group(pl):      Programowanie/Biblioteki
333 Requires:       %{name}-db1 = %{version}
334 Provides:       db1-devel
335
336 %description db1-devel
337 The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
338 embedded database support for both traditional and client/server applications.
339 Berkeley DB includes B tree, Hashing, Fixed and Variable-length record access
340 methods.
341
342 This package contains the header files, libraries, and documentation
343 for building programs which use Berkeley DB.
344
345 %package db1-static
346 Summary:        Static libraries for Berkeley database library
347 Group:          Development/Libraries
348 Group(fr):      Development/Librairies
349 Group(pl):      Programowanie/Biblioteki
350 Requires:       %{name}-db1-devel = %{version}
351 Provides:       db1-static
352
353 %description db1-static
354 The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
355 embedded database support for both traditional and client/server applications.
356 Berkeley DB includes B tree, Hashing, Fixed and Variable-length record access
357 methods.
358
359 This package contains the static libraries for building programs which use
360 Berkeley DB.
361
362 %package db2
363 Summary:        BSD database library for C
364 Group:          Libraries
365 PreReq:         /sbin/ldconfig
366 Provides:       db2
367
368 %description db2
369 The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
370 embedded database support for both traditional and client/server applications.
371 This library used to be part of the glibc package.
372
373 %package db2-devel
374 Summary:        Development libraries and header files for Berkeley database library
375 Group:          Development/Libraries
376 Group(fr):      Development/Librairies
377 Group(pl):      Programowanie/Biblioteki
378 Requires:       %{name}-db2 = %{version}
379 Provides:       db2-devel
380
381 %description db2-devel
382 The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
383 embedded database support for both traditional and client/server applications.
384 Berkeley DB includes B tree, Hashing, Fixed and Variable-length record access
385 methods.
386
387 This package contains the header files, libraries, and documentation
388 for building programs which use Berkeley DB.
389
390 %package db2-static
391 Summary:        Static libraries for Berkeley database library
392 Group:          Development/Libraries
393 Group(fr):      Development/Librairies
394 Group(pl):      Programowanie/Biblioteki
395 Requires:       %{name}-db2-devel = %{version}
396 Provides:       db2-static
397
398 %description db2-static
399 The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
400 embedded database support for both traditional and client/server applications.
401 Berkeley DB includes B tree, Hashing, Fixed and Variable-length record access
402 methods.
403
404 This package contains the static libraries for building programs which use
405 Berkeley DB.
406
407 %prep
408 %setup -q -a 1 -a 2 -a 10
409 %patch0 -p1
410 %patch1 -p1
411 %patch2 -p1
412 %patch3 -p1
413 %patch4 -p1
414 %patch5 -p1
415 %patch6 -p1
416 %patch7 -p1
417 %patch8 -p1
418 %patch9 -p1
419 %patch12 -p1
420 cd ldconfig-980708
421 %patch10 -p1
422 %patch11 -p1
423
424 %build
425 %configure \
426         --enable-add-ons=crypt,linuxthreads \
427         --enable-profile \
428         --disable-omitfp
429
430 %{__make}
431
432 cd ldconfig-980708
433 rm -f ldconfig
434 gcc -c $RPM_OPT_FLAGS -D_LIBC ldconfig.c -o ldconfig.o
435
436 %ifarch alpha
437 gcc -nostdlib -nostartfiles -static -o ldconfig ../csu/crt1.o \
438         ../csu/crti.o ../csu/crtbegin.o ldconfig.o \
439         ../libc.a -lgcc ../libc.a ../csu/crtend.o \
440         ../csu/crtn.o
441 %else
442 gcc -nostdlib -nostartfiles -static -o ldconfig ../csu/crt1.o \
443         ../csu/crti.o `gcc --print-file-name=crtbegin.o` ldconfig.o \
444         ../libc.a -lgcc ../libc.a `gcc --print-file-name=crtend.o` \
445         ../csu/crtn.o
446 %endif
447
448 %install
449 rm -rf $RPM_BUILD_ROOT
450 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man{3,8},var/{db,log}}
451
452 %{__make} install \
453         install_root=$RPM_BUILD_ROOT \
454         infodir=%{_infodir} \
455         mandir=%{_mandir}
456
457 %{__make} install-locales -C localedata \
458         install_root=$RPM_BUILD_ROOT
459
460 PICFILES="libc_pic.a libc.map 
461           math/libm_pic.a libm.map 
462           resolv/libresolv_pic.a"
463
464 install $PICFILES $RPM_BUILD_ROOT/%{_libdir}
465 install elf/soinit.os $RPM_BUILD_ROOT/%{_libdir}/soinit.o
466 install elf/sofini.os $RPM_BUILD_ROOT/%{_libdir}/sofini.o
467
468 %{__make} -C linuxthreads/man
469 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
470
471 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
472
473 ln -sf ../../..%{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
474 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
475 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
476 ln -sf libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
477 ln -sf libdb.a $RPM_BUILD_ROOT%{_libdir}/libdb2.a
478 ln -sf ../../lib/libdb.so.3 $RPM_BUILD_ROOT%{_libdir}/libdb2.so
479 ln -sf libdb.so.3 $RPM_BUILD_ROOT/lib/libdb2.so.3
480
481 %ifarch alpha
482 ln -sf libdb.so.2.1 $RPM_BUILD_ROOT/lib/libdb.so.2
483 %endif
484
485 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
486
487 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
488 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
489 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/nscd
490 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/utmpd
491 install %{SOURCE7} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
492 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
493 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
494
495 install -s ldconfig-980708/ldconfig $RPM_BUILD_ROOT/sbin/ldconfig
496
497 install %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man8
498 touch   $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.{cache,conf}
499
500 install nss/db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
501 :> $RPM_BUILD_ROOT/var/log/nscd
502
503 cat << EOF > $RPM_BUILD_ROOT%{_bindir}/create-db
504 #!/bin/sh
505 /usr/bin/make -sC /var/db/
506 EOF
507
508 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
509
510 rm -rf documentation
511 install -d documentation
512
513 cp linuxthreads/ChangeLog  documentation/ChangeLog.threads
514 cp linuxthreads/Changes documentation/Changes.threads
515 cp linuxthreads/README documentation/README.threads
516 cp crypt/README documentation/README.crypt
517 cp ldconfig-980708/README ldconfig-980708/README.ldconfig
518
519 cp ChangeLog ChangeLog.8 documentation
520
521 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS \
522         $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
523         documentation/* login/README.utmpd ldconfig-980708/README.ldconfig
524
525 strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
526 strip --strip-unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
527         $RPM_BUILD_ROOT%{_libdir}/gconv/*.so
528
529 # Collect locale files and mark them with %%lang()
530 rm -f glibc.lang
531 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* ; do
532         if [ -d $i ]; then
533                 lang=`echo $i | sed -e 's/.*locale\///' -e 's/^\(..\).*/\1/'`
534                 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
535                 echo "%lang($lang) $dir" >>glibc.lang
536         fi
537 done
538
539 %post   -p /sbin/ldconfig
540 %postun -p /sbin/ldconfig
541
542 %post devel
543 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
544
545 %postun devel
546 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
547
548 %post -n nscd
549 /sbin/chkconfig --add nscd
550 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
551 if [ -f /var/lock/subsys/nscd ]; then
552         /etc/rc.d/init.d/nscd restart 1>&2
553 else
554         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
555 fi
556
557 %preun -n nscd
558 if [ "$1" = "0" ]; then
559         if [ -f /var/lock/subsys/nscd ]; then
560                 /etc/rc.d/init.d/nscd stop 1>&2
561         fi
562         /sbin/chkconfig --del nscd
563 fi
564
565 %post -n utmpd
566 /sbin/chkconfig --add utmpd
567 if [ -f /var/lock/subsys/utmpd ]; then
568         /etc/rc.d/init.d/utmpd restart 1>&2
569 else
570         echo "Run \"/etc/rc.d/init.d/utmpd start\" to start utmpd daemon." 1>&2
571 fi
572
573 %preun -n utmpd
574 if [ "$1" = "0" ]; then
575         if [ -f /var/lock/subsys/utmpd ]; then
576                 /etc/rc.d/init.d/utmpd stop 1>&2
577         fi
578         /sbin/chkconfig --del utmpd
579 fi
580
581 %post db1  -p /sbin/ldconfig
582 %postun db1 -p /sbin/ldconfig
583
584 %post db2  -p /sbin/ldconfig
585 %postun db2 -p /sbin/ldconfig
586
587 %clean
588 rm -rf $RPM_BUILD_ROOT
589
590 %files -f glibc.lang
591 %defattr(644,root,root,755)
592 %doc {README,NEWS,FAQ,BUGS,ldconfig-980708/README.ldconfig}.gz
593
594 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nsswitch.conf
595 %config %{_sysconfdir}/rpc
596
597 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ld.so.conf
598 %ghost %{_sysconfdir}/ld.so.cache
599
600 %attr(755,root,root) /sbin/*
601 %attr(755,root,root) %{_bindir}/catchsegv
602 %attr(755,root,root) %{_bindir}/create-db
603 %attr(755,root,root) %{_bindir}/getent
604 %attr(755,root,root) %{_bindir}/glibcbug
605 %attr(755,root,root) %{_bindir}/ldd
606 %ifnarch alpha
607 %attr(755,root,root) %{_bindir}/lddlibc4
608 %endif
609 %attr(755,root,root) %{_bindir}/locale
610 %attr(755,root,root) %{_bindir}/makedb
611 %attr(755,root,root) %{_bindir}/rpcgen
612 %attr(755,root,root) %{_bindir}/tzselect
613 %attr(755,root,root) %{_bindir}/update-db
614
615 %attr(755,root,root) %{_sbindir}/rpcinfo
616 %attr(755,root,root) %{_sbindir}/zdump
617 %attr(755,root,root) %{_sbindir}/zic
618
619 %attr(755,root,root) /lib/ld-*
620 %attr(755,root,root) /lib/libdl*
621 %attr(755,root,root) /lib/libnsl*
622 %attr(755,root,root) /lib/lib[BScmprtu]*
623
624 %{_mandir}/man8/*
625
626 %dir %{_datadir}/locale
627 %{_datadir}/locale/locale.alias
628 %{_datadir}/zoneinfo
629
630 #%files -n nss_db
631 %defattr(644,root,root,755)
632 %attr(755,root,root) /lib/libnss_db*.so*
633 %config /var/db/Makefile
634
635 #%files -n nss_dns
636 %defattr(644,root,root,755)
637 %attr(755,root,root) /lib/libnss_dns*.so*
638
639 #%files -n nss_files
640 %defattr(644,root,root,755)
641 %attr(755,root,root) /lib/libnss_files*.so*
642
643 %files -n nss_compat
644 %defattr(644,root,root,755)
645 %attr(755,root,root) /lib/libnss_compat*.so*
646
647 %files -n nss_hesiod
648 %defattr(644,root,root,755)
649 %attr(755,root,root) /lib/libnss_hesiod*.so*
650
651 %files -n nss_nis
652 %defattr(644,root,root,755)
653 %attr(755,root,root) /lib/libnss_nis.so.*
654 %attr(755,root,root) /lib/libnss_nis-*.so
655
656 %files -n nss_nisplus
657 %defattr(644,root,root,755)
658 %attr(755,root,root) /lib/libnss_nisplus*.so*
659
660 %files devel
661 %defattr(644,root,root,755)
662 %doc documentation/* {NOTES,PROJECTS}.gz
663 %attr(755,root,root) %{_bindir}/gencat
664 %attr(755,root,root) %{_bindir}/getconf
665 %attr(755,root,root) %{_bindir}/mtrace
666 %attr(755,root,root) %{_bindir}/sprof
667
668 %{_includedir}/*.h
669 %ifarch alpha
670 %{_includedir}/alpha
671 %endif
672 %{_includedir}/arpa
673 %{_includedir}/bits
674 %{_includedir}/gnu
675 %{_includedir}/net
676 %{_includedir}/netash
677 %{_includedir}/netatalk
678 %{_includedir}/netax25
679 %{_includedir}/neteconet
680 %{_includedir}/netinet
681 %{_includedir}/netipx
682 %{_includedir}/netpacket
683 %{_includedir}/netrom
684 %{_includedir}/netrose
685 %{_includedir}/nfs
686 %{_includedir}/protocols
687 %{_includedir}/rpc
688 %{_includedir}/rpcsvc
689 %{_includedir}/scsi
690 %{_includedir}/sys
691
692 %{_infodir}/libc.inf*.gz
693
694 %attr(755,root,root) %{_libdir}/lib[A-Z]*.so
695 %attr(755,root,root) %{_libdir}/libc*.so
696 %attr(755,root,root) %{_libdir}/libdl*.so
697 %attr(755,root,root) %{_libdir}/libm*.so
698 %attr(755,root,root) %{_libdir}/libns*.so
699 %attr(755,root,root) %{_libdir}/lib[p-z]*.so
700 %attr(755,root,root) %{_libdir}/*crt*.o
701 %{_libdir}/libc_nonshared.a
702
703 %{_mandir}/man3/*
704
705 %files -n nscd
706 %defattr(644,root,root,755)
707 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
708 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nscd.*
709 %attr(754,root,root) /etc/rc.d/init.d/nscd
710 %attr(755,root,root) %{_sbindir}/nscd
711 %attr(640,root,root) /etc/logrotate.d/nscd
712 %attr(640,root,root) %ghost /var/log/nscd
713
714 %files -n utmpd
715 %defattr(644,root,root,755)
716 %doc login/README.utmpd.gz
717 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/utmpd
718 %attr(754,root,root) /etc/rc.d/init.d/utmpd
719 %attr(755,root,root) %{_sbindir}/utmpd
720
721 %files -n localedb-src
722 %defattr(644,root,root,755)
723 %attr(755,root,root) %{_bindir}/localedef
724 %{_datadir}/i18n
725
726 %files -n iconv
727 %defattr(644,root,root,755)
728 %attr(755,root,root) %{_bindir}/iconv
729 %dir %{_libdir}/gconv
730 %{_libdir}/gconv/gconv-modules
731 %attr(755,root,root) %{_libdir}/gconv/*.so
732
733 %files static
734 %defattr(644,root,root,755)
735 %{_libdir}/libBrokenLocale.a
736 %{_libdir}/libbsd-compat.a
737 %{_libdir}/libbsd.a
738 %{_libdir}/libc.a
739 %{_libdir}/libcrypt.a
740 %{_libdir}/libdl.a
741 %{_libdir}/libg.a
742 %{_libdir}/libieee.a
743 %{_libdir}/libm.a
744 %{_libdir}/libmcheck.a
745 %{_libdir}/libnsl.a
746 %{_libdir}/libposix.a
747 %{_libdir}/libpthread.a
748 %{_libdir}/libresolv.a
749 %{_libdir}/librpcsvc.a
750 %{_libdir}/librt.a
751 %{_libdir}/libutil.a
752
753 %files profile
754 %defattr(644,root,root,755)
755 %{_libdir}/libBrokenLocale_p.a
756 %{_libdir}/libc_p.a
757 %{_libdir}/libcrypt_p.a
758 %{_libdir}/libdl_p.a
759 %{_libdir}/libm_p.a
760 %{_libdir}/libnsl_p.a
761 %{_libdir}/libpthread_p.a
762 %{_libdir}/libresolv_p.a
763 %{_libdir}/librpcsvc_p.a
764 %{_libdir}/librt_p.a
765 %{_libdir}/libutil_p.a
766
767 %files pic
768 %defattr(644,root,root,755)
769 %{_libdir}/lib*_pic.a
770 %{_libdir}/lib*.map
771 %{_libdir}/soinit.o
772 %{_libdir}/sofini.o
773
774 %files db1
775 %defattr(644,root,root,755)
776 %attr(755,root,root) /lib/libdb1*
777 %attr(755,root,root) /lib/libdb.so.2
778 %ifarch alpha
779 %attr(755,root,root) /lib/libdb.so.2.1
780 %endif
781
782 %files db1-devel
783 %defattr(644,root,root,755)
784 %attr(755,root,root) %{_bindir}/db_dump185
785 %attr(755,root,root) %{_libdir}/libdb1.so
786 %{_includedir}/db1
787
788 %files db1-static
789 %defattr(644,root,root,755)
790 %{_libdir}/libdb1.a
791
792 %files db2
793 %defattr(644,root,root,755)
794 %attr(755,root,root) /lib/libdb-*
795 %attr(755,root,root) /lib/libdb.so.3
796 %attr(755,root,root) /lib/libdb2.so.3
797
798 %files db2-devel
799 %defattr(644,root,root,755)
800 %attr(755,root,root) %{_bindir}/db_archive
801 %attr(755,root,root) %{_bindir}/db_checkpoint
802 %attr(755,root,root) %{_bindir}/db_deadlock
803 %attr(755,root,root) %{_bindir}/db_dump
804 %attr(755,root,root) %{_bindir}/db_load
805 %attr(755,root,root) %{_bindir}/db_printlog
806 %attr(755,root,root) %{_bindir}/db_recover
807 %attr(755,root,root) %{_bindir}/db_stat
808 %attr(755,root,root) %{_libdir}/libdb.so
809 %attr(755,root,root) %{_libdir}/libdb2.so
810 %attr(755,root,root) %{_libdir}/libndbm.so
811 %{_includedir}/db*.h
812
813 %files db2-static
814 %defattr(644,root,root,755)
815 %{_libdir}/libdb.a
816 %{_libdir}/libdb2.a
817 %{_libdir}/libndbm.a
This page took 0.127176 seconds and 4 git commands to generate.