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