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