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