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