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