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