]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- better *64 descriptions
[packages/glibc.git] / glibc.spec
1 #
2 # You can define min_kernel macro by "rpm --define 'min_kernel version'"
3 # default is 2.2.0 (no changes up to 2.3.25)
4 #
5 # Conditional build:
6 # _without_dist_kernel  build without kernel from the distribution;
7 #                       headers will be searched in %_kernelsrcdir/include.
8 # _without_fp           build without frame pointer (pass --enable-omitfp)
9 # _without_memusage     build without memusage
10 #
11 # _with_kernheaders     use "kernheaders" as user-space kernel headers
12 #                       (instead of copying from kernel-headers 2.4.x)
13 #                       [broken at the moment]
14 #
15 %bcond_with     idn     # build with included libidn
16 #
17 # TODO:
18 # - localedb-gen man pages(?)
19 # - fix what trojan broke while upgreading (getaddrinfo-workaround)
20 #
21 #
22 # WARNING:
23 #       posix zoneinfo dir removed, /etc/rc.d/init.d/timezone must be changed
24 #       in order to use this version!
25 #
26 %{!?min_kernel:%define          min_kernel      2.2.0}
27 %define         rel 4
28 Summary:        GNU libc
29 Summary(de):    GNU libc
30 Summary(fr):    GNU libc
31 Summary(ja):    GNU libc ¥é¥¤¥Ö¥é¥ê
32 Summary(pl):    GNU libc
33 Summary(ru):    GNU libc ×ÅÒÓÉÉ 2.3
34 Summary(tr):    GNU libc
35 Summary(uk):    GNU libc ×ÅÒÓ¦§ 2.3
36 Name:           glibc
37 Version:        2.3.2
38 Release:        %{rel}
39 Epoch:          6
40 License:        LGPL
41 Group:          Libraries
42 Source0:        ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
43 # Source0-md5:  ede969aad568f48083e413384f20753c
44 Source1:        ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
45 # Source1-md5:  894b8969cfbdf787c73e139782167607
46 Source2:        nscd.init
47 Source3:        nscd.sysconfig
48 Source4:        nscd.logrotate
49 Source5:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
50 # Source5-md5:  ddba280857330dabba4d8c16d24a6dfd
51 Source6:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
52 # Source6-md5:  2e3992c2e1bc94212c2cd33236de6058
53 # borrowed from util-linux
54 Source7:        sln.8
55 Source8:        %{name}-localedb-gen
56 # Kernel headers for userspace
57 Source9:        %{name}-kernheaders.tar.bz2
58 # Source9-md5:  b48fec281f854627d6b8781cd1dd72d2
59 Source10:       http://josefsson.org/libidn/releases/libidn-0.3.0rc3.tar.gz
60 # Source10-md5: ded0b439efe16dd29ce5a24d3d3dcebf
61 Patch0:         %{name}-info.patch
62 Patch2:         %{name}-pld.patch
63 Patch3:         %{name}-crypt-blowfish.patch
64 Patch4:         %{name}-string2-pointer-arith.patch
65 Patch5:         %{name}-linuxthreads-lock.patch
66 Patch6:         %{name}-pthread_create-manpage.patch
67 Patch9:         %{name}-paths.patch
68 Patch10:        %{name}-vaargs.patch
69 Patch11:        %{name}-getaddrinfo-workaround.patch
70 Patch12:        %{name}-postshell.patch
71 Patch13:        %{name}-pl.po-update.patch
72 Patch14:        %{name}-missing-nls.patch
73 Patch16:        %{name}-java-libc-wait.patch
74 Patch17:        %{name}-morelocales.patch
75 Patch18:        %{name}-lthrds_noomit.patch
76 Patch19:        %{name}-no_opt_override.patch
77 Patch20:        %{name}-gcc33.patch
78 #Patch21:       %{name}-sanity.patch
79 Patch22:        %{name}-secureexec.patch
80 Patch23:        %{name}-kernel_includes.patch
81 Patch24:        %{name}-sparc64_pause.patch
82 Patch25:        %{name}-linuxthreads.patch
83 Patch26:        %{name}-alpha-fix-as-syntax.patch
84 URL:            http://www.gnu.org/software/libc/
85 BuildRequires:  binutils >= 2.13.90.0.2
86 BuildRequires:  gcc >= 3.2
87 %{!?_without_memusage:BuildRequires:    gd-devel >= 2.0.1}
88 BuildRequires:  gettext-devel >= 0.10.36
89 %if 0%{!?_with_kernheaders:1}
90 %{!?_without_dist_kernel:BuildRequires: kernel-headers < 2.5}
91 %endif
92 BuildRequires:  perl-base
93 BuildRequires:  rpm-build >= 4.0.2-46
94 BuildRequires:  rpm-perlprov
95 BuildRequires:  sed >= 4.0.5
96 BuildRequires:  texinfo
97 PreReq:         basesystem
98 Provides:       ld.so.2
99 Provides:       ldconfig
100 Provides:       /sbin/ldconfig
101 Obsoletes:      %{name}-common
102 Obsoletes:      %{name}-debug
103 Obsoletes:      ldconfig
104 AutoReq:        false
105 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
106 Conflicts:      kernel < %{min_kernel}
107 Conflicts:      ld.so < 1.9.9-10
108 Conflicts:      man-pages < 1.43
109 Conflicts:      rc-scripts < 0.3.1-13
110 Conflicts:      rpm < 4.1
111
112 %define         debugcflags     -O1 -g
113 %ifarch sparc64
114 %define         _without_memusage       1
115 %define         specflags_sparc64       -mvis -fcall-used-g6
116 %define         _libdir                 /usr/lib64
117 %endif
118
119 %description
120 Contains the standard libraries that are used by multiple programs on
121 the system. In order to save disk space and memory, as well as to ease
122 upgrades, common system code is kept in one place and shared between
123 programs. This package contains the most important sets of shared
124 libraries, the standard C library and the standard math library.
125 Without these, a Linux system will not function. It also contains
126 national language (locale) support and timezone databases.
127
128 Can be used on: Linux kernel >= %{min_kernel}.
129
130 %description -l de
131 Enthält die Standard-Libraries, die von verschiedenen Programmen im
132 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
133 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
134 einer einzigen Stelle gespeichert und wird von den Programmen
135 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
136 shared Libraries, die Standard-C-Library und die
137 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
138 Ferner enthält es den Support für die verschiedenen Sprachgregionen
139 (locale) und die Zeitzonen-Datenbank.
140
141 Can be used on: Linux kernel >= %{min_kernel}.
142
143 %description -l fr
144 Contient les bibliothèques standards utilisées par de nombreux
145 programmes du système. Afin d'économiser l'espace disque et mémoire,
146 et de faciliter les mises à jour, le code commun au système est mis à
147 un endroit et partagé entre les programmes. Ce paquetage contient les
148 bibliothèques partagées les plus importantes, la bibliothèque standard
149 du C et la bibliothèque mathématique standard. Sans celles-ci, un
150 système Linux ne peut fonctionner. Il contient aussi la gestion des
151 langues nationales (locales) et les bases de données des zones
152 horaires.
153
154 Can be used on: Linux kernel >= %{min_kernel}.
155
156 %description -l ja
157 glibc
158 ¥Ñ¥Ã¥±¡¼¥¸¤Ï¥·¥¹¥Æ¥à¾å¤ÎÊ£¿ô¤Î¥×¥í¥°¥é¥à¤Ç»È¤ï¤ì¤ëɸ½à¥é¥¤¥Ö¥é¥ê¤ò
159 ¤Õ¤¯¤ß¤Þ¤¹¡£¥Ç¥£¥¹¥¯¥¹¥Ú¡¼¥¹¤È¥á¥â¥ê¤òÀáÌó¤·¤¿¤ê¡¢¥¢¥Ã¥×¥°¥ì¡¼¥É¤ò
160 ÍѰդˤ¹¤ë¤¿¤á¤Ë¡¢¶¦Ä̤Υ·¥¹¥Æ¥à¥³¡¼¥É¤Ï°ì¤Ä¤Î¾ì½ê¤Ë¤ª¤«¤ì¡¢¥×¥í¥°¥é¥à
161 ´Ö¤Ç¶¦Í­¤µ¤ì¤Þ¤¹¡£¤³¤ÎÉôʬŪ¤Ê¥Ñ¥Ã¥±¡¼¥¸¤Ï¥·¥§¥¢¥É¥é¥¤¥Ö¥é¥ê¤Î¤«¤Ê¤ê
162 ½ÅÍפʥ»¥Ã¥È¤ò¤Õ¤¯¤ß¤Þ¤¹: É¸½à C ¥é¥¤¥Ö¥é¥ê¤Èɸ½à¿ôÃͥ饤¥Ö¥é¥ê¤Ç¤¹¡£
163 ¤³¤ÎÆó¤Ä¤Î¥é¥¤¥Ö¥é¥êÈ´¤­¤Ç¤Ï¡¢Linux ¥·¥¹¥Æ¥à¤Ïµ¡Ç½¤·¤Þ¤»¤ó¡£ glibc
164 ¥Ñ¥Ã¥±¡¼¥¸¤Ï¤Þ¤¿ÃÏ°è¸À¸ì (locale) ¥µ¥Ý¡¼¥È¤È¥¿¥¤¥à¥¾¡¼¥ó¥Ç¡¼¥¿¥Ù¡¼¥¹
165 ¥µ¥Ý¡¼¥È¤ò¤Õ¤¯¤ß¤Þ¤¹¡£
166
167 Can be used on: Linux kernel >= %{min_kernel}.
168
169 %description -l pl
170 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
171 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
172 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
173 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
174 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
175 standardowych, wspó³dzielonych (dynamicznych) bibliotek C i
176 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
177 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
178 jêzyków (locale) oraz definicje stref czasowych.
179
180 Przeznaczony dla j±dra Linux >= %{min_kernel}.
181
182 %description -l ru
183 óÏÄÅÒÖÉÔ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÉÓÐÏÌØÚÕÅÍÙÅ ÍÎÏÇÏÞÉÓÌÅÎÎÙÍÉ
184 ÐÒÏÇÒÁÍÍÁÍÉ × ÓÉÓÔÅÍÅ. äÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÓÏÈÒÁÎÉÔØ ÄÉÓËÏ×ÏÅ ÐÒÏÓÔÒÁÎÓÔ×Ï
185 É ÐÁÍÑÔØ, Á ÔÁËÖÅ ÄÌÑ ÐÒÏÓÔÏÔÙ ÏÂÎÏ×ÌÅÎÉÑ, ÓÉÓÔÅÍÎÙÊ ËÏÄ, ÏÂÝÉÊ ÄÌÑ
186 ×ÓÅÈ ÐÒÏÇÒÁÍÍ, ÈÒÁÎÉÔÓÑ × ÏÄÎÏÍ ÍÅÓÔÅ É ËÏÌÌÅËÔÉ×ÎÏ ÉÓÐÏÌØÚÕÅÔÓÑ ×ÓÅÍÉ
187 ÐÒÏÇÒÁÍÍÁÍÉ. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÁÉÂÏÌÅÅ ×ÁÖÎÙÅ ÉÚ ÒÁÚÄÅÌÑÅÍÙÈ
188 ÂÉÂÌÉÏÔÅË - ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ C É ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ
189 ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÜÔÉÈ ÂÉÂÌÉÏÔÅË Linux ÆÕÎËÃÉÏÎÉÒÏ×ÁÔØ ÎÅ ÂÕÄÅÔ. ôÁËÖÅ
190 ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÏÄÄÅÒÖËÕ ÎÁÃÉÏÎÁÌØÎÙÈ ÑÚÙËÏ× (locale) É ÂÁÚÙ ÄÁÎÎÙÈ
191 ×ÒÅÍÅÎÎÙÈ ÚÏΠ(timezone databases).
192
193 Can be used on: Linux kernel >= %{min_kernel}.
194
195 %description -l tr
196 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
197 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
198 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
199 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
200 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
201 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
202 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
203
204 Can be used on: Linux kernel >= %{min_kernel}.
205
206 %description -l uk
207 í¦ÓÔÉÔØ ÓÔÁÎÄÁÒÔΦ Â¦Â̦ÏÔÅËÉ, ËÏÔÒ¦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÞÉÓÌÅÎÎÉÍÉ
208 ÐÒÏÇÒÁÍÁÍÉ × ÓÉÓÔÅͦ. äÌÑ ÔÏÇÏ, ÝÏ ÚÂÅÒÅÇÔÉ ÄÉÓËÏ×ÉÊ ÐÒÏÓÔ¦Ò ÔÁ
209 ÐÁÍ'ÑÔØ, Á ÔÁËÏÖ ÄÌÑ ÐÒÏÓÔÏÔÉ ÐÏÎÏ×ÌÅÎÎÑ ÓÉÓÔÅÍÉ, ÓÉÓÔÅÍÎÉÊ ËÏÄ,
210 ÓЦÌØÎÉÊ ÄÌÑ ×ӦȠÐÒÏÇÒÁÍ, ÚÂÅÒ¦ÇÁ¤ÔØÓÑ × ÏÄÎÏÍՠͦÓæ ¦ ËÏÌÅËÔÉ×ÎÏ
211 ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ ×Ó¦ÍÁ ÐÒÏÇÒÁÍÁÍÉ. ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÁʦÌØÛ ×ÁÖÌÉצ
212 Ú ÄÉÎÁͦÞÎÉȠ¦Â̦ÏÔÅË - ÓÔÁÎÄÁÒÔÎՠ¦Â̦ÏÔÅËÕ ó ÔÁ ÓÔÁÎÄÁÒÔÎÕ
213 ¦Â̦ÏÔÅËÕ ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÃÉȠ¦Â̦ÏÔÅË Linux ÆÕÎËæÏÎÕ×ÁÔÉ ÎÅ ÂÕÄÅ.
214 ôÁËÏÖ ÐÁËÅԠͦÓÔÉÔؠЦÄÔÒÉÍËÕ ÎÁæÏÎÁÌØÎÉÈ ÍÏ× (locale) ÔÁ ÂÁÚÉ ÄÁÎÎÉÈ
215 ÞÁÓÏ×ÉÈ ÚÏΠ(timezone databases).
216
217 Can be used on: Linux kernel >= %{min_kernel}.
218
219 %package devel
220 Summary:        Additional libraries required to compile
221 Summary(de):    Weitere Libraries zum Kompilieren
222 Summary(fr):    Librairies supplémentaires nécessaires à la compilation
223 Summary(ja):    É¸½à C ¥é¥¤¥Ö¥é¥ê¤Ç»È¤ï¤ì¤ë¥Ø¥Ã¥À¡¼¤È¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë
224 Summary(pl):    Dodatkowe biblioteki wymagane podczas kompilacji
225 Summary(ru):    äÏÐÏÌÎÉÔÅÌØÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ËÏÍÐÉÌÑÃÉÉ
226 Summary(tr):    Geliþtirme için gerekli diðer kitaplýklar
227 Summary(uk):    äÏÄÁÔËÏצ Â¦Â̦ÏÔÅËÉ, ÐÏÔÒ¦ÂΦ ÄÌÑ ËÏÍЦÌÑæ§
228 Group:          Development/Libraries
229 Requires:       %{name} = %{epoch}:%{version}
230
231 %description devel
232 To develop programs which use the standard C libraries (which nearly
233 all programs do), the system needs to have these standard header files
234 and object files available for creating the executables.
235
236 %description devel -l de
237 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
238 verwenden (also fast alle), benötigt das System diese Standard-Header-
239 und Objektdateien zum Erstellen der ausführbaren Programme.
240
241 %description devel -l fr
242 Pour développer des programmes utilisant les bibliothèques standard du
243 C (ce que presque tous les programmes font), le système doit posséder
244 ces fichiers en-têtes et objets standards pour créer les exécutables.
245
246 %description devel -l ja
247 glibc-devel ¥Ñ¥Ã¥±¡¼¥¸¤Ï(¤Û¤È¤ó¤É¤¹¤Ù¤Æ¤Î¥×¥í¥°¥é¥à¤Ç»È¤ï¤ì¤ë)ɸ½à C
248 ¥é¥¤¥Ö¥é¥ê¤ò»ÈÍѤ·¤¿¥×¥í¥°¥é¥à¤ò³«È¯¤¹¤ë¤¿¤á¤Î¥Ø¥Ã¥À¡¼¤È¥ª¥Ö¥¸¥§¥¯¥È
249 ¥Õ¥¡¥¤¥ë¤ò´Þ¤ß¤Þ¤¹¡£¤â¤·É¸½à C
250 ¥é¥¤¥Ö¥é¥ê¤ò»ÈÍѤ¹¤ë¥×¥í¥°¥é¥à¤ò³«È¯¤¹¤ë¤Ê¤é
251 ¼Â¹Ô¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ëÌÜŪ¤Ç¤³¤ì¤é¤Îɸ½à¥Ø¥Ã¥À¤È¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë
252 ¤¬»ÈÍѤǤ­¤Þ¤¹¡£
253
254 %description devel -l pl
255 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
256 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
257 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
258 wykonywalnych i innych bibliotek.
259
260 %description devel -l ru
261 äÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ C (Á
262 ÐÒÁËÔÉÞÅÓËÉ ×ÓÅ ÐÒÏÇÒÁÍÍÙ ÉÈ ÉÓÐÏÌØÚÕÀÔ), ÓÉÓÔÅÍÅ îåïâèïäéíù ÈÅÄÅÒÙ É
263 ÏÂßÅËÔÎÙÅ ÆÁÊÌÙ, ÓÏÄÅÒÖÁÝÉÅÓÑ × ÜÔÏÍ ÐÁËÅÔÅ, ÞÔÏÂÙ ÓÏÚÄÁ×ÁÔØ
264 ÉÓÐÏÌÎÑÅÍÙÅ ÆÁÊÌÙ.
265
266 %description devel -l tr
267 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
268 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
269 kitaplýklar.
270
271 %description devel -l uk
272 äÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÓÔÁÎÄÁÒÔΦ Â¦Â̦ÏÔÅËÉ C
273 (ÐÒÁËÔÉÞÎÏ ×Ó¦ ÐÒÏÇÒÁÍÉ §È ×ÉËÏÒÉÓÔÏ×ÕÀÔØ), ÓÉÓÔÅͦ îåïâè¶äÈÅÄÅÒÉ
274 ÔÁ ÏÂ'¤ËÔΦ ÆÁÊÌÉ, ÝϠͦÓÔÑÔØÓÑ × ÃØÏÍÕ ÐÁËÅÔ¦, ÃÏ ÓÔ×ÏÒÀ×ÁÔÉ
275 ×ÉËÏÎÕ×ÁΦ ÆÁÊÌÉ.
276
277 %package kernel-headers
278 Summary:        Kernel header files the glibc has been built with
279 Summary(pl):    Pliki nag³ówkowe j±dra, z którymi zosta³a zbudowana ta wersja glibc
280 Release:        %{rel}
281 Group:          Development/Libraries
282
283 %description kernel-headers
284 Kernel header files for userspace.
285
286 %description kernel-headers -l pl
287 Pliki nag³ówkowe j±dra dla przestrzeni u¿ytkownika
288
289 %package -n nscd
290 Summary:        Name Service Caching Daemon
291 Summary(ja):    ¥Í¡¼¥à¥µ¡¼¥Ó¥¹¥­¥ã¥Ã¥·¥ó¥°¥Ç¡¼¥â¥ó (nacd)
292 Summary(pl):    Demon zapamiêtuj±cy odpowiedzi serwisów nazw
293 Summary(ru):    ëÜÛÉÒÕÀÝÉÊ ÄÅÍÏΠÓÅÒ×ÉÓÏ× ÉÍÅÎ
294 Summary(uk):    ëÅÛÕÀÞÉÊ ÄÅÍÏΠÓÅצӦנ¦ÍÅÎ
295 Release:        %{rel}
296 Group:          Networking/Daemons
297 PreReq:         rc-scripts >= 0.2.0
298 Requires(post,preun):   /sbin/chkconfig
299 Requires(post): fileutils
300 Requires:       %{name} = %{epoch}:%{version}
301
302 %description -n nscd
303 nscd caches name service lookups; it can dramatically improve
304 performance with NIS+, and may help with DNS as well. You cannot use
305 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
306 nscd happens to hit these bugs particularly hard.
307
308 %description -n nscd -l ja
309 Nscd ¤Ï¥Í¡¼¥à¥µ¡¼¥Ó¥¹»²¾È¤ò¥­¥ã¥Ã¥·¥å¤·¡¢NIS+ ¤Î¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤ò
310 ¥É¥é¥Þ¥Æ¥£¥Ã¥¯¤Ë²þÁ±¤¹¤ë¤³¤È¤¬¤Ç¤­¡¢DNS ¤òƱÍͤËÊä½õ¤·¤Þ¤¹¡£ 2.0
311 ¥«¡¼¥Í¥ë¤Ç nscd ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
312 ¤½¤ì¤Ï¡¢¥«¡¼¥Í¥ë¦¤Î¥¹¥ì¥Ã¥É¥µ¥Ý¡¼¥È¤Ë¥Ð¥°¤¬¤¢¤ë¤«¤é¤Ç¤¹¡£ÉÔ¹¬¤Ê¤³¤È¤Ë¡¢
313 nscd ¤Ï¤³¤ì¤é¤Î¥Ð¥°¤ËÆäˤϤ²¤·¤¯¤¢¤¿¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
314
315 %description -n nscd -l pl
316 nscd zapamiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
317 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
318 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³êdów po stronie j±dra w
319 obs³udze w±tków.
320
321 %description -n nscd -l ru
322 nscd ËÜÛÉÒÕÅÔ ÒÅÚÕÌØÔÁÔÙ ÚÁÐÒÏÓÏ× Ë ÓÅÒ×ÉÓÁÍ ÉÍÅÎ; ÜÔÏ ÍÏÖÅÔ ÒÅÚËÏ
323 Õ×ÅÌÉÞÉÔØ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔØ ÒÁÂÏÔÙ Ó NIS+ É, ÔÁËÖÅ, ÍÏÖÅÔ ÐÏÍÏÞØ Ó
324 DNS.
325
326 %description -n nscd -l uk
327 nscd ËÅÛÕ¤ ÒÅÚÕÌØÔÁÔÉ ÚÁÐÒÏӦנÄÏ ÓÅÒצӦנ¦ÍÅÎ; ÃÅ ÍÏÖÅ ÓÉÌØÎÏ
328 Ú¦ÌØÛÉÔÉ Û×ÉÄ˦ÓÔØ ÒÏÂÏÔÉ Ú NIS+ ¦, ÔÁËÏÖ, ÍÏÖÅ ÄÏÐÏÍÏÇÔÉ Ú DNS.
329
330 %package -n localedb-src
331 Summary:        locale database source code
332 Summary(pl):    Kod ¼ród³owy bazy locale
333 Release:        %{rel}
334 Group:          Daemons
335 Requires:       %{name} = %{epoch}:%{version}
336
337 %description -n localedb-src
338 This add-on package contains the data needed to build the locale data
339 files to use the internationalization features of the GNU libc.
340
341 %description -n localedb-src -l pl
342 Pakiet ten zawiera dane niezbêdne do zbudowania binarnych plików
343 lokalizacyjnych, by móc wykorzystaæ mo¿liwo¶ci oferowane przez GNU
344 libc.
345
346 %package localedb-all
347 Summary:        locale database for all locales supported by glibc
348 Summary(pl):    Baza danych locale dla wszystkich lokalizacji obs³ugiwanych przez glibc
349 Release:        %{rel}
350 Group:          Libraries
351 Requires:       %{name} = %{epoch}:%{version}
352
353 %description localedb-all
354 This package contains locale database for all locales supported by
355 glibc. In glibc 2.3.x it's one large file (about 19MB) - if you want
356 something smaller with support for chosen locales only, consider
357 installing localedb-src and regenerating database using localedb-gen
358 script (when database is generated, localedb-src can be uninstalled).
359
360 %description localedb-all -l pl
361 Ten pakiet zawiera bazê danych locale dla wszystkich lokalizacji
362 obs³ugiwanych przez glibc. W glibc 2.3.x jest to jeden du¿y plik
363 (oko³o 19MB); aby mieæ co¶ mniejszego, z obs³ug± tylko wybranych
364 lokalizacji, nale¿y zainstalowaæ pakiet localedb-src i przegenerowaæ
365 bazê danych przy u¿yciu skryptu localedb-gen (po wygenerowaniu bazy
366 pakiet localedb-src mo¿na odinstalowaæ).
367
368 %package -n iconv
369 Summary:        Convert encoding of given files from one encoding to another
370 Summary(pl):    Program do konwersji plików tekstowych z jednego kodowania do innego
371 Release:        %{rel}
372 Group:          Applications/Text
373 Requires:       %{name} = %{epoch}:%{version}
374
375 %description -n iconv
376 Convert encoding of given files from one encoding to another. You need
377 this package if you want to convert some documet from one encoding to
378 another or if you have installed some programs which use Generic
379 Character Set Conversion Interface.
380
381 %description -n iconv -l pl
382 Program do konwersji plików tekstowych z jednego kodowania do innego.
383 Musisz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
384 dokumentów z jednego kodowania do innego lub je¿eli masz zainstalowane
385 jakie¶ programy, które korzystaj± z Generic Character Set Conversion
386 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
387 umo¿liwiaj± konwersjê kodowania danych z poziomu dowolnego programu.
388
389 %package static
390 Summary:        Static libraries
391 Summary(pl):    Biblioteki statyczne
392 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ glibc
393 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ glibc
394 Release:        %{rel}
395 Group:          Development/Libraries
396 Requires:       %{name}-devel = %{epoch}:%{version}
397
398 %description static
399 GNU libc static libraries.
400
401 %description static -l pl
402 Biblioteki statyczne GNU libc.
403
404 %description static -l ru
405 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
406 ×ÈÏÄÑÔ × glibc-devel.
407
408 %description static -l uk
409 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍɠ¦Â̦ÏÔÅËÁÍÉ, ÝϠ¦ÌØÛÅ ÎÅ ×ÈÏÄÑÔØ ×
410 ÓËÌÁÄ glibc-devel.
411
412 %package profile
413 Summary:        glibc with profiling support
414 Summary(de):    glibc mit Profil-Unterstützung
415 Summary(fr):    glibc avec support pour profiling
416 Summary(pl):    glibc ze wsparciem dla profilowania
417 Summary(ru):    GNU libc Ó ÐÏÄÄÅÒÖËÏÊ ÐÒÏÆÁÊÌÅÒÁ
418 Summary(tr):    Ölçüm desteði olan glibc
419 Summary(uk):    GNU libc Ú Ð¦ÄÔÒÉÍËÏÀ ÐÒÏÆÁÊÌÅÒÁ
420 Release:        %{rel}
421 Group:          Development/Libraries/Libc
422 Obsoletes:      libc-profile
423 Requires:       %{name}-devel = %{epoch}:%{version}
424
425 %description profile
426 When programs are being profiled used gprof, they must use these
427 libraries instead of the standard C libraries for gprof to be able to
428 profile them correctly.
429
430 %description profile -l de
431 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
432 Libraries anstelle der üblichen C-Libraries verwendet werden.
433
434 %description profile -l pl
435 Programy profilowane za pomoc± gprof musz± u¿ywaæ tych bibliotek
436 zamiast standardowych bibliotek C, aby gprof móg³ odpowiednio je
437 wyprofilowaæ.
438
439 %description profile -l uk
440 ëÏÌÉ ÐÒÏÇÒÁÍÉ ÄÏÓ̦ÄÖÕÀÔØÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ×ÏÎÉ ÐÏ×ÉÎΦ
441 ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÚÁͦÓÔØ ÓÔÁÎÄÁÒÔÎÉȠ¦Â̦ÏÔÅˠ¦Â̦ÏÔÅËÉ, ÝϠͦÓÔÑÔØÓÑ
442 × ÃØÏÍÕ ÐÁËÅÔ¦. ðÒÉ ×ÉËÏÒÉÓÔÁÎΦ ÓÔÁÎÄÁÒÔÎÉȠ¦Â̦ÏÔÅË gprof ÚÁͦÓÔØ
443 ÒÅÁÌØÎÉÈ ÒÅÚÕÌØÔÁԦנÂÕÄÅ ÐÏËÁÚÕ×ÁÔɠæÎÉ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
444 ÐÏÚÁÍÉÎÕÌÏÍÕ ÒÏæ...
445
446 %description profile -l tr
447 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
448 kitaplýðý kullanmak zorundadýrlar.
449
450 %description profile -l ru
451 ëÏÇÄÁ ÐÒÏÇÒÁÍÍÙ ÉÓÓÌÅÄÕÀÔÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ÏÎÉ ÄÏÌÖÎÙ
452 ÉÓÐÏÌØÚÏ×ÁÔØ, ×ÍÅÓÔÏ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË, ÂÉÂÌÉÏÔÅËÉ, ×ËÌÀÞÅÎÎÙÅ ×
453 ÜÔÏÔ ÐÁËÅÔ. ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË gprof ×ÍÅÓÔÏ
454 ÒÅÁÌØÎÙÈ ÒÅÚÕÌØÔÁÔÏ× ÂÕÄÅÔ ÐÏËÁÚÙ×ÁÔØ ÃÅÎÙ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
455 ÐÏÚÁÐÒÏÛÌÏÍ ÇÏÄÕ...
456
457 %package pic
458 Summary:        glibc PIC archive
459 Summary(pl):    Archiwum PIC glibc
460 Release:        %{rel}
461 Group:          Development/Libraries/Libc
462 Requires:       %{name}-devel = %{epoch}:%{version}
463
464 %description pic
465 GNU C Library PIC archive contains an archive library (ar file)
466 composed of individual shared objects. This is used for creating a
467 library which is a smaller subset of the standard libc shared library.
468
469 %description pic -l pl
470 Archiwum PIC biblioteki GNU C zawiera archiwaln± bibliotekê (plik ar)
471 z³o¿on± z pojedyñczych obiektów wspó³dzielonych. U¿ywana jest do
472 tworzenia biblioteki bêd±cej mniejszym podzestawem standardowej
473 biblioteki wspó³dzielonej libc.
474
475 %package -n nss_compat
476 Summary:        Old style NYS NSS glibc module
477 Summary(pl):    Stary modu³ NYS NSS glibc
478 Release:        %{rel}
479 Group:          Base
480 Requires:       %{name} = %{epoch}:%{version}
481
482 %description -n nss_compat
483 Old style NYS NSS glibc module.
484
485 %description -n nss_compat -l pl
486 Stary modu³ NYS NSS glibc.
487
488 %package -n nss_dns
489 Summary:        BIND NSS glibc module
490 Summary(pl):    Modu³ BIND NSS glibc
491 Release:        %{rel}
492 Group:          Base
493 Requires:       %{name} = %{epoch}:%{version}
494
495 %description -n nss_dns
496 BIND NSS glibc module.
497
498 %description -n nss_dns -l pl
499 Modu³ BIND NSS glibc.
500
501 %package -n nss_files
502 Summary:        Traditional files databases NSS glibc module
503 Summary(pl):    Modu³ tradycyjnych plikowych baz danych NSS glibc
504 Release:        %{rel}
505 Group:          Base
506 Requires:       %{name} = %{epoch}:%{version}
507
508 %description -n nss_files
509 Traditional files databases NSS glibc module.
510
511 %description -n nss_files -l pl
512 Modu³ tradycyjnych plikowych baz danych NSS glibc.
513
514 %package -n nss_hesiod
515 Summary:        hesiod NSS glibc module
516 Summary(pl):    Modu³ hesiod NSS glibc
517 Release:        %{rel}
518 Group:          Base
519 Requires:       %{name} = %{epoch}:%{version}
520
521 %description -n nss_hesiod
522 glibc NSS (Name Service Switch) module for databases access.
523
524 %description -n nss_hesiod -l pl
525 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych.
526
527 %package -n nss_nis
528 Summary:        NIS(YP) NSS glibc module
529 Summary(pl):    Modu³ NIS(YP) NSS glibc
530 Release:        %{rel}
531 Group:          Base
532 Requires:       %{name} = %{epoch}:%{version}
533
534 %description -n nss_nis
535 glibc NSS (Name Service Switch) module for NIS(YP) databases access.
536
537 %description -n nss_nis -l pl
538 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS(YP).
539
540 %package -n nss_nisplus
541 Summary:        NIS+ NSS module
542 Summary(pl):    Modu³ NIS+ NSS
543 Release:        %{rel}
544 Group:          Base
545 Requires:       %{name} = %{epoch}:%{version}
546
547 %description -n nss_nisplus
548 glibc NSS (Name Service Switch) module for NIS+ databases accesa.
549
550 %description -n nss_nisplus -l pl
551 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS+.
552
553 %package memusage
554 Summary:        A toy
555 Summary(pl):    Zabawka
556 Release:        %{rel}
557 Group:          Applications
558 Requires:       %{name} = %{epoch}:%{version}
559 Requires:       gd
560
561 %description memusage
562 A toy.
563
564 %description memusage -l pl
565 Zabawka.
566
567 %package zoneinfo_right
568 Summary:        Non-POSIX (real) time zones
569 Summary(pl):    Nie-POSIX-owe (prawdziwe) strefy czasowe
570 Release:        %{rel}
571 Group:          Libraries
572 Requires:       %{name} = %{epoch}:%{version}
573
574 %description zoneinfo_right
575 You don't want this. Details at:
576 http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html
577
578 %description zoneinfo_right -l pl
579 Nie potrzebujesz tego. Szczegó³y pod:
580 http://sources.redhat.com/ml/libc-alpha/2000-12/msg00068.html
581
582 %package -n %{name}64
583 Summary:        GNU libc - 64-bit libraries
584 Summary(pl):    GNU libc - biblioteki 64-bitowe
585 Release:        %{rel}
586 Group:          Libraries
587 Requires:       %{name} = %{epoch}:%{version}
588
589 %description -n %{name}64
590 64-bit GNU libc libraries for sparc64 architecture.
591
592 %description -l pl -n %{name}64
593 Biblioteki 64-bitowe GNU libc dla architektury sparc64.
594
595 %package -n %{name}64-devel
596 Summary:        Development files for 64-bit GNU libc libraries
597 Summary(pl):    Pliki do programowania z u¿yciem 64-bitowych bibliotek GNU libc
598 Release:        %{rel}
599 Group:          Development/Libraries
600 Requires:       %{name}-devel = %{epoch}:%{version}
601
602 %description -n %{name}64-devel
603 Development files for 64-bit GNU libc libraries for sparc64
604 architecture.
605
606 %description -l pl -n %{name}64-devel
607 Pliki do programowania z u¿yciem 64-bitowych bibliotek GNU libc dla
608 architektury sparc64.
609
610 %package -n %{name}64-static
611 Summary:        Static 64-bit GNU libc libraries
612 Summary(pl):    Statyczne 64-bitowe biblioteki GNU libc
613 Release:        %{rel}
614 Group:          Development/Libraries
615 Requires:       %{name}64-devel = %{epoch}:%{version}
616
617 %description -n %{name}64-static
618 Static 64-bit GNU libc libraries.
619
620 %description -l pl -n %{name}64-static
621 Statyczne 64-bitowe biblioteki GNU libc.
622
623 %prep
624 %setup -q -a 1 -a 9 -a 10
625 %patch0 -p1
626 %patch2 -p1
627 %patch3 -p1
628 %patch4 -p1
629 %patch5 -p1
630 %patch6 -p1
631 %patch9 -p1
632 %patch10 -p1
633 #%%patch11 -p1
634 %patch12 -p1
635 %patch13 -p1
636 %patch14 -p1
637 %patch16 -p1
638 %patch17 -p1
639 %patch18 -p1
640 # don't know, if it is good idea, for brave ones
641 #%patch19 -p1
642 %patch20 -p1
643 #%patch21 -p1
644 %patch22 -p1
645 %{!?_with_kernheaders:%patch23}
646 %patch24 -p1
647 # updated - lt
648 %ifnarch alpha
649 %patch25 -p1
650 %endif
651 %patch26 -p1
652
653 chmod +x scripts/cpp
654
655 # standardize name
656 mv -f localedata/locales/{lug_UG,lg_UG}
657
658 %if %{with idn}
659 cp -r libidn-*/lib libidn
660 cp libidn-*/libc/{Makefile,configure,Banner,Versions} libidn/
661 cp libidn-*/lib/*.{c,h} libidn/
662 sed -e 's/idn-int.h/stdint.h/g' libidn-*/lib/idna.h > libidn/idna.h
663 ln -sf ../libidn/idna.h include/idna.h
664 sed -e 's/idn-int.h/stdint.h/g' libidn-*/lib/stringprep.h > libidn/stringprep.h
665 sed -e 's/idn-int.h/stdint.h/g' libidn-*/lib/punycode.h > libidn/punycode.h
666 sed -e 's/stringprep_generic/rfc3454/g' libidn-*/libc/Makefile > libidn/Makefile
667
668 #cp libidn-*/libc/getaddrinfo.c sysdeps/posix/
669 #cp libidn-*/libc/netdb.h resolv/
670
671 cp libidn-*/libc/*.patch libc-idn.patch
672 patch -p0 < libc-idn.patch
673
674 touch libidn/libidn.texi
675 %endif
676
677 #make proper symlink for asm in headers
678 #cd usr/include
679 #%ifarch %{ix86}
680 #ln -s asm-i386 asm
681 #%endif
682 #cd ../..
683
684 %build
685 # Prepare kernel headers
686 TARGET_CPU=$(echo "%{_target_cpu}" | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
687                                    -e s/athlon/i386/ -e s/arm.*/arm/ \
688                                    -e s/sa110/arm/ -e s/s390x/s390/)
689 _headers_dir=`pwd`/usr/include; export _headers_dir;
690 (cd $_headers_dir && ln -s asm-${TARGET_CPU} asm)
691
692 # Build glibc
693 mkdir builddir
694 cd builddir
695 # avoid stripping ld.so by -s in rpmldflags
696 LDFLAGS=" " ; export LDFLAGS
697 #CFLAGS="-I $_headers_dir %{rpmcflags}"; export CFLAGS
698 ../%configure \
699         --enable-add-ons=linuxthreads%{?with_idn:,libidn} \
700         --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
701         --enable-profile \
702         --%{?_without_fp:en}%{!?_without_fp:dis}able-omitfp \
703 %if 0%{!?_with_kernheaders:1}
704         CPPFLAGS="-I%{_kernelsrcdir}/include" \
705         --with-headers=%{_kernelsrcdir}/include
706 %else
707         CPPFLAGS="-I$_headers_dir" \
708         --with-headers=$_headers_dir
709 %endif
710
711 # problem compiling with --enable-bounded (must be reported to libc-alpha)
712
713 %{__make} %{?parallelmkflags}
714
715 %install
716 rm -rf $RPM_BUILD_ROOT
717 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log}
718
719 _headers_dir=`pwd`/usr/include; export _headers_dir;
720
721 cd builddir
722
723 env LANGUAGE=C LC_ALL=C \
724 %{__make} install \
725         %{?parallelmkflags} \
726         install_root=$RPM_BUILD_ROOT \
727         infodir=%{_infodir} \
728         mandir=%{_mandir}
729
730 env LANGUAGE=C LC_ALL=C \
731 %{__make} localedata/install-locales \
732         %{?parallelmkflags} \
733         install_root=$RPM_BUILD_ROOT
734
735 PICFILES="libc_pic.a libc.map
736         math/libm_pic.a libm.map
737         resolv/libresolv_pic.a"
738
739 install $PICFILES                               $RPM_BUILD_ROOT%{_libdir}
740 install elf/soinit.os                           $RPM_BUILD_ROOT%{_libdir}/soinit.o
741 install elf/sofini.os                           $RPM_BUILD_ROOT%{_libdir}/sofini.o
742
743 install elf/postshell                           $RPM_BUILD_ROOT/sbin
744
745 %{!?_without_memusage:mv -f $RPM_BUILD_ROOT/lib/libmemusage.so  $RPM_BUILD_ROOT%{_libdir}}
746 %ifnarch sparc64
747 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so       $RPM_BUILD_ROOT%{_libdir}
748 %endif
749
750 %{__make} -C ../linuxthreads/man
751 install ../linuxthreads/man/*.3thr                      $RPM_BUILD_ROOT%{_mandir}/man3
752
753 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules,posix/*}
754
755 #cd $RPM_BUILD_ROOT%{_datadir}/zoneinfo
756 #for i in [A-Z]*; do
757 #       ln -s ../$i posix
758 #done
759 #cd -
760
761 ln -sf %{_sysconfdir}/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
762 ln -sf localtime                $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
763 ln -sf localtime                $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
764 ln -sf libbsd-compat.a          $RPM_BUILD_ROOT%{_libdir}/libbsd.a
765
766 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
767
768 # make symlinks across top-level directories absolute
769 for l in anl BrokenLocale crypt dl m nsl pthread resolv rt thread_db util ; do
770         rm -f $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
771         ln -sf /lib/`cd $RPM_BUILD_ROOT/lib ; echo lib${l}.so.*` $RPM_BUILD_ROOT%{_libdir}/lib${l}.so
772 done
773
774 install %{SOURCE2}              $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
775 install %{SOURCE3}              $RPM_BUILD_ROOT/etc/sysconfig/nscd
776 install %{SOURCE4}              $RPM_BUILD_ROOT/etc/logrotate.d/nscd
777 install ../nscd/nscd.conf       $RPM_BUILD_ROOT%{_sysconfdir}
778 install ../nss/nsswitch.conf    $RPM_BUILD_ROOT%{_sysconfdir}
779
780 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
781 bzip2 -dc %{SOURCE6} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
782 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
783 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
784 rm -f $RPM_BUILD_ROOT%{_mandir}/hu/man7/man.7
785
786 :> $RPM_BUILD_ROOT/var/log/nscd
787
788 rm -rf ../documentation
789 install -d ../documentation
790
791 cp -f ../linuxthreads/ChangeLog ../documentation/ChangeLog.threads
792 cp -f ../linuxthreads/Changes ../documentation/Changes.threads
793 cp -f ../linuxthreads/README ../documentation/README.threads
794 cp -f ../crypt/README.ufc-crypt ../documentation/
795
796 cp -f ../ChangeLog* ../documentation
797
798 rm -f $RPM_BUILD_ROOT%{_libdir}*/libnss_*.so
799
800 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
801 %ifnarch sparc64
802 %{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/lib/ld-%{version}.so}
803 %endif
804
805 # Collect locale files and mark them with %%lang()
806 rm -f ../glibc.lang
807 echo '%defattr(644,root,root,755)' > ../glibc.lang
808 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}*/locale/* ; do
809         if [ -d $i ]; then
810                 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
811                 twochar=1
812                 # list of long %%lang values we do support
813                 for j in de_AT de_BE de_CH de_LU es_AR es_MX ja_JP.SJIS ko_KR.utf8 pt_BR \
814                          zh_CN zh_CN.gbk zh_HK zh_TW ; do
815                         if [ $j = "$lang" ]; then
816                                 twochar=
817                         fi
818                 done
819                 if [ -n "$twochar" ]; then
820                         if [ `echo $lang | sed "s,_.*,,"` = "zh" ]; then
821                                 lang=`echo $lang | sed "s,\..*,,"`
822                         else
823                                 lang=`echo $lang | sed "s,_.*,,"`
824                         fi
825                 fi
826                 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
827                 echo "%lang($lang) $dir" >> ../glibc.lang
828         fi
829 done
830 # XXX: to be added when become supported by glibc
831 # am,bn,ml (present in sources, but incomplete and disabled) (used by GNOME)
832 # ia,kn,li,mn,sr@Latn (used by GNOME)
833 #       note: GNOME2 uses sr as cyrillic!
834 # nso,ss,ven,xh,zu (used by KDE)
835 for i in af ar az be bg br bs cy de_AT el en en_AU eo es_AR es_MX et eu fa fi \
836          ga gr he hi hr hu id is ja_JP.SJIS ka lg lt lv mk ms mt nn pt ro ru \
837          se sl sq sr sr@cyrillic ta tg th uk uz vi wa yi zh_CN ; do
838         if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES ]; then
839                 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
840                 lang=`echo $i | sed -e 's/_.*//'`
841                 echo "%lang($lang) %{_datadir}/locale/$i" >> ../glibc.lang
842         fi
843 done
844 install %{SOURCE7} $RPM_BUILD_ROOT%{_mandir}/man8
845
846 # localedb-gen infrastructure
847 install %{SOURCE8} $RPM_BUILD_ROOT%{_bindir}/localedb-gen
848 cat > $RPM_BUILD_ROOT/etc/sysconfig/localedb <<EOF
849 # list of supported locales
850 #SUPPORTED_LOCALES="pl_PL/ISO-8859-2 de_DE/ISO-8859-2 en_GB/ISO-8859-1 en_US/ISO-8859-1"
851 EOF
852 install ../localedata/SUPPORTED $RPM_BUILD_ROOT%{_datadir}/i18n
853
854 # shutup check-files
855 rm -f $RPM_BUILD_ROOT%{_mandir}/README.*
856 rm -f $RPM_BUILD_ROOT%{_mandir}/diff.*
857 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
858 # we don't support kernel without ptys support
859 rm -f $RPM_BUILD_ROOT%{_libdir}*/pt_chown
860
861 # copy actual kernel headers for glibc-kernel-headers
862 %if 0%{!?_with_kernheaders:1}
863 %{__mkdir} -p $RPM_BUILD_ROOT%{_includedir}
864 %{__cp} -Hr %{_kernelsrcdir}/include/{asm,linux} $RPM_BUILD_ROOT%{_includedir}
865 if [ -d %{_kernelsrcdir}/include/asm-generic ] ; then
866         %{__cp} -Hr %{_kernelsrcdir}/include/asm-generic $RPM_BUILD_ROOT%{_includedir}
867 fi
868 %else
869 %{__cp} -Hr $_headers_dir/{asm,linux} $RPM_BUILD_ROOT%{_includedir}
870 %endif
871
872 %clean
873 rm -rf $RPM_BUILD_ROOT
874
875 # don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
876 # when %%postun is run
877
878 %ifnarch sparc64
879 %post   -p /sbin/postshell
880 /sbin/ldconfig
881 -/sbin/telinit u
882
883 %postun -p /sbin/postshell
884 /sbin/ldconfig
885 -/sbin/telinit u
886
887 %post   memusage -p /sbin/ldconfig
888 %postun memusage -p /sbin/ldconfig
889
890 %post -n iconv -p %{_sbindir}/iconvconfig
891
892 %post devel
893 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
894 echo "Please install glibc-kernel-headers or, if you are a brave man,"
895 echo "make appropriate links in /usr/include pointing to an already"
896 echo "installed previously chosen kernel-headers package or other"
897 echo "kernel headers you have."
898
899 %postun devel
900 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
901
902 %pre kernel-headers
903 # useful if these are symlinks
904 if [ -h %{_includedir}/asm ]; then rm -f %{_includedir}/asm; fi
905 if [ -h %{_includedir}/linux ]; then rm -f %{_includedir}/linux; fi
906
907 %post -n nscd
908 /sbin/chkconfig --add nscd
909 touch /var/log/nscd
910 chmod 000 /var/log/nscd
911 chown root:root /var/log/nscd
912 chmod 640 /var/log/nscd
913 if [ -f /var/lock/subsys/nscd ]; then
914         /etc/rc.d/init.d/nscd restart 1>&2
915 else
916         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
917 fi
918
919 %preun -n nscd
920 if [ "$1" = "0" ]; then
921         if [ -f /var/lock/subsys/nscd ]; then
922                 /etc/rc.d/init.d/nscd stop 1>&2
923         fi
924         /sbin/chkconfig --del nscd
925 fi
926 %endif
927
928 %ifnarch sparc64
929 %files -f %{name}.lang
930 %defattr(644,root,root,755)
931 %doc README NEWS FAQ BUGS
932
933 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf
934 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nsswitch.conf
935 %config %{_sysconfdir}/rpc
936 %ghost %{_sysconfdir}/ld.so.cache
937
938 %attr(755,root,root) /sbin/*
939 %attr(755,root,root) %{_bindir}/catchsegv
940 %attr(755,root,root) %{_bindir}/getent
941 %attr(755,root,root) %{_bindir}/glibcbug
942 %attr(755,root,root) %{_bindir}/iconv
943 %attr(755,root,root) %{_bindir}/ldd
944 %ifnarch alpha sparc sparc64 ppc
945 %attr(755,root,root) %{_bindir}/lddlibc4
946 %endif
947 %attr(755,root,root) %{_bindir}/locale
948 %attr(755,root,root) %{_bindir}/rpcgen
949 %attr(755,root,root) %{_bindir}/tzselect
950
951 %attr(755,root,root) %{_sbindir}/rpcinfo
952 %attr(755,root,root) %{_sbindir}/zdump
953 %attr(755,root,root) %{_sbindir}/zic
954
955 %attr(755,root,root) /lib/ld-*
956 %attr(755,root,root) /lib/libanl*
957 %attr(755,root,root) /lib/libdl*
958 %attr(755,root,root) /lib/libnsl*
959 %attr(755,root,root) /lib/lib[BScmprtu]*
960
961 %dir %{_datadir}/locale
962 %{_datadir}/locale/locale.alias
963 %{_datadir}/zoneinfo
964 %exclude %{_datadir}/zoneinfo/right
965
966 %dir %{_libdir}*/locale
967
968 %{_mandir}/man1/[!lsg]*
969 %{_mandir}/man1/getent.1*
970 %{_mandir}/man1/locale.1*
971 %{_mandir}/man1/ldd.1*
972 %{_mandir}/man5/???[!d]*
973 %{_mandir}/man7/*
974 %{_mandir}/man8/[!n]*
975 %lang(cs) %{_mandir}/cs/man[578]/*
976 %lang(de) %{_mandir}/de/man[578]/*
977 %lang(es) %{_mandir}/es/man[578]/*
978 %lang(fi) %{_mandir}/fi/man1/ldd.1*
979 %lang(fr) %{_mandir}/fr/man1/ldd.1*
980 %lang(fr) %{_mandir}/fr/man[578]/*
981 %lang(hu) %{_mandir}/hu/man1/ldd.1*
982 %lang(hu) %{_mandir}/hu/man[578]/*
983 %lang(it) %{_mandir}/it/man[578]/*
984 %lang(ja) %{_mandir}/ja/man1/[!lsg]*
985 %lang(ja) %{_mandir}/ja/man1/ldd.1*
986 %lang(ja) %{_mandir}/ja/man5/???[!d]*
987 %lang(ja) %{_mandir}/ja/man7/*
988 %lang(ja) %{_mandir}/ja/man8/[!n]*
989 %lang(ko) %{_mandir}/ko/man[578]/*
990 # %lang(nl) %{_mandir}/nl/man[578]/*
991 %lang(pl) %{_mandir}/pl/man1/ldd.1*
992 %lang(pl) %{_mandir}/pl/man[578]/*
993 %lang(pt) %{_mandir}/pt/man5/???[!d]*
994 %lang(pt) %{_mandir}/pt/man7/*
995 %lang(pt) %{_mandir}/pt/man8/[!n]*
996 %lang(pt_BR) %{_mandir}/pt_BR/man5/???[!d]*
997 %lang(pt_BR) %{_mandir}/pt_BR/man7/*
998 %lang(pt_BR) %{_mandir}/pt_BR/man8/[!n]*
999 %lang(ru) %{_mandir}/ru/man[578]/*
1000
1001 #%files -n nss_dns
1002 %defattr(644,root,root,755)
1003 %attr(755,root,root) /lib/libnss_dns*.so*
1004
1005 #%files -n nss_files
1006 %defattr(644,root,root,755)
1007 %attr(755,root,root) /lib/libnss_files*.so*
1008
1009 %files zoneinfo_right
1010 %defattr(644,root,root,755)
1011 %{_datadir}/zoneinfo/right
1012
1013 %files -n nss_compat
1014 %defattr(644,root,root,755)
1015 %attr(755,root,root) /lib/libnss_compat*.so*
1016
1017 %files -n nss_hesiod
1018 %defattr(644,root,root,755)
1019 %attr(755,root,root) /lib/libnss_hesiod*.so*
1020
1021 %files -n nss_nis
1022 %defattr(644,root,root,755)
1023 %attr(755,root,root) /lib/libnss_nis.so.*
1024 %attr(755,root,root) /lib/libnss_nis-*.so
1025
1026 %files -n nss_nisplus
1027 %defattr(644,root,root,755)
1028 %attr(755,root,root) /lib/libnss_nisplus*.so*
1029
1030 %if %{?_without_memusage:0}%{!?_without_memusage:1}
1031 %files memusage
1032 %defattr(644,root,root,755)
1033 %attr(755,root,root) %{_bindir}/memusage*
1034 %attr(755,root,root) %{_libdir}/libmemusage*
1035 %endif
1036
1037 %files devel
1038 %defattr(644,root,root,755)
1039 %doc documentation/* NOTES PROJECTS
1040 %attr(755,root,root) %{_bindir}/gencat
1041 %attr(755,root,root) %{_bindir}/getconf
1042 %attr(755,root,root) %{_bindir}/*prof*
1043 %attr(755,root,root) %{_bindir}/*trace
1044
1045 %{_includedir}/*.h
1046 %{_includedir}/arpa
1047 %{_includedir}/bits
1048 %{_includedir}/gnu
1049 %{_includedir}/net
1050 %{_includedir}/netash
1051 %{_includedir}/netatalk
1052 %{_includedir}/netax25
1053 %{_includedir}/neteconet
1054 %{_includedir}/netinet
1055 %{_includedir}/netipx
1056 %{_includedir}/netpacket
1057 %{_includedir}/netrom
1058 %{_includedir}/netrose
1059 %{_includedir}/nfs
1060 %{_includedir}/protocols
1061 %{_includedir}/rpc
1062 %{_includedir}/rpcsvc
1063 %{_includedir}/scsi
1064 %{_includedir}/sys
1065
1066 %{_infodir}/libc.info*
1067
1068 %attr(755,root,root) %{_libdir}/lib[!m]*.so
1069 %attr(755,root,root) %{_libdir}/libm.so
1070 %attr(755,root,root) %{_libdir}/*crt*.o
1071 %{_libdir}/libbsd-compat.a
1072 %{_libdir}/libbsd.a
1073 %{_libdir}/libc_nonshared.a
1074 %{_libdir}/libg.a
1075 %{_libdir}/libieee.a
1076 %{_libdir}/libpthread_nonshared.a
1077 %{_libdir}/librpcsvc.a
1078
1079 %{_mandir}/man1/getconf*
1080 %{_mandir}/man1/sprof*
1081 %{_mandir}/man3/*
1082 %lang(cs) %{_mandir}/cs/man3/*
1083 %lang(de) %{_mandir}/de/man3/*
1084 %lang(es) %{_mandir}/es/man3/*
1085 %lang(fr) %{_mandir}/fr/man3/*
1086 %lang(hu) %{_mandir}/hu/man3/*
1087 # %lang(it) %{_mandir}/it/man3/*
1088 %lang(ja) %{_mandir}/ja/man3/*
1089 %lang(ko) %{_mandir}/ko/man3/*
1090 %lang(nl) %{_mandir}/nl/man3/*
1091 %lang(pl) %{_mandir}/pl/man3/*
1092 %lang(pt) %{_mandir}/pt/man3/*
1093 %lang(pt_BR) %{_mandir}/pt_BR/man3/*
1094 %lang(ru) %{_mandir}/ru/man3/*
1095
1096 %files kernel-headers
1097 %defattr(644,root,root,755)
1098 %{_includedir}/asm*
1099 %{_includedir}/linux
1100
1101 %files -n nscd
1102 %defattr(644,root,root,755)
1103 %attr(640,root,root) %config %verify(not md5 size mtime) /etc/sysconfig/nscd
1104 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nscd.*
1105 %attr(754,root,root) /etc/rc.d/init.d/nscd
1106 %attr(755,root,root) %{_sbindir}/nscd*
1107 %attr(640,root,root) /etc/logrotate.d/nscd
1108 %attr(640,root,root) %ghost /var/log/nscd
1109 %{_mandir}/man5/nscd.conf*
1110 %{_mandir}/man8/nscd*
1111 %lang(ja) %{_mandir}/ja/man5/nscd.conf*
1112 %lang(ja) %{_mandir}/ja/man8/nscd*
1113 %lang(pt) %{_mandir}/pt/man5/nscd.conf*
1114 %lang(pt) %{_mandir}/pt/man8/nscd*
1115 %lang(pt_BR) %{_mandir}/pt_BR/man5/nscd.conf*
1116 %lang(pt_BR) %{_mandir}/pt_BR/man8/nscd*
1117
1118 %files -n localedb-src
1119 %defattr(644,root,root,755)
1120 %attr(755,root,root) %{_bindir}/localedef
1121 %attr(755,root,root) %{_bindir}/localedb-gen
1122 %{_datadir}/i18n
1123 %{_mandir}/man1/localedef*
1124 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/localedb
1125
1126 %files localedb-all
1127 %defattr(644,root,root,755)
1128 %{_libdir}/locale/locale-archive
1129
1130 %files -n iconv
1131 %defattr(644,root,root,755)
1132 %attr(755,root,root) %{_sbindir}/iconvconfig
1133 %dir %{_libdir}/gconv
1134 %{_libdir}/gconv/gconv-modules
1135 %attr(755,root,root) %{_libdir}/gconv/*.so
1136
1137 %files static
1138 %defattr(644,root,root,755)
1139 %{_libdir}/libanl.a
1140 %{_libdir}/libBrokenLocale.a
1141 %{_libdir}/libc.a
1142 %{_libdir}/libcrypt.a
1143 %{_libdir}/libdl.a
1144 %{_libdir}/libm.a
1145 %{_libdir}/libmcheck.a
1146 %{_libdir}/libnsl.a
1147 %{_libdir}/libpthread.a
1148 %{_libdir}/libresolv.a
1149 %{_libdir}/librt.a
1150 %{_libdir}/libutil.a
1151
1152 %files profile
1153 %defattr(644,root,root,755)
1154 %{_libdir}/lib*_p.a
1155
1156 %files pic
1157 %defattr(644,root,root,755)
1158 %{_libdir}/lib*_pic.a
1159 %{_libdir}/lib*.map
1160 %{_libdir}/soinit.o
1161 %{_libdir}/sofini.o
1162
1163 %else
1164
1165 %files -n glibc64
1166 %defattr(644,root,root,755)
1167 %attr(755,root,root) %{_libdir}/ld-*
1168 %attr(755,root,root) %{_libdir}/libanl*
1169 %attr(755,root,root) %{_libdir}/libdl*
1170 %attr(755,root,root) %{_libdir}/libnsl*
1171 %attr(755,root,root) %{_libdir}/lib[BScmprtu]*
1172 %attr(755,root,root) %{_libdir}/libnss_dns*.so*
1173 %attr(755,root,root) %{_libdir}/libnss_files*.so*
1174
1175 %files -n glibc64-devel
1176 %defattr(644,root,root,755)
1177 %attr(755,root,root) %{_libdir}/lib[!m]*.so
1178 %attr(755,root,root) %{_libdir}/libm.so
1179 %attr(755,root,root) %{_libdir}/*crt*.o
1180 %{_libdir}/libbsd-compat.a
1181 %{_libdir}/libbsd.a
1182 %{_libdir}/libc_nonshared.a
1183 %{_libdir}/libg.a
1184 %{_libdir}/libieee.a
1185 %{_libdir}/libpthread_nonshared.a
1186 %{_libdir}/librpcsvc.a
1187
1188 %files -n glibc64-static
1189 %defattr(644,root,root,755)
1190 %{_libdir}/libanl.a
1191 %{_libdir}/libBrokenLocale.a
1192 %{_libdir}/libc.a
1193 %{_libdir}/libcrypt.a
1194 %{_libdir}/libdl.a
1195 %{_libdir}/libm.a
1196 %{_libdir}/libmcheck.a
1197 %{_libdir}/libnsl.a
1198 %{_libdir}/libpthread.a
1199 %{_libdir}/libresolv.a
1200 %{_libdir}/librt.a
1201 %{_libdir}/libutil.a
1202 %endif
This page took 0.117233 seconds and 4 git commands to generate.