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