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