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