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