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