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