]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- reverted last modifcations and added proper linking ldconfig binary
[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:        19
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 gcc -nostdlib -nostartfiles -static -o ldconfig ../csu/crt1.o \
437         ../csu/crti.o `gcc --print-file-name=crtbegin.o` ldconfig.o \
438         ../libc.a -lgcc ../libc.a `gcc --print-file-name=crtend.o` \
439         ../csu/crtn.o
440
441 %install
442 rm -rf $RPM_BUILD_ROOT
443 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig,logrotate.d},%{_mandir}/man{3,8},var/{db,log}}
444
445 %{__make} install \
446         install_root=$RPM_BUILD_ROOT \
447         infodir=%{_infodir} \
448         mandir=%{_mandir}
449
450 %{__make} install-locales -C localedata \
451         install_root=$RPM_BUILD_ROOT
452
453 PICFILES="libc_pic.a libc.map 
454           math/libm_pic.a libm.map 
455           resolv/libresolv_pic.a"
456
457 install $PICFILES $RPM_BUILD_ROOT/%{_libdir}
458 install elf/soinit.os $RPM_BUILD_ROOT/%{_libdir}/soinit.o
459 install elf/sofini.os $RPM_BUILD_ROOT/%{_libdir}/sofini.o
460
461 %{__make} -C linuxthreads/man
462 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
463
464 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
465
466 ln -sf ../../..%{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
467 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
468 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
469 ln -sf libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
470 ln -sf libdb.a $RPM_BUILD_ROOT%{_libdir}/libdb2.a
471 ln -sf ../../lib/libdb.so.3 $RPM_BUILD_ROOT%{_libdir}/libdb2.so
472 ln -sf libdb.so.3 $RPM_BUILD_ROOT/lib/libdb2.so.3
473
474 %ifarch alpha
475 ln -sf libdb.so.2.1 $RPM_BUILD_ROOT/lib/libdb.so.2
476 %endif
477
478 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
479
480 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
481 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
482 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/nscd
483 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/utmpd
484 install %{SOURCE7} $RPM_BUILD_ROOT/etc/logrotate.d/nscd
485 install nscd/nscd.conf $RPM_BUILD_ROOT%{_sysconfdir}
486 install nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
487
488 install -s ldconfig-980708/ldconfig $RPM_BUILD_ROOT/sbin/ldconfig
489
490 install %{SOURCE11} $RPM_BUILD_ROOT%{_mandir}/man8
491 touch   $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.{cache,conf}
492
493 install nss/db-Makefile $RPM_BUILD_ROOT/var/db/Makefile
494 :> $RPM_BUILD_ROOT/var/log/nscd
495
496 cat << EOF > $RPM_BUILD_ROOT%{_bindir}/create-db
497 #!/bin/sh
498 /usr/bin/make -sC /var/db/
499 EOF
500
501 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
502
503 rm -rf documentation
504 install -d documentation
505
506 cp linuxthreads/ChangeLog  documentation/ChangeLog.threads
507 cp linuxthreads/Changes documentation/Changes.threads
508 cp linuxthreads/README documentation/README.threads
509 cp crypt/README documentation/README.crypt
510 cp ldconfig-980708/README ldconfig-980708/README.ldconfig
511
512 cp ChangeLog ChangeLog.8 documentation
513
514 gzip -9nf README NEWS FAQ BUGS NOTES PROJECTS \
515         $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
516         documentation/* login/README.utmpd ldconfig-980708/README.ldconfig
517
518 strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
519 strip --strip-unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
520         $RPM_BUILD_ROOT%{_libdir}/gconv/*.so
521
522 # Collect locale files and mark them with %%lang()
523 rm -f glibc.lang
524 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* ; do
525         if [ -d $i ]; then
526                 lang=`echo $i | sed -e 's/.*locale\///' -e 's/^\(..\).*/\1/'`
527                 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
528                 echo "%lang($lang) $dir" >>glibc.lang
529         fi
530 done
531
532 %post   -p /sbin/ldconfig
533 %postun -p /sbin/ldconfig
534
535 %post devel
536 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
537
538 %postun devel
539 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
540
541 %post -n nscd
542 /sbin/chkconfig --add nscd
543 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
544 if [ -f /var/lock/subsys/nscd ]; then
545         /etc/rc.d/init.d/nscd restart 1>&2
546 else
547         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
548 fi
549
550 %preun -n nscd
551 if [ "$1" = "0" ]; then
552         if [ -f /var/lock/subsys/nscd ]; then
553                 /etc/rc.d/init.d/nscd stop 1>&2
554         fi
555         /sbin/chkconfig --del nscd
556 fi
557
558 %post -n utmpd
559 /sbin/chkconfig --add utmpd
560 if [ -f /var/lock/subsys/utmpd ]; then
561         /etc/rc.d/init.d/utmpd restart 1>&2
562 else
563         echo "Run \"/etc/rc.d/init.d/utmpd start\" to start utmpd daemon." 1>&2
564 fi
565
566 %preun -n utmpd
567 if [ "$1" = "0" ]; then
568         if [ -f /var/lock/subsys/utmpd ]; then
569                 /etc/rc.d/init.d/utmpd stop 1>&2
570         fi
571         /sbin/chkconfig --del utmpd
572 fi
573
574 %post db1  -p /sbin/ldconfig
575 %postun db1 -p /sbin/ldconfig
576
577 %post db2  -p /sbin/ldconfig
578 %postun db2 -p /sbin/ldconfig
579
580 %clean
581 rm -rf $RPM_BUILD_ROOT
582
583 %files -f glibc.lang
584 %defattr(644,root,root,755)
585 %doc {README,NEWS,FAQ,BUGS,ldconfig-980708/README.ldconfig}.gz
586
587 %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nsswitch.conf
588 %config %{_sysconfdir}/rpc
589
590 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/ld.so.conf
591 %ghost %{_sysconfdir}/ld.so.cache
592
593 %attr(755,root,root) /sbin/*
594 %attr(755,root,root) %{_bindir}/catchsegv
595 %attr(755,root,root) %{_bindir}/create-db
596 %attr(755,root,root) %{_bindir}/getent
597 %attr(755,root,root) %{_bindir}/glibcbug
598 %attr(755,root,root) %{_bindir}/ldd
599 %ifnarch alpha
600 %attr(755,root,root) %{_bindir}/lddlibc4
601 %endif
602 %attr(755,root,root) %{_bindir}/locale
603 %attr(755,root,root) %{_bindir}/makedb
604 %attr(755,root,root) %{_bindir}/rpcgen
605 %attr(755,root,root) %{_bindir}/tzselect
606 %attr(755,root,root) %{_bindir}/update-db
607
608 %attr(755,root,root) %{_sbindir}/rpcinfo
609 %attr(755,root,root) %{_sbindir}/zdump
610 %attr(755,root,root) %{_sbindir}/zic
611
612 %attr(755,root,root) /lib/ld-*
613 %attr(755,root,root) /lib/libdl*
614 %attr(755,root,root) /lib/libnsl*
615 %attr(755,root,root) /lib/lib[BScmprtu]*
616
617 %{_mandir}/man8/*
618
619 %dir %{_datadir}/locale
620 %{_datadir}/locale/locale.alias
621 %{_datadir}/zoneinfo
622
623 #%files -n nss_db
624 %defattr(644,root,root,755)
625 %attr(755,root,root) /lib/libnss_db*.so*
626 %config /var/db/Makefile
627
628 #%files -n nss_dns
629 %defattr(644,root,root,755)
630 %attr(755,root,root) /lib/libnss_dns*.so*
631
632 #%files -n nss_files
633 %defattr(644,root,root,755)
634 %attr(755,root,root) /lib/libnss_files*.so*
635
636 %files -n nss_compat
637 %defattr(644,root,root,755)
638 %attr(755,root,root) /lib/libnss_compat*.so*
639
640 %files -n nss_hesiod
641 %defattr(644,root,root,755)
642 %attr(755,root,root) /lib/libnss_hesiod*.so*
643
644 %files -n nss_nis
645 %defattr(644,root,root,755)
646 %attr(755,root,root) /lib/libnss_nis.so.*
647 %attr(755,root,root) /lib/libnss_nis-*.so
648
649 %files -n nss_nisplus
650 %defattr(644,root,root,755)
651 %attr(755,root,root) /lib/libnss_nisplus*.so*
652
653 %files devel
654 %defattr(644,root,root,755)
655 %doc documentation/* {NOTES,PROJECTS}.gz
656 %attr(755,root,root) %{_bindir}/gencat
657 %attr(755,root,root) %{_bindir}/getconf
658 %attr(755,root,root) %{_bindir}/mtrace
659 %attr(755,root,root) %{_bindir}/sprof
660
661 %{_includedir}/*.h
662 %ifarch alpha
663 %{_includedir}/alpha
664 %endif
665 %{_includedir}/arpa
666 %{_includedir}/bits
667 %{_includedir}/gnu
668 %{_includedir}/net
669 %{_includedir}/netash
670 %{_includedir}/netatalk
671 %{_includedir}/netax25
672 %{_includedir}/neteconet
673 %{_includedir}/netinet
674 %{_includedir}/netipx
675 %{_includedir}/netpacket
676 %{_includedir}/netrom
677 %{_includedir}/netrose
678 %{_includedir}/nfs
679 %{_includedir}/protocols
680 %{_includedir}/rpc
681 %{_includedir}/rpcsvc
682 %{_includedir}/scsi
683 %{_includedir}/sys
684
685 %{_infodir}/libc.inf*.gz
686
687 %attr(755,root,root) %{_libdir}/lib[A-Z]*.so
688 %attr(755,root,root) %{_libdir}/libc*.so
689 %attr(755,root,root) %{_libdir}/libdl*.so
690 %attr(755,root,root) %{_libdir}/libm*.so
691 %attr(755,root,root) %{_libdir}/libns*.so
692 %attr(755,root,root) %{_libdir}/lib[p-z]*.so
693 %attr(755,root,root) %{_libdir}/*crt?.o
694 %{_libdir}/libc_nonshared.a
695
696 %{_mandir}/man3/*
697
698 %files -n nscd
699 %defattr(644,root,root,755)
700 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
701 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) %{_sysconfdir}/nscd.*
702 %attr(754,root,root) /etc/rc.d/init.d/nscd
703 %attr(755,root,root) %{_sbindir}/nscd
704 %attr(640,root,root) /etc/logrotate.d/nscd
705 %attr(640,root,root) %ghost /var/log/nscd
706
707 %files -n utmpd
708 %defattr(644,root,root,755)
709 %doc login/README.utmpd.gz
710 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/utmpd
711 %attr(754,root,root) /etc/rc.d/init.d/utmpd
712 %attr(755,root,root) %{_sbindir}/utmpd
713
714 %files -n localedb-src
715 %defattr(644,root,root,755)
716 %attr(755,root,root) %{_bindir}/localedef
717 %{_datadir}/i18n
718
719 %files -n iconv
720 %defattr(644,root,root,755)
721 %attr(755,root,root) %{_bindir}/iconv
722 %dir %{_libdir}/gconv
723 %{_libdir}/gconv/gconv-modules
724 %attr(755,root,root) %{_libdir}/gconv/*.so
725
726 %files static
727 %defattr(644,root,root,755)
728 %{_libdir}/libBrokenLocale.a
729 %{_libdir}/libbsd-compat.a
730 %{_libdir}/libbsd.a
731 %{_libdir}/libc.a
732 %{_libdir}/libcrypt.a
733 %{_libdir}/libdl.a
734 %{_libdir}/libg.a
735 %{_libdir}/libieee.a
736 %{_libdir}/libm.a
737 %{_libdir}/libmcheck.a
738 %{_libdir}/libnsl.a
739 %{_libdir}/libposix.a
740 %{_libdir}/libpthread.a
741 %{_libdir}/libresolv.a
742 %{_libdir}/librpcsvc.a
743 %{_libdir}/librt.a
744 %{_libdir}/libutil.a
745
746 %files profile
747 %defattr(644,root,root,755)
748 %{_libdir}/libBrokenLocale_p.a
749 %{_libdir}/libc_p.a
750 %{_libdir}/libcrypt_p.a
751 %{_libdir}/libdl_p.a
752 %{_libdir}/libm_p.a
753 %{_libdir}/libnsl_p.a
754 %{_libdir}/libpthread_p.a
755 %{_libdir}/libresolv_p.a
756 %{_libdir}/librpcsvc_p.a
757 %{_libdir}/librt_p.a
758 %{_libdir}/libutil_p.a
759
760 %files pic
761 %defattr(644,root,root,755)
762 %{_libdir}/lib*_pic.a
763 %{_libdir}/lib*.map
764 %{_libdir}/soinit.o
765 %{_libdir}/sofini.o
766
767 %files db1
768 %defattr(644,root,root,755)
769 %attr(755,root,root) /lib/libdb1*
770 %attr(755,root,root) /lib/libdb.so.2
771 %ifarch alpha
772 %attr(755,root,root) /lib/libdb.so.2.1
773 %endif
774
775 %files db1-devel
776 %defattr(644,root,root,755)
777 %attr(755,root,root) %{_bindir}/db_dump185
778 %attr(755,root,root) %{_libdir}/libdb1.so
779 %{_includedir}/db1
780
781 %files db1-static
782 %defattr(644,root,root,755)
783 %{_libdir}/libdb1.a
784
785 %files db2
786 %defattr(644,root,root,755)
787 %attr(755,root,root) /lib/libdb-*
788 %attr(755,root,root) /lib/libdb.so.3
789 %attr(755,root,root) /lib/libdb2.so.3
790
791 %files db2-devel
792 %defattr(644,root,root,755)
793 %attr(755,root,root) %{_bindir}/db_archive
794 %attr(755,root,root) %{_bindir}/db_checkpoint
795 %attr(755,root,root) %{_bindir}/db_deadlock
796 %attr(755,root,root) %{_bindir}/db_dump
797 %attr(755,root,root) %{_bindir}/db_load
798 %attr(755,root,root) %{_bindir}/db_printlog
799 %attr(755,root,root) %{_bindir}/db_recover
800 %attr(755,root,root) %{_bindir}/db_stat
801 %attr(755,root,root) %{_libdir}/libdb.so
802 %attr(755,root,root) %{_libdir}/libdb2.so
803 %attr(755,root,root) %{_libdir}/libndbm.so
804 %{_includedir}/db*.h
805
806 %files db2-static
807 %defattr(644,root,root,755)
808 %{_libdir}/libdb.a
809 %{_libdir}/libdb2.a
810 %{_libdir}/libndbm.a
This page took 0.086347 seconds and 4 git commands to generate.