]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
This commit was manufactured by cvs2git to create branch 'AC-branch'.
[packages/glibc.git] / glibc.spec
1 #
2 # You can define min_kernel macro by "rpm --define 'min_kernel version'"
3 # default is 2.4.6 for linuxthreads, 2.6.0 for NPTL
4 #
5 # Conditional build:
6 %bcond_with     omitfp          # build without frame pointer (pass \--enable-omitfp)
7 %bcond_without  memusage        # don't build memusage utility
8 %bcond_with     kernelheaders   # use headers from %{_kernelsrcdir} instead of
9                                 # linux-libc-headers (evil, breakage etc., don't use)
10 %bcond_without  linuxthreads    # don't build linuxthreads version (NPTL only)
11 %bcond_without  nptl            # don't build NPTL version (linuxthreads only)
12 %bcond_without  tls             # don't support TLS at all (implies no NPTL)
13 %bcond_with     __thread        # use TLS in linuxthreads
14 %bcond_without  selinux         # without SELinux support (in nscd)
15 %bcond_with     tests           # perform "make test"
16 %bcond_with     tests_nptl      # perform NPTL tests on dual build (requires 2.6.x kernel)
17 %bcond_without  localedb        # don't build localedb-all (is time consuming)
18 %bcond_with     cross           # build using crossgcc (without libgcc_eh)
19 %bcond_with     boot64          # bootstrap *64 using cross* (sparc64 currently)
20 %bcond_with     pax             # build in PaX enabled environment (PaX hack is default BTW)
21 #
22 # TODO:
23 # - look at locale fixes/updates in bugzilla
24 # [OLD]
25 # - localedb-gen man pages(?)
26 # - fix what trojan broke while upgreading (getaddrinfo-workaround)
27 # - math/{test-fenv,test-tgmath,test-float,test-ifloat},
28 #   linuxthreads/tst-cancel8, debug/backtrace-tst(SEGV)  fail on alpha
29 # - problem compiling with --enable-bounded (must be reported to libc-alpha)
30 #   (is this comment still valid???)
31 #
32
33 %{!?min_kernel:%global          min_kernel      2.4.6}
34 %if "%{min_kernel}" < "2.6.0"
35 %global         nptl_min_kernel 2.6.0
36 %else
37 %global         nptl_min_kernel %{min_kernel}
38 %endif
39
40 %if %{with tls}
41 # sparc temporarily removed (broken)
42 %ifnarch %{ix86} %{x8664} ia64 alpha s390 s390x
43 # sparc64 sparcv9 ppc ppc64  -- disabled in AC (gcc < 3.4)
44 %undefine       with_tls
45 %endif
46 %endif
47
48 %if %{with nptl}
49 # on x86 uses cmpxchgl (available since i486)
50 # on sparc only sparcv9 is supported
51 %ifnarch i486 i586 i686 pentium3 pentium4 athlon %{x8664} ia64 alpha s390 s390x
52 # sparc64 sparcv9 ppc ppc64  -- disabled in AC (gcc < 3.4)
53 %undefine       with_nptl
54 %else
55 %if %{without tls}
56 %undefine       with_nptl
57 %endif
58 %endif
59 %endif
60
61 %ifarch sparc64
62 %undefine       with_memusage
63 %endif
64 %if %{with boot64}
65 %define         with_cross      1
66 %undefine       with_selinux
67 %ifarch sparc64
68 %define         __cc    sparc64-pld-linux-gcc
69 %endif
70 %endif
71
72 %if %{with linuxthreads} && %{with nptl}
73 %define         with_dual       1
74 %endif
75
76 %define         llh_version     7:2.6.10.0-3
77
78 Summary:        GNU libc
79 Summary(de.UTF-8):      GNU libc
80 Summary(es.UTF-8):      GNU libc
81 Summary(fr.UTF-8):      GNU libc
82 Summary(ja.UTF-8):      GNU libc ライブラリ
83 Summary(pl.UTF-8):      GNU libc
84 Summary(ru.UTF-8):      GNU libc версии 2.3
85 Summary(tr.UTF-8):      GNU libc
86 Summary(uk.UTF-8):      GNU libc версії 2.3
87 Name:           glibc
88 Version:        2.3.6
89 Release:        20
90 Epoch:          6
91 License:        LGPL
92 Group:          Libraries
93 Source0:        ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
94 # Source0-md5:  bfdce99f82d6dbcb64b7f11c05d6bc96
95 Source1:        ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
96 # Source1-md5:  d4eeda37472666a15cc1f407e9c987a9
97 Source2:        nscd.init
98 Source3:        nscd.sysconfig
99 Source4:        nscd.logrotate
100 #Source5:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
101 Source5:        http://qboosh.cs.net.pl/man/%{name}-man-pages.tar.bz2
102 # Source5-md5:  f464eadf3cf06761f65639e44a179e6b
103 Source6:        %{name}-localedb-gen
104 Source7:        %{name}-LD-path.c
105 Source8:        inotify.h
106 Patch0:         %{name}-info.patch
107 Patch1:         %{name}-pl.po-update.patch
108 Patch2:         %{name}-pld.patch
109 Patch3:         %{name}-crypt-blowfish.patch
110 Patch4:         %{name}-linuxthreads-lock.patch
111 Patch5:         %{name}-pthread_create-manpage.patch
112 Patch6:         %{name}-paths.patch
113 Patch7:         %{name}-dl-execstack.patch
114 Patch8:         %{name}-missing-nls.patch
115 Patch9:         %{name}-java-libc-wait.patch
116 Patch10:        %{name}-lthrds_noomit.patch
117 Patch11:        %{name}-no_opt_override.patch
118 Patch12:        %{name}-includes.patch
119 Patch13:        %{name}-soinit-EH_FRAME.patch
120 Patch14:        %{name}-sparc-errno_fix.patch
121 Patch15:        %{name}-csu-quotes.patch
122 Patch16:        %{name}-tests-noproc.patch
123 Patch17:        %{name}-new-charsets.patch
124 Patch18:        %{name}-sr_CS.patch
125 Patch19:        %{name}-sparc64-dl-machine.patch
126 Patch20:        %{name}-tzfile-noassert.patch
127 Patch21:        %{name}-morelocales.patch
128 Patch22:        %{name}-locale_ZA.patch
129 Patch23:        %{name}-locale_fixes.patch
130 Patch24:        %{name}-ZA_collate.patch
131 Patch25:        %{name}-tls_fix.patch
132 Patch26:        %{name}-iconvconfig-nxstack.patch
133 Patch27:        %{name}-sys-kd.patch
134 Patch28:        %{name}-cross-gcc_eh.patch
135 # WARNING: do not comment or delete pax_dl-execstack.patch, please. If you think
136 #          that this is a good idea send some info to pld-devel-{pl,en}
137 Patch29:        %{name}-pax_dl-execstack.patch
138 Patch30:        %{name}-pax-build.patch
139 Patch31:        %{name}-large_collate_tables.patch
140 Patch32:        %{name}-ctype-compat.patch
141 Patch33:        %{name}-sparc-mman.h.patch
142 Patch34:        %{name}-dl-tls.patch
143 Patch35:        %{name}-bindresvport2.patch
144 Patch36:        %{name}-nis+-leaks2.patch
145 Patch37:        %{name}-nis+-batch2.patch
146 Patch38:        %{name}-bz2226.patch
147 Patch39:        %{name}-rh197790.patch
148 Patch40:        %{name}-rh215572.patch
149 Patch41:        %{name}-nis+-getenv.patch
150 Patch42:        %{name}-rh228103.patch
151 Patch43:        %{name}-rh219145.patch
152 Patch44:        %{name}-posix-sh.patch
153 Patch45:        %{name}-bug-2644.patch
154 URL:            http://www.gnu.org/software/libc/
155 %{?with_selinux:BuildRequires:  audit-libs-devel}
156 BuildRequires:  autoconf
157 BuildRequires:  automake
158 BuildRequires:  binutils >= 2:2.15.90.0.3
159 %{!?with_cross:BuildRequires:   dietlibc-static}
160 BuildRequires:  gcc >= 5:3.2
161 %ifarch ppc ppc64 sparc sparcv9 sparc64
162 %if %{with nptl} || %{with __thread}
163 BuildRequires:  gcc >= 5:3.4
164 %endif
165 %endif
166 %{?with_memusage:BuildRequires: gd-devel >= 2.0.1}
167 BuildRequires:  gettext-devel >= 0.10.36
168 %if %{without kernelheaders}
169 BuildRequires:  linux-libc-headers >= %{llh_version}
170 %endif
171 %{?with_selinux:BuildRequires:  libselinux-devel >= 1.18}
172 %{?with_pax:BuildRequires:      paxctl}
173 BuildRequires:  perl-base
174 BuildRequires:  rpm-build >= 4.3-0.20030610.28
175 BuildRequires:  rpm-perlprov
176 BuildRequires:  rpmbuild(macros) >= 1.268
177 BuildRequires:  sed >= 4.0.5
178 BuildRequires:  texinfo
179 Requires(post): ldconfig = %{epoch}:%{version}-%{release}
180 Requires:       %{name}-misc = %{epoch}:%{version}-%{release}
181 Requires:       basesystem
182 %{?with_tls:Provides:   glibc(tls)}
183 Obsoletes:      glibc-common
184 Obsoletes:      glibc-debug
185 Conflicts:      SysVinit < 2.86-11
186 Conflicts:      kernel < %{min_kernel}
187 Conflicts:      ld.so < 1.9.9-10
188 Conflicts:      man-pages < 1.43
189 Conflicts:      poldek < 0.18.8-5
190 Conflicts:      rc-scripts < 0.3.1-13
191 Conflicts:      rpm < 4.1
192 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
193 AutoReq:        false
194
195 %define         debugcflags     -O1 -g
196 # avoid -s here (ld.so must not be stripped to allow any program debugging)
197 %define         rpmldflags      %{nil}
198 %define         specflags_sparc64       -mcpu=ultrasparc -mvis -fcall-used-g6
199 # we don't want perl dependency in glibc-devel
200 %define         _noautoreqfiles         %{_bindir}/mtrace
201 # hack: don't depend on rpmlib(PartialHardlinkSets) for easier upgrade from Ra
202 # (hardlinks here are unlikely to be "partial"... and rpm 4.0.2 from Ra was
203 # patched not to crash on partial hardlinks too)
204 %define         _hack_dontneed_PartialHardlinkSets      1
205 %define         _noautochrpath          .*\\(ldconfig\\|sln\\)
206 %if %{with kernelheaders}
207 %define         sysheaders      %{_kernelsrcdir}/include
208 %else
209 %define         sysheaders      %{_includedir}
210 %endif
211
212 %description
213 Contains the standard libraries that are used by multiple programs on
214 the system. In order to save disk space and memory, as well as to ease
215 upgrades, common system code is kept in one place and shared between
216 programs. This package contains the most important sets of shared
217 libraries, the standard C library and the standard math library.
218 Without these, a Linux system will not function. It also contains
219 national language (locale) support.
220
221 Can be used on: Linux kernel >= %{min_kernel}.
222
223 %description -l es.UTF-8
224 Contiene las bibliotecas estándared que son usadas por varios
225 programas del sistema. Para ahorrar el espacio en el disco y la
226 memoria, igual que para facilitar actualizaciones, código común del
227 sistema se guarda en un sitio y es compartido entre los programas.
228 Este paquete contiene las bibliotecas compartidas más importantes, es
229 decir la biblioteca C estándar y la biblioteca estándar de matemática.
230 Sin éstas, un sistema Linux no podrá funcionar. También está incluido
231 soporte de idiomas nacionales (locale).
232
233 Puede usarse con: núcleo Linux >= %{min_kernel}.
234
235 %description -l de.UTF-8
236 Enthält die Standard-Libraries, die von verschiedenen Programmen im
237 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
238 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
239 einer einzigen Stelle gespeichert und wird von den Programmen
240 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
241 shared Libraries, die Standard-C-Library und die
242 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
243 Ferner enthält es den Support für die verschiedenen Sprachgregionen
244 (locale).
245
246 Can be used on: Linux kernel >= %{min_kernel}.
247
248 %description -l fr.UTF-8
249 Contient les bibliothèques standards utilisées par de nombreux
250 programmes du système. Afin d'économiser l'espace disque et mémoire,
251 et de faciliter les mises à jour, le code commun au système est mis à
252 un endroit et partagé entre les programmes. Ce paquetage contient les
253 bibliothèques partagées les plus importantes, la bibliothèque standard
254 du C et la bibliothèque mathématique standard. Sans celles-ci, un
255 système Linux ne peut fonctionner. Il contient aussi la gestion des
256 langues nationales (locales).
257
258 Can be used on: Linux kernel >= %{min_kernel}.
259
260 %description -l ja.UTF-8
261 glibc
262 パッケージはシステム上の複数のプログラムで使われる標準ライブラリを
263 ふくみます。ディスクスペースとメモリを節約したり、アップグレードを
264 用意にするために、共通のシステムコードは一つの場所におかれ、プログラム
265 間で共有されます。この部分的なパッケージはシェアドライブラリのかなり
266 重要なセットをふくみます: 標準 C ライブラリと標準数値ライブラリです。
267 この二つのライブラリ抜きでは、Linux システムは機能しません。 glibc
268 パッケージはまた地域言語 (locale) サポートとタイムゾーンデータベース
269 サポートをふくみます。
270
271 Can be used on: Linux kernel >= %{min_kernel}.
272
273 %description -l pl.UTF-8
274 W pakiecie znajdują się podstawowe biblioteki, używane przez różne
275 programy w Twoim systemie. Używanie przez programy bibliotek z tego
276 pakietu oszczędza miejsce na dysku i pamięć. Większość kodu
277 systemowego jest usytuowane w jednym miejscu i dzielone między wieloma
278 programami. Pakiet ten zawiera bardzo ważny zbiór bibliotek
279 standardowych, współdzielonych (dynamicznych) bibliotek C i
280 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonować.
281 Znajdują się tutaj również definicje różnych informacji dla wielu
282 języków (locale).
283
284 Przeznaczony dla jądra Linux >= %{min_kernel}.
285
286 %description -l ru.UTF-8
287 Содержит стандартные библиотеки, используемые многочисленными
288 программами в системе. Для того, чтобы сохранить дисковое пространство
289 и память, а также для простоты обновления, системный код, общий для
290 всех программ, хранится в одном месте и коллективно используется всеми
291 программами. Этот пакет содержит наиболее важные из разделяемых
292 библиотек - стандартную библиотеку C и стандартную библиотеку
293 математики. Без этих библиотек Linux функционировать не будет. Также
294 пакет содержит поддержку национальных языков (locale).
295
296 Can be used on: Linux kernel >= %{min_kernel}.
297
298 %description -l tr.UTF-8
299 Bu paket, birçok programın kullandığı standart kitaplıkları içerir.
300 Disk alanı ve bellek kullanımını azaltmak ve aynı zamanda güncelleme
301 işlemlerini kolaylaştırmak için ortak sistem kodları tek bir yerde
302 tutulup programlar arasında paylaştırılır. Bu paket en önemli ortak
303 kitaplıkları, standart C kitaplığını ve standart matematik kitaplığını
304 içerir. Bu kitaplıklar olmadan Linux sistemi çalışmayacaktır. Yerel
305 dil desteği ve zaman dilimi veri tabanı da bu pakette yer alır.
306
307 Can be used on: Linux kernel >= %{min_kernel}.
308
309 %description -l uk.UTF-8
310 Містить стандартні бібліотеки, котрі використовуються численними
311 програмами в системі. Для того, щоб зберегти дисковий простір та
312 пам'ять, а також для простоти поновлення системи, системний код,
313 спільний для всіх програм, зберігається в одному місці і колективно
314 використовується всіма програмами. Цей пакет містить найбільш важливі
315 з динамічних бібліотек - стандартну бібліотеку С та стандартну
316 бібліотеку математики. Без цих бібліотек Linux функціонувати не буде.
317 Також пакет містить підтримку національних мов (locale).
318
319 Can be used on: Linux kernel >= %{min_kernel}.
320
321 %package misc
322 Summary:        Utilities and data used by glibc
323 Summary(pl.UTF-8):      Narzędzia i dane używane przez glibc
324 Group:          Applications/System
325 Requires:       %{name} = %{epoch}:%{version}-%{release}
326 Suggests:       localedb
327 Suggests:       tzdata
328 AutoReq:        false
329
330 %description misc
331 Utilities and data used by glibc.
332
333 %description misc -l pl.UTF-8
334 Narzędzia i dane używane przez glibc.
335
336 %package -n ldconfig
337 Summary:        Creates shared library cache and maintains symlinks
338 Summary(de.UTF-8):      Erstellt ein shared library cache und verwaltet symlinks
339 Summary(fr.UTF-8):      Crée un cache de bibliothčque partagée et gčre *.so
340 Summary(pl.UTF-8):      Tworzy cache bibliotek dynamicznych i ich symlinki
341 Summary(tr.UTF-8):      Ortak kitaplýk önbelleđi yaratýr ve bađlantýlarý kurar
342 Group:          Applications/System
343 # This is needed because previous package (glibc) had autoreq false and had
344 # provided this manually. Probably poldek bug that have to have it here.
345 Provides:       /sbin/ldconfig
346
347 %description -n ldconfig
348 ldconfig scans a running system and sets up the symbolic links that
349 are used to load shared libraries properly. It also creates
350 /etc/ld.so.cache which speeds the loading programs which use shared
351 libraries.
352
353 %description -n ldconfig -l pl.UTF-8
354 Ldconfig testuje uruchominy system i tworzy symboliczne linki, które
355 są następnie używane do poprawnego ładowania bibliotek dynamicznych.
356 Program ten tworzy plik /etc/ld.so.cache, który przyśpiesza wywołanie
357 dowolnego programu korzystającego z bibliotek dynamicznych.
358
359 %description -n ldconfig -l de.UTF-8
360 ldconfig scannt ein laufendes System und richtet die symbolischen
361 Verknüpfungen zum Laden der gemeinsam genutzten Libraries ein.
362 Außerdem erstellt es /etc/ld.so.cache, was das Laden von Programmen
363 mit gemeinsam genutzten Libraries beschleunigt.
364
365 %description -n ldconfig -l fr.UTF-8
366 ldconfig analyse un systčme et configure les liens symboliques
367 utilisés pour charger correctement les bibliothčques partagées. Il
368 crée aussi /etc/ld.so.cache qui accélčre le chargement des programmes
369 utilisant les bibliothčques partagées.
370
371 %description -n ldconfig -l tr.UTF-8
372 ldconfig, çalýţmakta olan sistemi araţtýrýr ve ortak kitaplýklarýn
373 düzgün bir ţekilde yüklenmesi için gereken simgesel bađlantýlarý
374 kurar. Ayrýca ortak kitaplýklarý kullanan programlarýn yüklenmesini
375 hýzlandýran /etc/ld.so.cache dosyasýný yaratýr.
376
377 %package devel
378 Summary:        Additional libraries required to compile
379 Summary(de.UTF-8):      Weitere Libraries zum Kompilieren
380 Summary(es.UTF-8):      Bibliotecas adicionales necesarias para la compilación
381 Summary(fr.UTF-8):      Librairies supplémentaires nécessaires à la compilation
382 Summary(ja.UTF-8):      標準 C ライブラリで使われるヘッダーとオブジェクトファイル
383 Summary(pl.UTF-8):      Dodatkowe biblioteki wymagane podczas kompilacji
384 Summary(ru.UTF-8):      Дополнительные библиотеки, необходимые для компиляции
385 Summary(tr.UTF-8):      Geliştirme için gerekli diğer kitaplıklar
386 Summary(uk.UTF-8):      Додаткові бібліотеки, потрібні для компіляції
387 Group:          Development/Libraries
388 Requires:       %{name} = %{epoch}:%{version}-%{release}
389 Requires:       %{name}-devel-utils = %{epoch}:%{version}-%{release}
390 Requires:       %{name}-headers = %{epoch}:%{version}-%{release}
391 Provides:       %{name}-devel(%{_target_cpu}) = %{epoch}:%{version}-%{release}
392 Obsoletes:      libiconv-devel
393
394 %description devel
395 To develop programs which use the standard C libraries (which nearly
396 all programs do), the system needs to have these standard header files
397 and object files available for creating the executables.
398
399 %description devel -l de.UTF-8
400 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
401 verwenden (also fast alle), benötigt das System diese Standard-Header-
402 und Objektdateien zum Erstellen der ausführbaren Programme.
403
404 %description devel -l es.UTF-8
405 Para desarrollar programas que utilizan las bibliotecas C estándar (lo
406 cual hacen prácticamente todos los programas), el sistema necesita
407 disponer de estos ficheros de cabecera y de objetos para crear los
408 ejecutables.
409
410 %description devel -l fr.UTF-8
411 Pour développer des programmes utilisant les bibliothèques standard du
412 C (ce que presque tous les programmes font), le système doit posséder
413 ces fichiers en-têtes et objets standards pour créer les exécutables.
414
415 %description devel -l ja.UTF-8
416 glibc-devel パッケージは(ほとんどすべてのプログラムで使われる)標準 C
417 ライブラリを使用したプログラムを開発するためのヘッダーとオブジェクト
418 ファイルを含みます。もし標準 C
419 ライブラリを使用するプログラムを開発するなら
420 実行ファイルを作成する目的でこれらの標準ヘッダとオブジェクトファイル
421 が使用できます。
422
423 %description devel -l pl.UTF-8
424 Pakiet ten jest niezbędny przy tworzeniu własnych programów
425 korzystających ze standardowej biblioteki C. Znajdują się tutaj pliki
426 nagłówkowe oraz pliki obiektowe, niezbędne do kompilacji programów
427 wykonywalnych i innych bibliotek.
428
429 %description devel -l ru.UTF-8
430 Для разработки программ, использующих стандартные библиотеки C (а
431 практически все программы их используют), системе НЕОБХОДИМЫ хедеры и
432 объектные файлы, содержащиеся в этом пакете, чтобы создавать
433 исполняемые файлы.
434
435 %description devel -l tr.UTF-8
436 C kitaplığını kullanan (ki hemen hemen hepsi kullanıyor) programlar
437 geliştirmek için gereken standart başlık dosyaları ve statik
438 kitaplıklar.
439
440 %description devel -l uk.UTF-8
441 Для розробки програм, що використовують стандартні бібліотеки C
442 (практично всі програми їх використовують), системі НЕОБХІДНІ хедери
443 та об'єктні файли, що містяться в цьому пакеті, цоб створювати
444 виконувані файли.
445
446 %package headers
447 Summary:        Header files for development using standard C libraries
448 Summary(pl.UTF-8):      Pliki nagłówkowe do tworzenia programów przy użyciu standardowych bibliotek C
449 Group:          Development/Building
450 Provides:       %{name}-headers(%{_target_cpu}) = %{epoch}:%{version}-%{release}
451 %ifarch %{x8664}
452 # If both -m32 and -m64 is to be supported on AMD64, x86_64 package
453 # have to be installed, not ix86 one.
454 Obsoletes:      %{name}-headers(i386)
455 Obsoletes:      %{name}-headers(i486)
456 Obsoletes:      %{name}-headers(i586)
457 Obsoletes:      %{name}-headers(i686)
458 Obsoletes:      %{name}-headers(athlon)
459 Obsoletes:      %{name}-headers(pentium3)
460 Obsoletes:      %{name}-headers(pentium4)
461 %endif
462 %ifarch ppc64
463 Obsoletes:      %{name}-headers(ppc)
464 %endif
465 %ifarch s390x
466 Obsoletes:      %{name}-headers(s390)
467 %endif
468 %ifarch sparc64
469 Obsoletes:      %{name}-headers(sparc)
470 %endif
471 %{!?with_kernelheaders:Requires:        linux-libc-headers >= %{llh_version}}
472
473 %description headers
474 The glibc-headers package contains the header files necessary for
475 developing programs which use the standard C libraries (which are used
476 by nearly all programs). If you are developing programs which will use
477 the standard C libraries, your system needs to have these standard
478 header files available in order to create the executables.
479
480 Install glibc-headers if you are going to develop programs which will
481 use the standard C libraries.
482
483 %description headers -l pl.UTF-8
484 Pakiet glibc-headers zawiera pliki nagłówkowe niezbędne do rozwijania
485 programów używających standardowych bibliotek C (używanych przez
486 prawie wszystkie programy). Jeśli tworzymy programy korzystające ze
487 standardowych bibliotek C, system wymaga dostępności tych
488 standardowych plików nagłówkowych do tworzenia programów
489 wykonywalnych.
490
491 Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
492 korzystające ze standardowych bibliotek C.
493
494 %package devel-utils
495 Summary:        Utilities needed for development using standard C libraries
496 Summary(pl.UTF-8):      Narzędzia do tworzenia programów przy użyciu standardowych bibliotek C
497 Group:          Development/Libraries
498 Provides:       %{name}-devel-utils(%{_target_cpu}) = %{epoch}:%{version}-%{release}
499 %ifarch %{x8664}
500 # If both -m32 and -m64 is to be supported on AMD64, x86_64 package
501 # have to be installed, not ix86 one.
502 Obsoletes:      %{name}-devel-utils(i386)
503 Obsoletes:      %{name}-devel-utils(i486)
504 Obsoletes:      %{name}-devel-utils(i586)
505 Obsoletes:      %{name}-devel-utils(i686)
506 Obsoletes:      %{name}-devel-utils(athlon)
507 Obsoletes:      %{name}-devel-utils(pentium3)
508 Obsoletes:      %{name}-devel-utils(pentium4)
509 %endif
510 %ifarch ppc64
511 Obsoletes:      %{name}-devel-utils(ppc)
512 %endif
513 %ifarch s390x
514 Obsoletes:      %{name}-devel-utils(s390)
515 %endif
516 %ifarch sparc64
517 Obsoletes:      %{name}-devel-utils(sparc)
518 %endif
519
520 %description devel-utils
521 The glibc-devel-utils package contains utilities necessary for
522 developing programs which use the standard C libraries (which are used
523 by nearly all programs). If you are developing programs which will use
524 the standard C libraries, your system needs to have these utilities
525 available.
526
527 Install glibc-devel-utils if you are going to develop programs which
528 will use the standard C libraries.
529
530 %description devel-utils -l pl.UTF-8
531 Pakiet glibc-devel-utils zawiera narzędzia niezbędne do rozwijania
532 programów używających standardowych bibliotek C (używanych przez
533 prawie wszystkie programy). Jeśli tworzymy programy korzystające ze
534 standardowych bibliotek C, system wymaga dostępności tych narzędzi do
535 tworzenia programów wykonywalnych.
536
537 Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
538 korzystające ze standardowych bibliotek C.
539
540 %package devel-doc
541 Summary:        Documentation needed for development using standard C libraries
542 Summary(pl.UTF-8):      Dokumentacja do tworzenia programów przy użyciu standardowych bibliotek C
543 Group:          Documentation
544 Provides:       %{name}-devel-doc(%{_target_cpu}) = %{epoch}:%{version}-%{release}
545 %ifarch %{x8664}
546 # If both -m32 and -m64 is to be supported on AMD64, x86_64 package
547 # have to be installed, not ix86 one.
548 Obsoletes:      %{name}-devel-doc(i386)
549 Obsoletes:      %{name}-devel-doc(i486)
550 Obsoletes:      %{name}-devel-doc(i586)
551 Obsoletes:      %{name}-devel-doc(i686)
552 Obsoletes:      %{name}-devel-doc(athlon)
553 Obsoletes:      %{name}-devel-doc(pentium3)
554 Obsoletes:      %{name}-devel-doc(pentium4)
555 %endif
556 %ifarch ppc64
557 Obsoletes:      %{name}-devel-doc(ppc)
558 %endif
559 %ifarch s390x
560 Obsoletes:      %{name}-devel-doc(s390)
561 %endif
562 %ifarch sparc64
563 Obsoletes:      %{name}-devel-doc(sparc)
564 %endif
565
566 %description devel-doc
567 The glibc-devel-doc package contains info and manual pages necessary
568 for developing programs which use the standard C libraries (which are
569 used by nearly all programs).
570
571 Install glibc-devel-doc if you are going to develop programs which
572 will use the standard C libraries.
573
574 %description devel-doc -l pl.UTF-8
575 Pakiet glibc-devel-doc zawiera strony info i manuala przydatne do
576 rozwijania programów używających standardowych bibliotek C (używanych
577 przez prawie wszystkie programy).
578
579 Ten pakiet należy zainstalować jeśli zamierzamy tworzyć programy
580 korzystające ze standardowych bibliotek C.
581
582 %package -n nscd
583 Summary:        Name Service Caching Daemon
584 Summary(es.UTF-8):      Demonio de caché del servicio de nombres
585 Summary(ja.UTF-8):      ネームサービスキャッシングデーモン (nacd)
586 Summary(pl.UTF-8):      Demon zapamiętujący odpowiedzi serwisów nazw
587 Summary(ru.UTF-8):      Кэширующий демон сервисов имен
588 Summary(uk.UTF-8):      Кешуючий демон севісів імен
589 Group:          Networking/Daemons
590 Requires(post): fileutils
591 Requires(post,preun):   /sbin/chkconfig
592 Requires(postun):       /usr/sbin/groupdel
593 Requires(postun):       /usr/sbin/userdel
594 Requires(pre):  /bin/id
595 Requires(pre):  /usr/bin/getgid
596 Requires(pre):  /usr/sbin/groupadd
597 Requires(pre):  /usr/sbin/useradd
598 Requires:       %{name} = %{epoch}:%{version}-%{release}
599 %{?with_selinux:Requires:       libselinux >= 1.18}
600 Requires:       rc-scripts >= 0.2.0
601 Provides:       group(nscd)
602 Provides:       user(nscd)
603
604 %description -n nscd
605 nscd caches name service lookups; it can dramatically improve
606 performance with NIS+, and may help with DNS as well.
607
608 %description -n nscd -l es.UTF-8
609 nscd guarda las peticiones del servicio de nombres en una caché; eso
610 puede aumentar drásticamente las prestaciones de NIS+, y también puede
611 ayudar con DNS.
612
613 %description -n nscd -l ja.UTF-8
614 Nscd はネームサービス参照をキャッシュし、NIS+ のパフォーマンスを
615 ドラマティックに改善することができ、DNS を同様に補助します。
616
617 %description -n nscd -l pl.UTF-8
618 nscd zapamiętuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
619 drastycznie poprawić szybkość działania NIS+.
620
621 %description -n nscd -l ru.UTF-8
622 nscd кэширует результаты запросов к сервисам имен; это может резко
623 увеличить производительность работы с NIS+ и, также, может помочь с
624 DNS.
625
626 %description -n nscd -l uk.UTF-8
627 nscd кешує результати запросів до сервісів імен; це може сильно
628 збільшити швидкість роботи з NIS+ і, також, може допомогти з DNS.
629
630 %package -n localedb-src
631 Summary:        locale database source code
632 Summary(es.UTF-8):      Código fuente de la base de datos de los locales
633 Summary(pl.UTF-8):      Kod źródłowy bazy locale
634 Group:          Libraries
635 Requires:       %{name} = %{epoch}:%{version}-%{release}
636 Requires:       gzip
637 Requires:       sed
638 Provides:       localedb
639
640 %description -n localedb-src
641 This add-on package contains the data needed to build the locale data
642 files to use the internationalization features of the GNU libc.
643
644 %description -n localedb-src -l es.UTF-8
645 Este paquete adicional contiene los datos necesarios para construir
646 los ficheros de locale, imprescindibles para usar las cualidades de
647 internacionalización de GNU libc.
648
649 %description -n localedb-src -l pl.UTF-8
650 Pakiet ten zawiera dane niezbędne do zbudowania binarnych plików
651 lokalizacyjnych, by móc wykorzystać możliwości oferowane przez GNU
652 libc.
653
654 %package localedb-all
655 Summary:        locale database for all locales supported by glibc
656 Summary(es.UTF-8):      Base de datos de todos los locales soportados por glibc
657 Summary(pl.UTF-8):      Baza danych locale dla wszystkich lokalizacji obsługiwanych przez glibc
658 Group:          Libraries
659 Requires:       %{name} = %{epoch}:%{version}-%{release}
660 Requires:       iconv = %{epoch}:%{version}-%{release}
661 Provides:       localedb
662
663 %description localedb-all
664 This package contains locale database for all locales supported by
665 glibc. In glibc 2.3.x it's one large file (about 39MB) - if you want
666 something smaller with support for chosen locales only, consider
667 installing localedb-src and regenerating database using localedb-gen
668 script (when database is generated, localedb-src can be uninstalled).
669
670 %description localedb-all -l es.UTF-8
671 Este paquete contiene una base de datos de todos los locales
672 soportados por glibc. En glibc 2.3.x ése es un fichero grande (aprox.
673 39 MB) -- si prefiere algo más pequeño, sólo con soporte de unos
674 locales elegidos, considérese instalar localedb-src y regenerar la
675 base de datos usando el escript localedb-gen (una vez que la base de
676 datos esté creada, localedb-src se podrá desinstalar).
677
678 %description localedb-all -l pl.UTF-8
679 Ten pakiet zawiera bazę danych locale dla wszystkich lokalizacji
680 obsługiwanych przez glibc. W glibc 2.3.x jest to jeden duży plik
681 (około 39MB); aby mieć coś mniejszego, z obsługą tylko wybranych
682 lokalizacji, należy zainstalować pakiet localedb-src i przegenerować
683 bazę danych przy użyciu skryptu localedb-gen (po wygenerowaniu bazy
684 pakiet localedb-src można odinstalować).
685
686 %package -n iconv
687 Summary:        Convert encoding of given files from one encoding to another
688 Summary(es.UTF-8):      Convierte entre varias codificaciones de los ficheros dados
689 Summary(pl.UTF-8):      Moduły do konwersji plików tekstowych z jednego kodowania do innego
690 Group:          Libraries
691 Requires:       %{name} = %{epoch}:%{version}-%{release}
692
693 %description -n iconv
694 Convert encoding of given files from one encoding to another. You need
695 this package if you want to convert some document from one encoding to
696 another or if you have installed some programs which use Generic
697 Character Set Conversion Interface.
698
699 %description -n iconv -l es.UTF-8
700 Convierte la codificación de dados ficheros. Necesita este paquete si
701 quiere convertir un documento entre una codificación (juego de
702 caracteres) y otra, o si tiene instalado algún programa que usa el
703 Generic Character Set Conversion Interface (interfaz genérica de
704 conversión de juegos de caracteres).
705
706 %description -n iconv -l pl.UTF-8
707 Moduły do konwersji plików tekstowych z jednego kodowania do innego.
708 Trzeba mieć zainstalowany ten pakiet, aby wykonywać konwersję
709 dokumentów z jednego kodowania do innego lub do używania programów
710 korzystających z Generic Character Set Conversion Interface w glibc,
711 czyli z zestawu funkcji z tej biblioteki, które umożliwiają konwersję
712 kodowania danych z poziomu dowolnego programu.
713
714 %package static
715 Summary:        Static libraries
716 Summary(es.UTF-8):      Bibliotecas estáticas
717 Summary(pl.UTF-8):      Biblioteki statyczne
718 Summary(ru.UTF-8):      Статические библиотеки glibc
719 Summary(uk.UTF-8):      Статичні бібліотеки glibc
720 Group:          Development/Libraries
721 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
722 Provides:       %{name}-static(%{_target_cpu}) = %{epoch}:%{version}-%{release}
723 Obsoletes:      libiconv-static
724
725 %description static
726 GNU libc static libraries.
727
728 %description static -l es.UTF-8
729 Bibliotecas estáticas de GNU libc.
730
731 %description static -l pl.UTF-8
732 Biblioteki statyczne GNU libc.
733
734 %description static -l ru.UTF-8
735 Это отдельный пакет со статическими библиотеками, которые больше не
736 входят в glibc-devel.
737
738 %description static -l uk.UTF-8
739 Це окремий пакет зі статичними бібліотеками, що більше не входять в
740 склад glibc-devel.
741
742 %package profile
743 Summary:        glibc with profiling support
744 Summary(de.UTF-8):      glibc mit Profil-Unterstützung
745 Summary(es.UTF-8):      glibc con soporte de perfilamiento
746 Summary(fr.UTF-8):      glibc avec support pour profiling
747 Summary(pl.UTF-8):      glibc ze wsparciem dla profilowania
748 Summary(ru.UTF-8):      GNU libc с поддержкой профайлера
749 Summary(tr.UTF-8):      Ölçüm desteği olan glibc
750 Summary(uk.UTF-8):      GNU libc з підтримкою профайлера
751 Group:          Development/Libraries/Libc
752 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
753 Obsoletes:      libc-profile
754
755 %description profile
756 When programs are being profiled using gprof, they must use these
757 libraries instead of the standard C libraries for gprof to be able to
758 profile them correctly.
759
760 %description profile -l de.UTF-8
761 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
762 Libraries anstelle der üblichen C-Libraries verwendet werden.
763
764 %description profile -l es.UTF-8
765 Cuando programas son perfilidas usando gprof, tienen que usar estas
766 biblioteces en vez de las estándares para que gprof pueda perfilarlas
767 correctamente.
768
769 %description profile -l pl.UTF-8
770 Programy profilowane za pomocą gprof muszą używać tych bibliotek
771 zamiast standardowych bibliotek C, aby gprof mógł odpowiednio je
772 wyprofilować.
773
774 %description profile -l uk.UTF-8
775 Коли програми досліджуються профайлером gprof, вони повинні
776 використовувати замість стандартних бібліотек бібліотеки, що містяться
777 в цьому пакеті. При використанні стандартних бібліотек gprof замість
778 реальних результатів буде показувати ціни на папайю в Гонолулу в
779 позаминулому році...
780
781 %description profile -l tr.UTF-8
782 gprof kullanılarak ölçülen programlar standart C kitaplığı yerine bu
783 kitaplığı kullanmak zorundadırlar.
784
785 %description profile -l ru.UTF-8
786 Когда программы исследуются профайлером gprof, они должны
787 использовать, вместо стандартных библиотек, библиотеки, включенные в
788 этот пакет. При использовании стандартных библиотек gprof вместо
789 реальных результатов будет показывать цены на папайю в Гонолулу в
790 позапрошлом году...
791
792 %package pic
793 Summary:        glibc PIC archive
794 Summary(es.UTF-8):      Archivo PIC de glibc
795 Summary(pl.UTF-8):      Archiwum PIC glibc
796 Group:          Development/Libraries/Libc
797 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
798
799 %description pic
800 GNU C Library PIC archive contains an archive library (ar file)
801 composed of individual shared objects. This is used for creating a
802 library which is a smaller subset of the standard libc shared library.
803
804 %description pic -l es.UTF-8
805 El archivo PIC de la biblioteca glibc contiene una biblioteca
806 archivada (un fichero ar) compuesta de individuales objetos
807 compartidos. Es usado para crear una biblioteca que sea un subconjunto
808 más pequeño de la biblioteca libc compartida estándar.
809
810 %description pic -l pl.UTF-8
811 Archiwum PIC biblioteki GNU C zawiera archiwalną bibliotekę (plik ar)
812 złożoną z pojedynczych obiektów współdzielonych. Używana jest do
813 tworzenia biblioteki będącej mniejszym podzestawem standardowej
814 biblioteki współdzielonej libc.
815
816 %package -n nss_compat
817 Summary:        Old style NYS NSS glibc module
818 Summary(es.UTF-8):      El antiguo módulo NYS NSS de glibc
819 Summary(pl.UTF-8):      Stary moduł NYS NSS glibc
820 Group:          Base
821 Requires:       %{name} = %{epoch}:%{version}-%{release}
822
823 %description -n nss_compat
824 Old style NYS NSS glibc module.
825
826 %description -n nss_compat -l es.UTF-8
827 El antiguo módulo NYS NSS de glibc
828
829 %description -n nss_compat -l pl.UTF-8
830 Stary moduł NYS NSS glibc.
831
832 %package -n nss_dns
833 Summary:        BIND NSS glibc module
834 Summary(es.UTF-8):      Módulo BIND NSS de glibc
835 Summary(pl.UTF-8):      Moduł BIND NSS glibc
836 Group:          Base
837 Requires:       %{name} = %{epoch}:%{version}-%{release}
838
839 %description -n nss_dns
840 BIND NSS glibc module.
841
842 %description -n nss_dns -l es.UTF-8
843 Módulo BIND NSS de glibc.
844
845 %description -n nss_dns -l pl.UTF-8
846 Moduł BIND NSS glibc.
847
848 %package -n nss_files
849 Summary:        Traditional files databases NSS glibc module
850 Summary(es.UTF-8):      Módulo de tradicionales bases de datos en ficheros para glibc
851 Summary(pl.UTF-8):      Moduł tradycyjnych plikowych baz danych NSS glibc
852 Group:          Base
853 Requires:       %{name} = %{epoch}:%{version}-%{release}
854
855 %description -n nss_files
856 Traditional files databases NSS glibc module.
857
858 %description -n nss_files -l es.UTF-8
859 Módulo de tradicionales bases de datos en ficheros para glibc.
860
861 %description -n nss_files -l pl.UTF-8
862 Moduł tradycyjnych plikowych baz danych NSS glibc.
863
864 %package -n nss_hesiod
865 Summary:        hesiod NSS glibc module
866 Summary(es.UTF-8):      Módulo hesiod NSS de glibc
867 Summary(pl.UTF-8):      Moduł hesiod NSS glibc
868 Group:          Base
869 Requires:       %{name} = %{epoch}:%{version}-%{release}
870
871 %description -n nss_hesiod
872 glibc NSS (Name Service Switch) module for databases access.
873
874 %description -n nss_hesiod -l es.UTF-8
875 Módulo hesiod NSS de glibc.
876
877 %description -n nss_hesiod -l pl.UTF-8
878 Moduł glibc NSS (Name Service Switch) dostępu do baz danych.
879
880 %package -n nss_nis
881 Summary:        NIS(YP) NSS glibc module
882 Summary(es.UTF-8):      Módulo NIS(YP) NSS de glibc
883 Summary(pl.UTF-8):      Moduł NIS(YP) NSS glibc
884 Group:          Base
885 Requires:       %{name} = %{epoch}:%{version}-%{release}
886
887 %description -n nss_nis
888 glibc NSS (Name Service Switch) module for NIS(YP) databases access.
889
890 %description -n nss_nis -l es.UTF-8
891 Módulo NSS de glibc para acceder las bases de datos NIS(YP).
892
893 %description -n nss_nis -l pl.UTF-8
894 Moduł glibc NSS (Name Service Switch) dostępu do baz danych NIS(YP).
895
896 %package -n nss_nisplus
897 Summary:        NIS+ NSS module
898 Summary(es.UTF-8):      Módulo NIS+ NSS
899 Summary(pl.UTF-8):      Moduł NIS+ NSS
900 Group:          Base
901 Requires:       %{name} = %{epoch}:%{version}-%{release}
902
903 %description -n nss_nisplus
904 glibc NSS (Name Service Switch) module for NIS+ databases access.
905
906 %description -n nss_nisplus -l es.UTF-8
907 Módulo NSS (Name Service Switch) de glibc para acceder las bases de
908 datos NIS+.
909
910 %description -n nss_nisplus -l pl.UTF-8
911 Moduł glibc NSS (Name Service Switch) dostępu do baz danych NIS+.
912
913 %package memusage
914 Summary:        A toy
915 Summary(es.UTF-8):      Un juguete
916 Summary(pl.UTF-8):      Zabawka
917 Group:          Applications
918 Requires:       %{name} = %{epoch}:%{version}-%{release}
919
920 %description memusage
921 A toy.
922
923 %description memusage -l es.UTF-8
924 Un juguete.
925
926 %description memusage -l pl.UTF-8
927 Zabawka.
928
929 %package -n %{name}64
930 Summary:        GNU libc - 64-bit libraries
931 Summary(es.UTF-8):      GNU libc - bibliotecas de 64 bits
932 Summary(pl.UTF-8):      GNU libc - biblioteki 64-bitowe
933 Group:          Libraries
934 Requires(post): ldconfig = %{epoch}:%{version}-%{release}
935 Requires:       %{name}-misc = %{epoch}:%{version}-%{release}
936 Requires:       basesystem
937 Provides:       glibc = %{epoch}:%{version}-%{release}
938 %{?with_tls:Provides:   glibc(tls)}
939 Obsoletes:      glibc-common
940 Obsoletes:      glibc-debug
941 Conflicts:      SysVinit < 2.86-11
942 Conflicts:      kernel < %{min_kernel}
943 Conflicts:      ld.so < 1.9.9-10
944 Conflicts:      man-pages < 1.43
945 Conflicts:      poldek < 0.18.8-4
946 Conflicts:      rc-scripts < 0.3.1-13
947 Conflicts:      rpm < 4.1
948
949 %description -n %{name}64
950 64-bit GNU libc libraries for 64bit architecture.
951
952 %description -n %{name}64 -l es.UTF-8
953 Bibliotecas GNU libc de 64 bits para la arquitectura 64bit.
954
955 %description -n %{name}64 -l pl.UTF-8
956 Biblioteki 64-bitowe GNU libc dla architektury 64bit.
957
958 %prep
959 %setup -q -a1
960 %patch0 -p1
961 %patch1 -p1
962 %patch2 -p1
963 %patch3 -p1
964 %patch4 -p1
965 %patch5 -p1
966 %patch6 -p1
967 #%patch7 -p1 UPDATE/DROP (which kernels cause problems?)
968 %patch8 -p1
969 %patch9 -p1
970 %patch10 -p1
971 # don't know, if it is good idea, for brave ones
972 #%patch11 -p1
973 %{!?with_kernelheaders:%patch12 -p1}
974 %patch13 -p1
975 %patch14 -p0
976 %patch15 -p1
977 %patch16 -p1
978 %patch17 -p1
979 %patch18 -p1
980 %patch19 -p1
981 %patch20 -p1
982 %patch21 -p1
983 %patch22 -p1
984 %patch23 -p1
985 %patch24 -p1
986 %patch25 -p1
987 %patch26 -p1
988 %patch27 -p1
989 %{?with_cross:%patch28 -p1}
990 #
991 # WARNING - disabling the glibc-pax_dl-execstack.patch will screw up PaX enabled machines.
992 #
993 %patch29 -p1
994 #
995 # ... and remember we will find you ;-)
996 #
997 %{?with_pax:%patch30 -p1}
998 %patch31 -p1
999 %patch32 -p1
1000 %patch33 -p1
1001 %patch34 -p1
1002 %patch35 -p1
1003 %patch36 -p1
1004 %patch37 -p1
1005 %patch38 -p1
1006 %patch39 -p1
1007 %patch40 -p1
1008 %patch41 -p1
1009 %patch42 -p1
1010 %patch43 -p1
1011 %patch44 -p1
1012 %patch45 -p0
1013
1014 chmod +x scripts/cpp
1015
1016 # i786 (aka pentium4) hack
1017 ln -s i686 nptl/sysdeps/i386/i786
1018 ln -s i686 nptl/sysdeps/unix/sysv/linux/i386/i786
1019
1020 %build
1021 # Build glibc
1022 cp -f /usr/share/automake/config.sub scripts
1023 %{__aclocal}
1024 %{__autoconf}
1025 rm -rf builddir
1026 install -d builddir
1027 cd builddir
1028 %ifarch sparc64
1029 CC="%{__cc} -m64 -mcpu=ultrasparc -mvis -fcall-used-g6"
1030 %endif
1031 %if %{with linuxthreads}
1032 ../%configure \
1033         --enable-kernel="%{min_kernel}" \
1034         --%{?with_omitfp:en}%{!?with_omitfp:dis}able-omitfp \
1035         --with%{!?with___thread:out}-__thread \
1036         --with-headers=%{sysheaders} \
1037         --with%{!?with_selinux:out}-selinux \
1038         --with%{!?with_tls:out}-tls \
1039         --enable-add-ons=linuxthreads \
1040         --enable-profile
1041 %{__make}
1042 %endif
1043 %if %{with nptl}
1044 %if %{with dual}
1045 cd ..
1046 rm -rf builddir-nptl
1047 install -d builddir-nptl
1048 cd builddir-nptl
1049 %endif
1050 ../%configure \
1051         %{?configure_cache:--cache-file=%{configure_cache_file:-%{buildroot}.configure.cache}-nptl.cache} \
1052         --enable-kernel="%{nptl_min_kernel}" \
1053         --%{?with_omitfp:en}%{!?with_omitfp:dis}able-omitfp \
1054         --with-headers=%{sysheaders} \
1055         --with%{!?with_selinux:out}-selinux \
1056         --with-tls \
1057         --enable-add-ons=nptl \
1058         --enable-profile
1059 # simulate cross-compiling so we can perform dual builds on 2.4.x kernel
1060 %{__make} \
1061         %{?with_dual:cross-compiling=yes}
1062 %endif
1063 cd ..
1064
1065 %if %{with linuxthreads}
1066 %{__make} -C linuxthreads/man
1067 %endif
1068
1069 %if %{with tests}
1070 for d in builddir %{?with_tests_nptl:builddir-nptl} ; do
1071 cd $d
1072 env LANGUAGE=C LC_ALL=C \
1073 %{__make} tests 2>&1 | awk '
1074 BEGIN { file = "" }
1075 {
1076         if (($0 ~ /\*\*\* \[.*\.out\] Error/) && ($0 !~ /annexc/) && (file == "")) {
1077                 file=$0;
1078                 gsub(/.*\[/, NIL, file);
1079                 gsub(/\].*/, NIL, file);
1080         }
1081         print $0;
1082 }
1083 END { if (file != "") { print "ERROR OUTPUT FROM " file; system("cat " file); exit(1); } }'
1084 cd ..
1085 done
1086 %endif
1087
1088 %if %{without cross}
1089 CC="%{__cc}"
1090 diet ${CC#*ccache } %{SOURCE7} %{rpmcflags} -Os -static -o glibc-postinst
1091 %endif
1092
1093 %install
1094 rm -rf $RPM_BUILD_ROOT
1095 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log,/var/{lib,run}/nscd}
1096
1097 cd builddir
1098 env LANGUAGE=C LC_ALL=C \
1099 %{__make} install \
1100         install_root=$RPM_BUILD_ROOT \
1101         infodir=%{_infodir} \
1102         mandir=%{_mandir}
1103
1104 %if %{with localedb}
1105 env LANGUAGE=C LC_ALL=C \
1106 %{__make} localedata/install-locales \
1107         install_root=$RPM_BUILD_ROOT
1108 %endif
1109
1110 PICFILES="libc_pic.a libc.map
1111         math/libm_pic.a libm.map
1112         resolv/libresolv_pic.a"
1113
1114 cp -p $PICFILES                         $RPM_BUILD_ROOT%{_libdir}
1115 cp -p elf/soinit.os                             $RPM_BUILD_ROOT%{_libdir}/soinit.o
1116 cp -p elf/sofini.os                             $RPM_BUILD_ROOT%{_libdir}/sofini.o
1117 cd ..
1118
1119 %if %{without cross}
1120 %ifarch %{x8664} ppc64 s390x sparc64
1121 install -p glibc-postinst                               $RPM_BUILD_ROOT/sbin/glibc-postinst64
1122 %else
1123 install -p glibc-postinst                               $RPM_BUILD_ROOT/sbin/glibc-postinst
1124 %endif
1125 %endif
1126
1127 %if %{with dual}
1128 env LANGUAGE=C LC_ALL=C \
1129 %{__make} -C builddir-nptl install \
1130         cross-compiling=yes \
1131         install_root=$RPM_BUILD_ROOT/nptl
1132
1133 install -d $RPM_BUILD_ROOT{/%{_lib}/tls,%{_libdir}/nptl,%{_includedir}/nptl}
1134 for f in libc libm libpthread libthread_db librt; do
1135         mv -f $RPM_BUILD_ROOT/nptl/%{_lib}/${f}[-.]* $RPM_BUILD_ROOT/%{_lib}/tls
1136 done
1137 $RPM_BUILD_ROOT/sbin/ldconfig -n $RPM_BUILD_ROOT/%{_lib}/tls
1138
1139 for f in libc.so libpthread.so; do
1140         cat $RPM_BUILD_ROOT/nptl%{_libdir}/$f | sed \
1141                 -e "s|/libc.so.6|/tls/libc.so.6|g" \
1142                 -e "s|/libpthread.so.0|/tls/libpthread.so.0|g" \
1143                 -e "s|/libpthread_nonshared.a|/nptl/libpthread_nonshared.a|g" \
1144                 > $RPM_BUILD_ROOT%{_libdir}/nptl/$f
1145 done
1146 for f in libc.a libpthread.a libpthread_nonshared.a; do
1147         mv -f $RPM_BUILD_ROOT/nptl%{_libdir}/$f $RPM_BUILD_ROOT%{_libdir}/nptl
1148 done
1149 cd $RPM_BUILD_ROOT/nptl%{_prefix}/include
1150         for f in `find . -type f`; do
1151                 if ! [ -f $RPM_BUILD_ROOT%{_prefix}/include/$f ] \
1152                    || ! cmp -s $f $RPM_BUILD_ROOT%{_prefix}/include/$f ; then
1153                         install -d $RPM_BUILD_ROOT%{_prefix}/include/nptl/`dirname $f`
1154                         cp -a $f $RPM_BUILD_ROOT%{_prefix}/include/nptl/$f
1155                 fi
1156         done
1157 cd -
1158 rm -rf $RPM_BUILD_ROOT/nptl
1159 %endif
1160
1161 %{?with_memusage:mv -f $RPM_BUILD_ROOT/%{_lib}/libmemusage.so   $RPM_BUILD_ROOT%{_libdir}}
1162 mv -f $RPM_BUILD_ROOT/%{_lib}/libpcprofile.so   $RPM_BUILD_ROOT%{_libdir}
1163
1164 %if %{with linuxthreads}
1165 cp -p linuxthreads/man/*.3thr           $RPM_BUILD_ROOT%{_mandir}/man3
1166 %endif
1167
1168 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
1169 # moved to tzdata package
1170 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo
1171
1172 %ifarch %{ix86} ppc s390 sparc sparcv9
1173 mv $RPM_BUILD_ROOT%{_includedir}/gnu/stubs.h $RPM_BUILD_ROOT%{_includedir}/gnu/stubs-32.h
1174 %endif
1175
1176 %ifarch %{x8664} ppc64 s390x sparc64
1177 mv $RPM_BUILD_ROOT%{_includedir}/gnu/stubs.h $RPM_BUILD_ROOT%{_includedir}/gnu/stubs-64.h
1178 %endif
1179
1180 %ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64
1181 cat <<EOF >$RPM_BUILD_ROOT%{_includedir}/gnu/stubs.h
1182 /* This file selects the right generated file of '__stub_FUNCTION' macros
1183    based on the architecture being compiled for.  */
1184
1185 #include <bits/wordsize.h>
1186
1187 #if __WORDSIZE == 32
1188 # include <gnu/stubs-32.h>
1189 #elif __WORDSIZE == 64
1190 # include <gnu/stubs-64.h>
1191 #else
1192 # error "unexpected value for __WORDSIZE macro"
1193 #endif
1194 EOF
1195 %endif
1196
1197 cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_includedir}/sys/inotify.h
1198
1199 ln -sf libbsd-compat.a          $RPM_BUILD_ROOT%{_libdir}/libbsd.a
1200
1201 # make symlinks across top-level directories absolute
1202 for l in anl BrokenLocale crypt dl m nsl resolv rt thread_db util ; do
1203         rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
1204         ln -sf /%{_lib}/`cd $RPM_BUILD_ROOT/%{_lib} ; echo lib${l}.so.*` $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
1205 done
1206
1207 install -p %{SOURCE2}           $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
1208 cp -p %{SOURCE3}                $RPM_BUILD_ROOT/etc/sysconfig/nscd
1209 cp -p %{SOURCE4}                $RPM_BUILD_ROOT/etc/logrotate.d/nscd
1210 cp -p nscd/nscd.conf    $RPM_BUILD_ROOT%{_sysconfdir}
1211 cp -p nss/nsswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}
1212
1213 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
1214 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
1215 install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d
1216 echo 'include ld.so.conf.d/*.conf'> $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
1217 rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
1218
1219 :> $RPM_BUILD_ROOT/var/log/nscd
1220 :> $RPM_BUILD_ROOT/var/lib/nscd/passwd
1221 :> $RPM_BUILD_ROOT/var/lib/nscd/group
1222 :> $RPM_BUILD_ROOT/var/lib/nscd/hosts
1223
1224 rm -rf documentation
1225 install -d documentation
1226
1227 %if %{with linuxthreads}
1228 for f in ChangeLog Changes README ; do
1229         cp -pf linuxthreads/$f documentation/${f}.linuxthreads
1230 done
1231 %endif
1232 %if %{with nptl}
1233 for f in ANNOUNCE ChangeLog DESIGN-{barrier,condvar,rwlock,sem}.txt TODO{,-kernel,-testing} ;  do
1234         cp -pf nptl/$f documentation/${f}.nptl
1235 done
1236 %endif
1237 cp -pf crypt/README.ufc-crypt documentation
1238
1239 cp -pf ChangeLog* documentation
1240
1241 rm -f $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
1242
1243 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
1244 %{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/%{_lib}/ld-*.so}
1245
1246 # Collect locale files and mark them with %%lang()
1247 rm -f glibc.lang
1248 echo '%defattr(644,root,root,755)' > glibc.lang
1249 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
1250         if [ -d $i ]; then
1251                 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
1252                 twochar=1
1253                 # list of long %%lang values we do support
1254                 for j in de_AT de_BE de_CH de_LU es_AR es_MX pt_BR \
1255                          zh_CN zh_CN.gbk zh_HK zh_TW ; do
1256                         if [ $j = "$lang" ]; then
1257                                 twochar=
1258                         fi
1259                 done
1260                 if [ -n "$twochar" ]; then
1261                         if [ `echo $lang | sed "s,_.*,,"` = "zh" ]; then
1262                                 lang=`echo $lang | sed "s,\..*,,"`
1263                         else
1264                                 lang=`echo $lang | sed "s,_.*,,"`
1265                         fi
1266                 fi
1267                 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
1268                 echo "%lang($lang) $dir" >> glibc.lang
1269         fi
1270 done
1271 # XXX: to be added when become supported by glibc
1272 # as (atk, gail)
1273 # az_IR (gtk+)
1274 # dv, haw, kok, ps (iso-codes)
1275 # my (gaim)
1276 # tk, ug, yo (used by GNOME)
1277 #
1278 # NOTES:
1279 # bn is used for bn_BD or bn_IN? Assume bn_IN as nothing for bn_BD appeared
1280 #   till now
1281 #
1282 # omitted here - already existing (with libc.mo):
1283 #   be,ca,cs,da,de,el,en_GB,es,fi,fr,gl,hr,hu,it,ja,ko,nb,nl,pl,pt_BR,sk,sv,
1284 #   tr,zh_CN,zh_TW
1285 #
1286 for i in aa af am ang ar az bg bn bn_IN br bs byn cy de_AT dz en en@boldquot \
1287     en@quot en_AU en_CA en_US eo es_AR es_MX es_NI et eu fa fo fr_BE fy ga \
1288     gez gu gv he hi hsb hy ia id is it_CH iu ka kk kl km kn ku kw ky leet lg li \
1289     lo lt lv mg mi mk ml mn mr ms mt nds ne nl_BE nn nso oc om or pa pt rm ro \
1290     ru rw sa se sid sl so sq sr sr@Latn sr@ije ss syr sw ta te tg th ti tig \
1291     tl tlh tt uk ur uz ve vi wa wal xh yi zh_HK zu ; do
1292         if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES ]; then
1293                 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
1294                 lang=`echo $i | sed -e 's/_.*//'`
1295                 echo "%lang($lang) %{_datadir}/locale/$i" >> glibc.lang
1296         fi
1297 done
1298
1299 # localedb-gen infrastructure
1300 sed -e 's,@localedir@,%{_libdir}/locale,' %{SOURCE6} > $RPM_BUILD_ROOT%{_bindir}/localedb-gen
1301 chmod +x $RPM_BUILD_ROOT%{_bindir}/localedb-gen
1302 cp -p localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
1303
1304 # shutup check-files
1305 rm -f $RPM_BUILD_ROOT%{_mandir}/README.*
1306 rm -f $RPM_BUILD_ROOT%{_mandir}/diff.*
1307 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
1308 # we don't support kernel without ptys support
1309 rm -f $RPM_BUILD_ROOT%{_libdir}/pt_chown
1310
1311 %clean
1312 rm -rf $RPM_BUILD_ROOT
1313
1314 # don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
1315 # when %%postun is run
1316
1317 %if %{without cross}
1318 %ifarch %{x8664} ppc64 s390x sparc64
1319 %post   -n %{name}64 -p /sbin/postshell
1320 %else
1321 %post   -p /sbin/postshell
1322 %endif
1323 %ifarch %{x8664} ppc64 s390x sparc64
1324 /sbin/glibc-postinst64 /%{_lib}/%{_host_cpu}
1325 %else
1326 /sbin/glibc-postinst /%{_lib}/%{_host_cpu}
1327 %endif
1328 /sbin/ldconfig
1329
1330 %ifarch %{x8664} ppc64 s390x sparc64
1331 %postun -n %{name}64 -p /sbin/postshell
1332 %else
1333 %postun -p /sbin/postshell
1334 %endif
1335 /sbin/ldconfig
1336
1337 %ifarch %{x8664} ppc64 s390x sparc64
1338 %triggerpostun -n %{name}64 -p /sbin/postshell -- glibc-misc < 6:2.3.4-0.20040505.1
1339 %else
1340 %triggerpostun -p /sbin/postshell -- glibc-misc < 6:2.3.4-0.20040505.1
1341 %endif
1342 -/bin/mv %{_sysconfdir}/ld.so.conf.rpmsave %{_sysconfdir}/ld.so.conf
1343
1344 %ifarch %{x8664} ppc64 s390x sparc64
1345 %triggerpostun -n %{name}64 -p /sbin/postshell -- %{name}64 < 6:2.3.5-7.6
1346 %else
1347 %triggerpostun -p /sbin/postshell -- %{name} < 6:2.3.5-7.6
1348 %endif
1349 -/bin/cp -f /etc/ld.so.conf /etc/ld.so.conf.rpmsave
1350 -/bin/sed -i -e '1iinclude ld.so.conf.d/*.conf' /etc/ld.so.conf
1351 %endif
1352
1353 %post   memusage -p /sbin/ldconfig
1354 %postun memusage -p /sbin/ldconfig
1355
1356 %post -n iconv -p %{_sbindir}/iconvconfig
1357
1358 %post -n localedb-src
1359 SUPPORTED_LOCALES=
1360 [ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
1361 [ -f /etc/sysconfig/localedb ] && . /etc/sysconfig/localedb
1362 if [ "$SUPPORTED_LOCALES" ]; then
1363         localedb-gen || :
1364 fi
1365
1366 %post devel     -p      /sbin/postshell
1367 -/usr/sbin/fix-info-dir -c %{_infodir}
1368
1369 %postun devel   -p      /sbin/postshell
1370 -/usr/sbin/fix-info-dir -c %{_infodir}
1371
1372 %pre -n nscd
1373 %groupadd -P nscd -g 144 -r nscd
1374 %useradd -P nscd -u 144 -r -d /tmp -s /bin/false -c "Name Service Cache Daemon" -g nscd nscd
1375
1376 %post -n nscd
1377 /sbin/chkconfig --add nscd
1378 touch /var/log/nscd
1379 chmod 000 /var/log/nscd
1380 chown root:root /var/log/nscd
1381 chmod 640 /var/log/nscd
1382 %service nscd restart "nscd daemon"
1383
1384 %preun -n nscd
1385 if [ "$1" = "0" ]; then
1386         %service nscd stop
1387         /sbin/chkconfig --del nscd
1388 fi
1389
1390 %postun -n nscd
1391 if [ "$1" = "0" ]; then
1392         %userremove nscd
1393         %groupremove nscd
1394 fi
1395
1396 %ifarch %{x8664} ppc64 s390x sparc64
1397 %files -n %{name}64
1398 %defattr(644,root,root,755)
1399 %else
1400 %files
1401 %defattr(644,root,root,755)
1402 %endif
1403 %defattr(644,root,root,755)
1404 %doc README NEWS FAQ BUGS
1405 %if %{without cross}
1406 %attr(755,root,root) /sbin/glibc-postinst*
1407 %endif
1408 # ld* and libc.so.6 SONAME symlinks must be in package because of
1409 # chicken-egg problem (postshell is dynamically linked with libc);
1410 # ld-*.so SONAME is:
1411 #   ld.so.1 on ppc
1412 #   ld64.so.1 on ppc64,s390x
1413 #   ld-linux-ia64.so.2 on ia64
1414 #   ld-linux-x86-64.so.2 on x86_64
1415 #   ld-linux.so.2 on other archs
1416 %attr(755,root,root) /%{_lib}/ld*
1417 %attr(755,root,root) /%{_lib}/libanl*
1418 %attr(755,root,root) /%{_lib}/libdl*
1419 %attr(755,root,root) /%{_lib}/libnsl*
1420 %attr(755,root,root) /%{_lib}/lib[BScmprtu]*
1421 %if %{with dual}
1422 %dir /%{_lib}/tls
1423 %attr(755,root,root) /%{_lib}/tls/lib[cmprt]*
1424 %endif
1425 %{?with_localedb:%dir %{_libdir}/locale}
1426
1427 #%files -n nss_dns
1428 %defattr(644,root,root,755)
1429 %attr(755,root,root) /%{_lib}/libnss_dns*.so*
1430
1431 #%files -n nss_files
1432 %defattr(644,root,root,755)
1433 %attr(755,root,root) /%{_lib}/libnss_files*.so*
1434
1435 %files -n ldconfig
1436 %defattr(644,root,root,755)
1437 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ld.so.conf
1438 %dir %{_sysconfdir}/ld.so.conf.d
1439 %ghost %{_sysconfdir}/ld.so.cache
1440 %attr(755,root,root) /sbin/ldconfig
1441
1442 %files misc -f %{name}.lang
1443 %defattr(644,root,root,755)
1444
1445 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nsswitch.conf
1446 %config %{_sysconfdir}/rpc
1447
1448 %attr(755,root,root) /sbin/sln
1449 %attr(755,root,root) %{_bindir}/catchsegv
1450 %attr(755,root,root) %{_bindir}/getconf
1451 %attr(755,root,root) %{_bindir}/getent
1452 %attr(755,root,root) %{_bindir}/iconv
1453 %attr(755,root,root) %{_bindir}/ldd
1454 %ifarch %{ix86} m68k sparc sparcv9
1455 %attr(755,root,root) %{_bindir}/lddlibc4
1456 %endif
1457 %attr(755,root,root) %{_bindir}/locale
1458 %attr(755,root,root) %{_bindir}/rpcgen
1459 %attr(755,root,root) %{_bindir}/tzselect
1460
1461 %attr(755,root,root) %{_sbindir}/rpcinfo
1462 %attr(755,root,root) %{_sbindir}/zdump
1463 %attr(755,root,root) %{_sbindir}/zic
1464
1465 %dir %{_libexecdir}/getconf
1466 %attr(755,root,root) %{_libexecdir}/getconf/*
1467
1468 %dir %{_datadir}/locale
1469 %{_datadir}/locale/locale.alias
1470
1471 %{_mandir}/man1/catchsegv.1*
1472 %{_mandir}/man1/getconf.1*
1473 %{_mandir}/man1/getent.1*
1474 %{_mandir}/man1/iconv.1*
1475 %{_mandir}/man1/ldd.1*
1476 %{_mandir}/man1/locale.1*
1477 %{_mandir}/man1/rpcgen.1*
1478 %{_mandir}/man5/locale.5*
1479 %{_mandir}/man5/nsswitch.conf.5*
1480 %{_mandir}/man5/tzfile.5*
1481 %{_mandir}/man7/*
1482 %{_mandir}/man8/ld*.8*
1483 %{_mandir}/man8/rpcinfo.8*
1484 %{_mandir}/man8/sln.8*
1485 %{_mandir}/man8/tzselect.8*
1486 %{_mandir}/man8/zdump.8*
1487 %{_mandir}/man8/zic.8*
1488 %lang(cs) %{_mandir}/cs/man7/*
1489 %lang(de) %{_mandir}/de/man5/tzfile.5*
1490 %lang(de) %{_mandir}/de/man7/*
1491 %lang(es) %{_mandir}/es/man1/ldd.1*
1492 %lang(es) %{_mandir}/es/man5/locale.5*
1493 %lang(es) %{_mandir}/es/man5/nsswitch.conf.5*
1494 %lang(es) %{_mandir}/es/man5/tzfile.5*
1495 %lang(es) %{_mandir}/es/man7/*
1496 %lang(es) %{_mandir}/es/man8/ld*.8*
1497 %lang(es) %{_mandir}/es/man8/tzselect.8*
1498 %lang(es) %{_mandir}/es/man8/zdump.8*
1499 %lang(es) %{_mandir}/es/man8/zic.8*
1500 %lang(fi) %{_mandir}/fi/man1/ldd.1*
1501 %lang(fr) %{_mandir}/fr/man1/ldd.1*
1502 %lang(fr) %{_mandir}/fr/man5/locale.5*
1503 %lang(fr) %{_mandir}/fr/man5/nsswitch.conf.5*
1504 %lang(fr) %{_mandir}/fr/man5/tzfile.5*
1505 %lang(fr) %{_mandir}/fr/man7/*
1506 %lang(fr) %{_mandir}/fr/man8/ld*.8*
1507 %lang(fr) %{_mandir}/fr/man8/tzselect.8*
1508 %lang(fr) %{_mandir}/fr/man8/zdump.8*
1509 %lang(fr) %{_mandir}/fr/man8/zic.8*
1510 %lang(hu) %{_mandir}/hu/man1/ldd.1*
1511 %lang(hu) %{_mandir}/hu/man7/*
1512 %lang(hu) %{_mandir}/hu/man8/ld*.8*
1513 %lang(hu) %{_mandir}/hu/man8/zdump.8*
1514 %lang(it) %{_mandir}/it/man5/locale.5*
1515 %lang(it) %{_mandir}/it/man7/*
1516 %lang(it) %{_mandir}/it/man8/tzselect.8*
1517 %lang(it) %{_mandir}/it/man8/zdump.8*
1518 %lang(ja) %{_mandir}/ja/man1/ldd.1*
1519 %lang(ja) %{_mandir}/ja/man1/rpcgen.1*
1520 %lang(ja) %{_mandir}/ja/man5/locale.5*
1521 %lang(ja) %{_mandir}/ja/man5/nsswitch.conf.5*
1522 %lang(ja) %{_mandir}/ja/man5/tzfile.5*
1523 %lang(ja) %{_mandir}/ja/man7/*
1524 %lang(ja) %{_mandir}/ja/man8/ld*.8*
1525 %lang(ja) %{_mandir}/ja/man8/rpcinfo.8*
1526 %lang(ja) %{_mandir}/ja/man8/sln.8*
1527 %lang(ja) %{_mandir}/ja/man8/tzselect.8*
1528 %lang(ja) %{_mandir}/ja/man8/zdump.8*
1529 %lang(ja) %{_mandir}/ja/man8/zic.8*
1530 %lang(ko) %{_mandir}/ko/man1/ldd.1*
1531 %lang(ko) %{_mandir}/ko/man5/nsswitch.conf.5*
1532 %lang(ko) %{_mandir}/ko/man5/tzfile.5*
1533 %lang(ko) %{_mandir}/ko/man7/*
1534 %lang(ko) %{_mandir}/ko/man8/tzselect.8*
1535 %lang(ko) %{_mandir}/ko/man8/zdump.8*
1536 %lang(pl) %{_mandir}/pl/man1/ldd.1*
1537 %lang(pl) %{_mandir}/pl/man5/locale.5*
1538 %lang(pl) %{_mandir}/pl/man7/*
1539 %lang(pl) %{_mandir}/pl/man8/ld*.8*
1540 %lang(pt) %{_mandir}/pt/man5/locale.5*
1541 %lang(pt) %{_mandir}/pt/man5/nsswitch.conf.5*
1542 %lang(pt) %{_mandir}/pt/man5/tzfile.5*
1543 %lang(pt) %{_mandir}/pt/man7/*
1544 %lang(pt) %{_mandir}/pt/man8/ld*.8*
1545 %lang(pt) %{_mandir}/pt/man8/tzselect.8*
1546 %lang(pt) %{_mandir}/pt/man8/zdump.8*
1547 %lang(pt) %{_mandir}/pt/man8/zic.8*
1548 %lang(ru) %{_mandir}/ru/man1/getent.1*
1549 %lang(ru) %{_mandir}/ru/man1/iconv.1*
1550 %lang(ru) %{_mandir}/ru/man1/ldd.1*
1551 %lang(ru) %{_mandir}/ru/man1/locale.1*
1552 %lang(ru) %{_mandir}/ru/man1/rpcgen.1*
1553 %lang(ru) %{_mandir}/ru/man5/locale.5*
1554 %lang(ru) %{_mandir}/ru/man5/nsswitch.conf.5*
1555 %lang(ru) %{_mandir}/ru/man5/tzfile.5*
1556 %lang(ru) %{_mandir}/ru/man7/*
1557 %lang(ru) %{_mandir}/ru/man8/ld*.8*
1558 %lang(ru) %{_mandir}/ru/man8/rpcinfo.8*
1559 %lang(ru) %{_mandir}/ru/man8/tzselect.8*
1560 %lang(ru) %{_mandir}/ru/man8/zdump.8*
1561 %lang(ru) %{_mandir}/ru/man8/zic.8*
1562 %lang(tr) %{_mandir}/tr/man1/iconv.1*
1563 %lang(tr) %{_mandir}/tr/man1/ldd.1*
1564 %lang(zh_CN) %{_mandir}/zh_CN/man1/iconv.1*
1565 %lang(zh_CN) %{_mandir}/zh_CN/man1/ldd.1*
1566 %lang(zh_CN) %{_mandir}/zh_CN/man5/locale.5*
1567 %lang(zh_CN) %{_mandir}/zh_CN/man5/tzfile.5*
1568 %lang(zh_CN) %{_mandir}/zh_CN/man7/*
1569 %lang(zh_CN) %{_mandir}/zh_CN/man8/tzselect.8*
1570 %lang(zh_CN) %{_mandir}/zh_CN/man8/zdump.8*
1571 %lang(zh_CN) %{_mandir}/zh_CN/man8/zic.8*
1572
1573 %files -n nss_compat
1574 %defattr(644,root,root,755)
1575 %attr(755,root,root) /%{_lib}/libnss_compat*.so*
1576
1577 %files -n nss_hesiod
1578 %defattr(644,root,root,755)
1579 %attr(755,root,root) /%{_lib}/libnss_hesiod*.so*
1580
1581 %files -n nss_nis
1582 %defattr(644,root,root,755)
1583 %attr(755,root,root) /%{_lib}/libnss_nis.so.*
1584 %attr(755,root,root) /%{_lib}/libnss_nis-*.so
1585
1586 %files -n nss_nisplus
1587 %defattr(644,root,root,755)
1588 %attr(755,root,root) /%{_lib}/libnss_nisplus*.so*
1589
1590 %if %{with memusage}
1591 %files memusage
1592 %defattr(644,root,root,755)
1593 %attr(755,root,root) %{_bindir}/memusage*
1594 %attr(755,root,root) %{_libdir}/libmemusage.so
1595 %endif
1596
1597 %files devel
1598 %defattr(644,root,root,755)
1599 %attr(755,root,root) %{_libdir}/lib[!cmp]*.so
1600 %attr(755,root,root) %{_libdir}/libcrypt.so
1601 %attr(755,root,root) %{_libdir}/libm.so
1602 %attr(755,root,root) %{_libdir}/libpcprofile.so
1603 %attr(755,root,root) %{_libdir}/*crt*.o
1604 # ld scripts
1605 %{_libdir}/libc.so
1606 %{_libdir}/libpthread.so
1607
1608 %{_libdir}/libbsd-compat.a
1609 %{_libdir}/libbsd.a
1610 %{_libdir}/libc_nonshared.a
1611 %{_libdir}/libg.a
1612 %{_libdir}/libieee.a
1613 %{_libdir}/libpthread_nonshared.a
1614 %{_libdir}/librpcsvc.a
1615
1616 %if %{with dual}
1617 %dir %{_libdir}/nptl
1618 # ld scripts
1619 %{_libdir}/nptl/libc.so
1620 %{_libdir}/nptl/libpthread.so
1621 %{_libdir}/nptl/libpthread_nonshared.a
1622 %endif
1623
1624 %ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64
1625 %{_includedir}/gnu/stubs-*.h
1626 %endif
1627
1628 %files headers
1629 %defattr(644,root,root,755)
1630 %{_includedir}/*.h
1631 %ifarch alpha
1632 %{_includedir}/alpha
1633 %endif
1634 %{_includedir}/arpa
1635 %{_includedir}/bits
1636 %dir %{_includedir}/gnu
1637 %{_includedir}/gnu/lib*.h
1638 %{_includedir}/gnu/stubs.h
1639 %{_includedir}/net
1640 %{_includedir}/netash
1641 %{_includedir}/netatalk
1642 %{_includedir}/netax25
1643 %{_includedir}/neteconet
1644 %{_includedir}/netinet
1645 %{_includedir}/netipx
1646 %{_includedir}/netpacket
1647 %{_includedir}/netrom
1648 %{_includedir}/netrose
1649 %{_includedir}/nfs
1650 %{_includedir}/protocols
1651 %{_includedir}/rpc
1652 %{_includedir}/rpcsvc
1653 %{_includedir}/scsi
1654 %{_includedir}/sys
1655
1656 %if %{with dual}
1657 %{_includedir}/nptl
1658 %endif
1659
1660 %files devel-utils
1661 %defattr(644,root,root,755)
1662 %attr(755,root,root) %{_bindir}/gencat
1663 %attr(755,root,root) %{_bindir}/*prof*
1664 %attr(755,root,root) %{_bindir}/*trace
1665
1666 %files devel-doc
1667 %defattr(644,root,root,755)
1668 %doc documentation/* NOTES PROJECTS
1669 %{_infodir}/libc.info*
1670
1671 %{_mandir}/man1/sprof.1*
1672 %{_mandir}/man3/*
1673 %lang(cs) %{_mandir}/cs/man3/*
1674 %lang(de) %{_mandir}/de/man3/*
1675 %lang(es) %{_mandir}/es/man3/*
1676 %lang(fr) %{_mandir}/fr/man3/*
1677 %lang(hu) %{_mandir}/hu/man3/*
1678 %lang(it) %{_mandir}/it/man3/*
1679 %lang(ja) %{_mandir}/ja/man3/*
1680 %lang(ko) %{_mandir}/ko/man3/*
1681 %lang(nl) %{_mandir}/nl/man3/*
1682 %lang(pl) %{_mandir}/pl/man3/*
1683 %lang(pt) %{_mandir}/pt/man3/*
1684 %lang(ru) %{_mandir}/ru/man1/sprof.1*
1685 %lang(ru) %{_mandir}/ru/man3/*
1686 %lang(tr) %{_mandir}/tr/man3/*
1687 %lang(uk) %{_mandir}/uk/man3/*
1688 %lang(zh_CN) %{_mandir}/zh_CN/man3/*
1689
1690 %files -n nscd
1691 %defattr(644,root,root,755)
1692 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nscd
1693 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nscd.*
1694 %attr(754,root,root) /etc/rc.d/init.d/nscd
1695 %attr(755,root,root) %{_sbindir}/nscd*
1696 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/nscd
1697 %attr(640,root,root) %ghost /var/log/nscd
1698 %dir /var/run/nscd
1699 %dir /var/lib/nscd
1700 %attr(600,root,root) %ghost /var/lib/nscd/passwd
1701 %attr(600,root,root) %ghost /var/lib/nscd/group
1702 %attr(600,root,root) %ghost /var/lib/nscd/hosts
1703 %{_mandir}/man5/nscd.conf.5*
1704 %{_mandir}/man8/nscd.8*
1705 %{_mandir}/man8/nscd_nischeck.8*
1706 %lang(es) %{_mandir}/es/man5/nscd.conf.5*
1707 %lang(es) %{_mandir}/es/man8/nscd.8*
1708 %lang(fr) %{_mandir}/fr/man5/nscd.conf.5*
1709 %lang(fr) %{_mandir}/fr/man8/nscd.8*
1710 %lang(ja) %{_mandir}/ja/man5/nscd.conf.5*
1711 %lang(ja) %{_mandir}/ja/man8/nscd.8*
1712 %lang(pt) %{_mandir}/pt/man5/nscd.conf.5*
1713 %lang(pt) %{_mandir}/pt/man8/nscd.8*
1714 %lang(ru) %{_mandir}/ru/man5/nscd.conf.5*
1715 %lang(ru) %{_mandir}/ru/man8/nscd.8*
1716 %lang(zh_CN) %{_mandir}/zh_CN/man5/nscd.conf.5*
1717
1718 %files -n localedb-src
1719 %defattr(644,root,root,755)
1720 %attr(755,root,root) %{_bindir}/localedef
1721 %attr(755,root,root) %{_bindir}/localedb-gen
1722 %{_datadir}/i18n
1723 %{_mandir}/man1/localedef.1*
1724 %lang(ru) %{_mandir}/ru/man1/localedef.1*
1725
1726 %if %{with localedb}
1727 %files localedb-all
1728 %defattr(644,root,root,755)
1729 %{_libdir}/locale/locale-archive
1730 %endif
1731
1732 %files -n iconv
1733 %defattr(644,root,root,755)
1734 %attr(755,root,root) %{_sbindir}/iconvconfig
1735 %dir %{_libdir}/gconv
1736 %{_libdir}/gconv/gconv-modules
1737 %attr(755,root,root) %{_libdir}/gconv/*.so
1738
1739 %files static
1740 %defattr(644,root,root,755)
1741 %{_libdir}/libanl.a
1742 %{_libdir}/libBrokenLocale.a
1743 %{_libdir}/libc.a
1744 %{_libdir}/libcrypt.a
1745 %{_libdir}/libdl.a
1746 %{_libdir}/libm.a
1747 %{_libdir}/libmcheck.a
1748 %{_libdir}/libnsl.a
1749 %{_libdir}/libpthread.a
1750 %{_libdir}/libresolv.a
1751 %{_libdir}/librt.a
1752 %{_libdir}/libutil.a
1753 %if %{with dual}
1754 %{_libdir}/nptl/libc.a
1755 %{_libdir}/nptl/libpthread.a
1756 %endif
1757
1758 %files profile
1759 %defattr(644,root,root,755)
1760 #{?with_dual:%{_libdir}/nptl/lib*_p.a}
1761 %{_libdir}/lib*_p.a
1762
1763 %files pic
1764 %defattr(644,root,root,755)
1765 %{_libdir}/lib*_pic.a
1766 %{_libdir}/lib*.map
1767 %{_libdir}/soinit.o
1768 %{_libdir}/sofini.o
This page took 0.194807 seconds and 3 git commands to generate.