]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- added sunrpc security patch from glibc CVS (integer overflow)
[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 %{!?min_kernel:%define          min_kernel      2.2.0}
6
7 Summary:        GNU libc
8 Summary(de):    GNU libc
9 Summary(fr):    GNU libc
10 Summary(pl):    GNU libc
11 Summary(ru):    GNU libc ×ÅÒÓÉÉ 2.2
12 Summary(tr):    GNU libc
13 Summary(uk):    GNU libc ×ÅÒÓ¦§ 2.2
14 Name:           glibc
15 Version:        2.2.5
16 Release:        18
17 Epoch:          6
18 License:        LGPL
19 Group:          Libraries
20 Source0:        ftp://sources.redhat.com/pub/glibc/releases/%{name}-%{version}.tar.bz2
21 Source1:        ftp://sources.redhat.com/pub/glibc/releases/%{name}-linuxthreads-%{version}.tar.bz2
22 Source2:        nscd.init
23 Source3:        nscd.sysconfig
24 Source4:        nscd.logrotate
25 Source5:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-man-pages.tar.bz2
26 Source6:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
27 Source7:        postshell.c
28 Patch0:         %{name}-info.patch
29 Patch1:         %{name}-versions.awk_fix.patch
30 Patch2:         %{name}-pld.patch
31 Patch3:         %{name}-crypt-blowfish.patch
32 Patch4:         %{name}-string2-pointer-arith.patch
33 Patch5:         %{name}-linuxthreads-lock.patch
34 Patch6:         %{name}-pthread_create-manpage.patch
35 Patch7:         %{name}-sparc-linux-chown.patch
36 Patch8:         %{name}-ldconfig-bklinks.patch
37 Patch9:         %{name}-paths.patch
38 Patch10:        %{name}-vaargs.patch
39 Patch11:        %{name}-getaddrinfo-workaround.patch
40 Patch12:        %{name}-use-int-not-arpa.patch
41 Patch13:        %{name}-divdi3.patch
42 Patch14:        %{name}-nss_dns-overflow.patch
43 Patch15:        %{name}-sunrpc-overflow.patch
44 URL:            http://www.gnu.org/software/libc/
45 BuildRequires:  gd-devel >= 2.0.1
46 BuildRequires:  gettext-devel >= 0.10.36
47 BuildRequires:  libpng-devel
48 BuildRequires:  perl
49 BuildRequires:  rpm-build >= 4.0.2-46
50 BuildRequires:  texinfo
51 Provides:       ld.so.2
52 Provides:       ldconfig
53 Provides:       /sbin/ldconfig
54 Obsoletes:      %{name}-common
55 Obsoletes:      %{name}-debug
56 Obsoletes:      ldconfig
57 Autoreq:        false
58 PreReq:         basesystem
59 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60 Conflicts:      kernel < %{min_kernel}
61 Conflicts:      man-pages < 1.43
62 Conflicts:      ld.so < 1.9.9-10
63
64 %define         debugcflags     -O1 -g
65
66 %description
67 Contains the standard libraries that are used by multiple programs on
68 the system. In order to save disk space and memory, as well as to ease
69 upgrades, common system code is kept in one place and shared between
70 programs. This package contains the most important sets of shared
71 libraries, the standard C library and the standard math library.
72 Without these, a Linux system will not function. It also contains
73 national language (locale) support and timezone databases.
74
75 %description -l de
76 Enthält die Standard-Libraries, die von verschiedenen Programmen im
77 System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen
78 und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an
79 einer einzigen Stelle gespeichert und wird von den Programmen
80 gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der
81 shared Libraries, die Standard-C-Library und die
82 Standard-Math-Library, ohne die das Linux-System nicht funktioniert.
83 Ferner enthält es den Support für die verschiedenen Sprachgregionen
84 (locale) und die Zeitzonen-Datenbank.
85
86 %description -l fr
87 Contient les bibliothèques standards utilisées par de nombreux
88 programmes du système. Afin d'économiser l'espace disque et mémoire,
89 et de faciliter les mises à jour, le code commun au système est mis à
90 un endroit et partagé entre les programmes. Ce paquetage contient les
91 bibliothèques partagées les plus importantes, la bibliothèque standard
92 du C et la bibliothèque mathématique standard. Sans celles-ci, un
93 système Linux ne peut fonctionner. Il contient aussi la gestion des
94 langues nationales (locales) et les bases de données des zones
95 horaires.
96
97 %description -l pl
98 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne
99 programy w Twoim systemie. U¿ywanie przez programy bibliotek z tego
100 pakietu oszczêdza miejsce na dysku i pamiêæ. Wiekszo¶æ kodu
101 systemowego jest usytuowane w jednym miejscu i dzielone miêdzy wieloma
102 programami. Pakiet ten zawiera bardzo wa¿ny zbiór bibliotek
103 standardowych, wspó³dzielonych (dynamicznych) bibliotek C i
104 matematycznych. Bez glibc system Linux nie jest w stanie funkcjonowaæ.
105 Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla wielu
106 jêzyków (locale) oraz definicje stref czasowych.
107
108 %description -l ru
109 óÏÄÅÒÖÉÔ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÉÓÐÏÌØÚÕÅÍÙÅ ÍÎÏÇÏÞÉÓÌÅÎÎÙÍÉ
110 ÐÒÏÇÒÁÍÍÁÍÉ × ÓÉÓÔÅÍÅ. äÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÓÏÈÒÁÎÉÔØ ÄÉÓËÏ×ÏÅ ÐÒÏÓÔÒÁÎÓÔ×Ï
111 É ÐÁÍÑÔØ, Á ÔÁËÖÅ ÄÌÑ ÐÒÏÓÔÏÔÙ ÏÂÎÏ×ÌÅÎÉÑ, ÓÉÓÔÅÍÎÙÊ ËÏÄ, ÏÂÝÉÊ ÄÌÑ
112 ×ÓÅÈ ÐÒÏÇÒÁÍÍ, ÈÒÁÎÉÔÓÑ × ÏÄÎÏÍ ÍÅÓÔÅ É ËÏÌÌÅËÔÉ×ÎÏ ÉÓÐÏÌØÚÕÅÔÓÑ ×ÓÅÍÉ
113 ÐÒÏÇÒÁÍÍÁÍÉ. üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÁÉÂÏÌÅÅ ×ÁÖÎÙÅ ÉÚ ÒÁÚÄÅÌÑÅÍÙÈ
114 ÂÉÂÌÉÏÔÅË - ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ C É ÓÔÁÎÄÁÒÔÎÕÀ ÂÉÂÌÉÏÔÅËÕ
115 ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÜÔÉÈ ÂÉÂÌÉÏÔÅË Linux ÆÕÎËÃÉÏÎÉÒÏ×ÁÔØ ÎÅ ÂÕÄÅÔ. ôÁËÖÅ
116 ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÐÏÄÄÅÒÖËÕ ÎÁÃÉÏÎÁÌØÎÙÈ ÑÚÙËÏ× (locale) É ÂÁÚÙ ÄÁÎÎÙÈ
117 ×ÒÅÍÅÎÎÙÈ ÚÏΠ(timezone databases).
118
119 %description -l tr
120 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir.
121 Disk alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme
122 iþlemlerini kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde
123 tutulup programlar arasýnda paylaþtýrýlýr. Bu paket en önemli ortak
124 kitaplýklarý, standart C kitaplýðýný ve standart matematik kitaplýðýný
125 içerir. Bu kitaplýklar olmadan Linux sistemi çalýþmayacaktýr. Yerel
126 dil desteði ve zaman dilimi veri tabaný da bu pakette yer alýr.
127
128 %description -l uk
129 í¦ÓÔÉÔØ ÓÔÁÎÄÁÒÔΦ Â¦Â̦ÏÔÅËÉ, ËÏÔÒ¦ ×ÉËÏÒÉÓÔÏ×ÕÀÔØÓÑ ÞÉÓÌÅÎÎÉÍÉ
130 ÐÒÏÇÒÁÍÁÍÉ × ÓÉÓÔÅͦ. äÌÑ ÔÏÇÏ, ÝÏ ÚÂÅÒÅÇÔÉ ÄÉÓËÏ×ÉÊ ÐÒÏÓÔ¦Ò ÔÁ
131 ÐÁÍ'ÑÔØ, Á ÔÁËÏÖ ÄÌÑ ÐÒÏÓÔÏÔÉ ÐÏÎÏ×ÌÅÎÎÑ ÓÉÓÔÅÍÉ, ÓÉÓÔÅÍÎÉÊ ËÏÄ,
132 ÓЦÌØÎÉÊ ÄÌÑ ×ӦȠÐÒÏÇÒÁÍ, ÚÂÅÒ¦ÇÁ¤ÔØÓÑ × ÏÄÎÏÍՠͦÓæ ¦ ËÏÌÅËÔÉ×ÎÏ
133 ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ ×Ó¦ÍÁ ÐÒÏÇÒÁÍÁÍÉ. ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÎÁʦÌØÛ ×ÁÖÌÉצ
134 Ú ÄÉÎÁͦÞÎÉȠ¦Â̦ÏÔÅË - ÓÔÁÎÄÁÒÔÎՠ¦Â̦ÏÔÅËÕ ó ÔÁ ÓÔÁÎÄÁÒÔÎÕ
135 ¦Â̦ÏÔÅËÕ ÍÁÔÅÍÁÔÉËÉ. âÅÚ ÃÉȠ¦Â̦ÏÔÅË Linux ÆÕÎËæÏÎÕ×ÁÔÉ ÎÅ ÂÕÄÅ.
136 ôÁËÏÖ ÐÁËÅԠͦÓÔÉÔؠЦÄÔÒÉÍËÕ ÎÁæÏÎÁÌØÎÉÈ ÍÏ× (locale) ÔÁ ÂÁÚÉ ÄÁÎÎÉÈ
137 ÞÁÓÏ×ÉÈ ÚÏΠ(timezone databases).
138
139 %package devel
140 Summary:        Additional libraries required to compile
141 Summary(de):    Weitere Libraries zum Kompilieren
142 Summary(fr):    Librairies supplémentaires nécessaires à la compilation.
143 Summary(pl):    Dodatkowe biblioteki wymagane podczas kompilacji
144 Summary(ru):    äÏÐÏÌÎÉÔÅÌØÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ËÏÍÐÉÌÑÃÉÉ
145 Summary(tr):    Geliþtirme için gerekli diðer kitaplýklar
146 Summary(uk):    äÏÄÁÔËÏצ Â¦Â̦ÏÔÅËÉ, ÐÏÔÒ¦ÂΦ ÄÌÑ ËÏÍЦÌÑæ§
147 Group:          Development/Libraries
148 Requires:       %{name} = %{version}
149
150 %description devel
151 To develop programs which use the standard C libraries (which nearly
152 all programs do), the system needs to have these standard header files
153 and object files available for creating the executables.
154
155 %description devel -l de
156 Bei der Entwicklung von Programmen, die die Standard-C-Libraries
157 verwenden (also fast alle), benötigt das System diese Standard-Header-
158 und Objektdateien zum Erstellen der ausführbaren Programme.
159
160 %description devel -l fr
161 Pour développer des programmes utilisant les bibliothèques standard du
162 C (ce que presque tous les programmes font), le système doit posséder
163 ces fichiers en-têtes et objets standards pour créer les exécutables.
164
165 %description devel -l pl
166 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów
167 korzystaj±cych ze standardowej biblioteki C. Znajduj± siê tutaj pliki
168 nag³ówkowe oraz pliki objektowe, niezbêdne do kompilacji programów
169 wykonywalnych i innych bibliotek.
170
171 %description devel -l ru
172 äÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ ÓÔÁÎÄÁÒÔÎÙÅ ÂÉÂÌÉÏÔÅËÉ C (Á
173 ÐÒÁËÔÉÞÅÓËÉ ×ÓÅ ÐÒÏÇÒÁÍÍÙ ÉÈ ÉÓÐÏÌØÚÕÀÔ), ÓÉÓÔÅÍÅ îåïâèïäéíù ÈÅÄÅÒÙ É
174 ÏÂßÅËÔÎÙÅ ÆÁÊÌÙ, ÓÏÄÅÒÖÁÝÉÅÓÑ × ÜÔÏÍ ÐÁËÅÔÅ, ÞÔÏÂÙ ÓÏÚÄÁ×ÁÔØ
175 ÉÓÐÏÌÎÑÅÍÙÅ ÆÁÊÌÙ.
176
177 %description devel -l tr
178 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
179 geliþtirmek için gereken standart baþlýk dosyalarý ve statik
180 kitaplýklar.
181
182 %description devel -l uk
183 äÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ ÓÔÁÎÄÁÒÔΦ Â¦Â̦ÏÔÅËÉ C
184 (ÐÒÁËÔÉÞÎÏ ×Ó¦ ÐÒÏÇÒÁÍÉ §È ×ÉËÏÒÉÓÔÏ×ÕÀÔØ), ÓÉÓÔÅͦ îåïâè¶äÈÅÄÅÒÉ
185 ÔÁ ÏÂ'¤ËÔΦ ÆÁÊÌÉ, ÝϠͦÓÔÑÔØÓÑ × ÃØÏÍÕ ÐÁËÅÔ¦, ÃÏ ÓÔ×ÏÒÀ×ÁÔÉ
186 ×ÉËÏÎÕ×ÁΦ ÆÁÊÌÉ.
187
188 %package -n nscd
189 Summary:        Name Service Caching Daemon
190 Summary(pl):    Demon zapamiêtuj±cy odpowiedzi serwisów nazw
191 Summary(ru):    ëÜÛÉÒÕÀÝÉÊ ÄÅÍÏΠÓÅÒ×ÉÓÏ× ÉÍÅÎ
192 Summary(uk):    ëÅÛÕÀÞÉÊ ÄÅÍÏΠÓÅצӦנ¦ÍÅÎ
193 Group:          Networking/Daemons
194 PreReq:         /sbin/chkconfig
195 PreReq:         rc-scripts >= 0.2.0
196 Requires:       %{name} = %{version}
197 Requires(post): fileutils
198
199 %description -n nscd
200 nscd caches name service lookups; it can dramatically improve
201 performance with NIS+, and may help with DNS as well. You cannot use
202 nscd with 2.0 kernels, due to bugs in the kernel-side thread support.
203 nscd happens to hit these bugs particularly hard.
204
205 %description -n nscd -l pl
206 nscd zapamiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala
207 drastycznie poprawiæ szybko¶æ dzia³ania NIS+. Nie jest mo¿liwe
208 u¿ywanie nscd z j±drami serii 2.0.x z powodu b³êdów po stronie j±dra w
209 obs³udze w±tków.
210
211 %description -n nscd -l ru
212 nscd ËÜÛÉÒÕÅÔ ÒÅÚÕÌØÔÁÔÙ ÚÁÐÒÏÓÏ× Ë ÓÅÒ×ÉÓÁÍ ÉÍÅÎ; ÜÔÏ ÍÏÖÅÔ ÒÅÚËÏ
213 Õ×ÅÌÉÞÉÔØ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔØ ÒÁÂÏÔÙ Ó NIS+ É, ÔÁËÖÅ, ÍÏÖÅÔ ÐÏÍÏÞØ Ó
214 DNS.
215
216 %description -n nscd -l uk
217 nscd ËÅÛÕ¤ ÒÅÚÕÌØÔÁÔÉ ÚÁÐÒÏӦנÄÏ ÓÅÒצӦנ¦ÍÅÎ; ÃÅ ÍÏÖÅ ÓÉÌØÎÏ
218 Ú¦ÌØÛÉÔÉ Û×ÉÄ˦ÓÔØ ÒÏÂÏÔÉ Ú NIS+ ¦, ÔÁËÏÖ, ÍÏÖÅ ÄÏÐÏÍÏÇÔÉ Ú DNS.
219
220 %package -n localedb-src
221 Summary:        locale database source code
222 Summary(pl):    Kod ¼ród³owy bazy locale
223 Group:          Daemons
224 Requires:       %{name} = %{version}
225
226 %description -n localedb-src
227 This add-on package contains the data needed to build the locale data
228 files to use the internationalization features of the GNU libc. glibc
229 package contains standard set of locale binary database so you need
230 this package only when you want to build some non-standard locale
231 database.
232
233 %description -n localedb-src -l pl
234 Pakiet ten zawiera dane niezbêdne do zbudowania binarnych plików
235 lokalizacyjnych, by móc wykorzystaæ mo¿liwo¶ci oferowane przez GNU
236 libc. glibc zawiera standardowy zestaw binarnych baz lokalizacyjnych,
237 w zwi±zku z czym ten pakiet jest potrzebny tylko w sytuacji budowania
238 jakiej¶ niestandardowej bazy.
239
240 %package -n iconv
241 Summary:        Convert encoding of given files from one encoding to another
242 Summary(pl):    Program do konwersji plików tekstowych z jednego kodowania do innego
243 Group:          Applications/Text
244 Requires:       %{name} = %{version}
245
246 %description -n iconv
247 Convert encoding of given files from one encoding to another. You need
248 this package if you want to convert some documet from one encoding to
249 another or if you have installed some programs which use Generic
250 Character Set Conversion Interface.
251
252 %description -n iconv -l pl
253 Program do konwersji plików tekstowych z jednego kodowania do innego.
254 Musisz mieæ zainstalowany ten pakiet je¿eli wykonujesz konwersjê
255 dokumentów z jednego kodowania do innego lub je¿eli masz zainstalowane
256 jakie¶ programy, które korzystaj± z Generic Character Set Conversion
257 Interface w glibc, czyli z zestawu funkcji z tej biblioteki, które
258 umo¿liwiaj± konwersjê kodowania danych z poziomu dowolnego programu.
259
260 %package static
261 Summary:        Static libraries
262 Summary(pl):    Biblioteki statyczne
263 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ glibc
264 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ glibc
265 Group:          Development/Libraries
266 Requires:       %{name}-devel = %{version}
267
268 %description static
269 GNU libc static libraries.
270
271 %description static -l pl
272 Biblioteki statyczne GNU libc.
273
274 %description static -l ru
275 üÔÏ ÏÔÄÅÌØÎÙÊ ÐÁËÅÔ ÓÏ ÓÔÁÔÉÞÅÓËÉÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÅ ÂÏÌØÛÅ ÎÅ
276 ×ÈÏÄÑÔ × glibc-devel.
277
278 %description static -l uk
279 ãÅ ÏËÒÅÍÉÊ ÐÁËÅÔ Ú¦ ÓÔÁÔÉÞÎÉÍɠ¦Â̦ÏÔÅËÁÍÉ, ÝϠ¦ÌØÛÅ ÎÅ ×ÈÏÄÑÔØ ×
280 ÓËÌÁÄ glibc-devel.
281
282 %package profile
283 Summary:        glibc with profiling support
284 Summary(de):    glibc mit Profil-Unterstützung
285 Summary(fr):    glibc avec support pour profiling
286 Summary(pl):    glibc ze wsparciem dla profilowania
287 Summary(ru):    GNU libc Ó ÐÏÄÄÅÒÖËÏÊ ÐÒÏÆÁÊÌÅÒÁ
288 Summary(tr):    Ölçüm desteði olan glibc
289 Summary(uk):    GNU libc Ú Ð¦ÄÔÒÉÍËÏÀ ÐÒÏÆÁÊÌÅÒÁ
290 Group:          Development/Libraries/Libc
291 Obsoletes:      libc-profile
292 Requires:       %{name}-devel = %{version}
293
294 %description profile
295 When programs are being profiled used gprof, they must use these
296 libraries instead of the standard C libraries for gprof to be able to
297 profile them correctly.
298
299 %description profile -l de
300 Damit Programmprofile mit gprof richtig erstellt werden, müssen diese
301 Libraries anstelle der üblichen C-Libraries verwendet werden.
302
303 %description profile -l pl
304 Programy profilowane za pomoc± gprof musz± u¿ywaæ tych bibliotek
305 zamiast standardowych bibliotek C, aby gprof móg³ odpowiednio je
306 wyprofilowaæ.
307
308 %description profile -l uk
309 ëÏÌÉ ÐÒÏÇÒÁÍÉ ÄÏÓ̦ÄÖÕÀÔØÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ×ÏÎÉ ÐÏ×ÉÎΦ
310 ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ ÚÁͦÓÔØ ÓÔÁÎÄÁÒÔÎÉȠ¦Â̦ÏÔÅˠ¦Â̦ÏÔÅËÉ, ÝϠͦÓÔÑÔØÓÑ
311 × ÃØÏÍÕ ÐÁËÅÔ¦. ðÒÉ ×ÉËÏÒÉÓÔÁÎΦ ÓÔÁÎÄÁÒÔÎÉȠ¦Â̦ÏÔÅË gprof ÚÁͦÓÔØ
312 ÒÅÁÌØÎÉÈ ÒÅÚÕÌØÔÁԦנÂÕÄÅ ÐÏËÁÚÕ×ÁÔɠæÎÉ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
313 ÐÏÚÁÍÉÎÕÌÏÍÕ ÒÏæ...
314
315 %description profile -l tr
316 gprof kullanýlarak ölçülen programlar standart C kitaplýðý yerine bu
317 kitaplýðý kullanmak zorundadýrlar.
318
319 %description profile -l ru
320 ëÏÇÄÁ ÐÒÏÇÒÁÍÍÙ ÉÓÓÌÅÄÕÀÔÓÑ ÐÒÏÆÁÊÌÅÒÏÍ gprof, ÏÎÉ ÄÏÌÖÎÙ
321 ÉÓÐÏÌØÚÏ×ÁÔØ, ×ÍÅÓÔÏ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË, ÂÉÂÌÉÏÔÅËÉ, ×ËÌÀÞÅÎÎÙÅ ×
322 ÜÔÏÔ ÐÁËÅÔ. ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÓÔÁÎÄÁÒÔÎÙÈ ÂÉÂÌÉÏÔÅË gprof ×ÍÅÓÔÏ
323 ÒÅÁÌØÎÙÈ ÒÅÚÕÌØÔÁÔÏ× ÂÕÄÅÔ ÐÏËÁÚÙ×ÁÔØ ÃÅÎÙ ÎÁ ÐÁÐÁÊÀ × çÏÎÏÌÕÌÕ ×
324 ÐÏÚÁÐÒÏÛÌÏÍ ÇÏÄÕ...
325
326 %package pic
327 Summary:        glibc PIC archive
328 Summary(pl):    archiwum PIC glibc
329 Group:          Development/Libraries/Libc
330 Requires:       %{name}-devel = %{version}
331
332 %description pic
333 GNU C Library PIC archive contains an archive library (ar file)
334 composed of individual shared objects. This is used for creating a
335 library which is a smaller subset of the standard libc shared library.
336
337 %description pic -l pl
338 Archiwum PIC biblioteki GNU C zawiera archiwaln± bibliotekê (plik ar)
339 z³o¿on± z pojedyñczych obiektów wspó³dzielonych. U¿ywana jest do
340 tworzenia biblioteki bêd±cej mniejszym podzestawem standardowej
341 biblioteki wspó³dzielonej libc.
342
343 %package -n nss_compat
344 Summary:        Old style NYS NSS glibc module
345 Summary(pl):    Stary modu³ NYS NSS glibc
346 Group:          Base
347 Requires:       %{name} = %{version}
348
349 %description -n nss_compat
350 Old style NYS NSS glibc module.
351
352 %description -n nss_compat -l pl
353 Stary modu³ NYS NSS glibc.
354
355 %package -n nss_dns
356 Summary:        BIND NSS glibc module
357 Summary(pl):    Modu³ BIND NSS glibc
358 Group:          Base
359 Requires:       %{name} = %{version}
360
361 %description -n nss_dns
362 BIND NSS glibc module.
363
364 %description -n nss_dns -l pl
365 Modu³ BIND NSS glibc.
366
367 %package -n nss_files
368 Summary:        Traditional files databases NSS glibc module
369 Summary(pl):    Modu³ tradycyjnych plikowych baz danych NSS glibc
370 Group:          Base
371 Requires:       %{name} = %{version}
372
373 %description -n nss_files
374 Traditional files databases NSS glibc module.
375
376 %description -n nss_files -l pl
377 Modu³ tradycyjnych plikowych baz danych NSS glibc.
378
379 %package -n nss_hesiod
380 Summary:        Hesiod NSS glibc module
381 Summary(pl):    Modu³ hesiod NSS glibc
382 Group:          Base
383 Requires:       %{name} = %{version}
384
385 %description -n nss_hesiod
386 glibc NSS (Name Service Switch) module for databases access.
387
388 %description -n nss_hesiod -l pl
389 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych.
390
391 %package -n nss_nis
392 Summary:        NIS(YP) NSS glibc module
393 Summary(pl):    Modu³ NIS(YP) NSS glibc
394 Group:          Base
395 Requires:       %{name} = %{version}
396
397 %description -n nss_nis
398 glibc NSS (Name Service Switch) module for NIS(YP) databases access.
399
400 %description -n nss_nis -l pl
401 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS(YP).
402
403 %package -n nss_nisplus
404 Summary:        NIS+ NSS module
405 Summary(pl):    Modu³ NIS+ NSS
406 Group:          Base
407 Requires:       %{name} = %{version}
408
409 %description -n nss_nisplus
410 glibc NSS (Name Service Switch) module for NIS+ databases accesa.
411
412 %description -n nss_nisplus -l pl
413 Modu³ glibc NSS (Name Service Switch) dostêpu do baz danych NIS+.
414
415 %package memusage
416 Summary:        A toy
417 Summary(pl):    Zabawka
418 Group:          Applications
419 Requires:       %{name} = %{version}
420 Requires:       gd
421
422 %description memusage
423 A toy.
424
425 %description memusage -l pl
426 Zabawka.
427
428 %prep
429 %setup -q -a 1
430 %patch0 -p1
431 %patch1 -p1
432 %patch2 -p1
433 %patch3 -p1
434 %patch4 -p1
435 %patch5 -p1
436 %patch6 -p1
437 %patch7 -p1
438 #%patch8 -p1
439 %patch9 -p1
440 %patch10 -p1
441 %patch11 -p1
442 %patch12 -p1
443 %patch13 -p1
444 %patch14 -p1
445 %patch15 -p1
446
447 chmod +x scripts/cpp
448
449 %build
450 # avoid stripping ld.so by -s in rpmldflags
451 LDFLAGS=" " ; export LDFLAGS
452 %configure2_13 \
453         --enable-add-ons=linuxthreads \
454         --enable-kernel="%{?kernel:%{kernel}}%{!?kernel:%{min_kernel}}" \
455         --enable-profile \
456         --disable-omitfp
457
458 %{__make}
459
460 # this need improvements (like building agains new builded glibc) but works
461 %{__cc} -o postshell %{rpmcflags} %{rpmldflags} %{SOURCE7}
462
463 %install
464 rm -rf $RPM_BUILD_ROOT
465 install -d $RPM_BUILD_ROOT{/etc/{logrotate.d,rc.d/init.d,sysconfig},%{_mandir}/man{3,8},/var/log}
466
467 env LANGUAGE=C LC_ALL=C \
468 %{__make} install \
469         install_root=$RPM_BUILD_ROOT \
470         infodir=%{_infodir} \
471         mandir=%{_mandir}
472
473 env LANGUAGE=C LC_ALL=C \
474 %{__make} install-locales -C localedata \
475         install_root=$RPM_BUILD_ROOT
476
477 PICFILES="libc_pic.a libc.map
478         math/libm_pic.a libm.map
479         resolv/libresolv_pic.a"
480
481 install $PICFILES                               $RPM_BUILD_ROOT%{_libdir}
482 install elf/soinit.os                           $RPM_BUILD_ROOT%{_libdir}/soinit.o
483 install elf/sofini.os                           $RPM_BUILD_ROOT%{_libdir}/sofini.o
484
485 mv -f $RPM_BUILD_ROOT/lib/libmemusage.so        $RPM_BUILD_ROOT%{_libdir}
486 mv -f $RPM_BUILD_ROOT/lib/libpcprofile.so       $RPM_BUILD_ROOT%{_libdir}
487
488 %{__make} -C linuxthreads/man
489 install linuxthreads/man/*.3thr                 $RPM_BUILD_ROOT%{_mandir}/man3
490
491 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
492
493 ln -sf ../../..%{_sysconfdir}/localtime         $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
494 ln -sf localtime                                $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
495 ln -sf localtime                                $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
496 ln -sf ../..%{_libdir}/libbsd-compat.a          $RPM_BUILD_ROOT%{_libdir}/libbsd.a
497
498 rm -f $RPM_BUILD_ROOT%{_sysconfdir}/localtime
499
500 install %{SOURCE2}              $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
501 install %{SOURCE3}              $RPM_BUILD_ROOT/etc/sysconfig/nscd
502 install %{SOURCE4}              $RPM_BUILD_ROOT/etc/logrotate.d/nscd
503 install nscd/nscd.conf          $RPM_BUILD_ROOT%{_sysconfdir}
504 install nss/nsswitch.conf       $RPM_BUILD_ROOT%{_sysconfdir}
505
506 bzip2 -dc %{SOURCE5} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
507 bzip2 -dc %{SOURCE6} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
508 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.cache
509 > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf
510 rm -f %{_mandir}/hu/man7/man.7
511
512 :> $RPM_BUILD_ROOT/var/log/nscd
513
514 rm -rf documentation
515 install -d documentation
516
517 cp -f linuxthreads/ChangeLog documentation/ChangeLog.threads
518 cp -f linuxthreads/Changes documentation/Changes.threads
519 cp -f linuxthreads/README documentation/README.threads
520 cp -f crypt/README.ufc-crypt documentation/
521
522 cp -f ChangeLog documentation
523
524 rm -f $RPM_BUILD_ROOT%{_libdir}/libnss_*.so
525
526 # strip ld.so with --strip-debug only (other ELFs are stripped by rpm):
527 %{!?debug:strip -g -R .comment -R .note $RPM_BUILD_ROOT/lib/ld-%{version}.so}
528
529 # Collect locale files and mark them with %%lang()
530 rm -f glibc.lang
531 for i in $RPM_BUILD_ROOT%{_datadir}/locale/* $RPM_BUILD_ROOT%{_libdir}/locale/* ; do
532         if [ -d $i ]; then
533                 lang=`echo $i | sed -e 's/.*locale\///' -e 's/\/.*//'`
534                 twochar=1
535                 # list of long %%lang values we do support
536                 for j in de_AT de_BE de_CH de_LU ja_JP.SJIS ko_KR.utf8 pt_BR \
537                          zh_CN zh_CN.gbk zh_HK zh_TW ; do
538                         if [ $j = "$lang" ]; then
539                                 twochar=
540                         fi
541                 done
542                 if [ -n "$twochar" ]; then
543                         if [ `echo $lang | sed "s,_.*,,"` = "zh" ]; then
544                                 lang=`echo $lang | sed "s,\..*,,"`
545                         else
546                                 lang=`echo $lang | sed "s,_.*,,"`
547                         fi 
548                 fi      
549                 dir=`echo $i | sed "s#$RPM_BUILD_ROOT##"`
550                 echo "%lang($lang) $dir" >> glibc.lang
551         fi
552 done
553 for i in af az bg de_AT el en eo es_ES et eu fi gr he hr hu id is ja_JP.SJIS \
554          lt lv ms nn pt ro ru sl sr ta uk wa zh_CN ; do
555         if [ ! -d $i ]; then
556                 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
557                 lang=`echo $i | sed -e 's/_.*//'`
558                 echo "%lang($lang) %{_datadir}/locale/$i" >> glibc.lang
559         fi
560 done
561
562
563 install -m755 postshell $RPM_BUILD_ROOT/sbin
564
565 %clean
566 rm -rf $RPM_BUILD_ROOT
567
568 # don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
569 # when %%postun is run
570
571 %post   -p /sbin/postshell
572 /sbin/ldconfig
573 -/sbin/telinit u
574
575 %postun -p /sbin/postshell 
576 /sbin/ldconfig
577 -/sbin/telinit u
578
579 %post   memusage -p /sbin/ldconfig
580 %postun memusage -p /sbin/ldconfig
581
582 %post -n iconv -p %{_sbindir}/iconvconfig
583
584 %post devel
585 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
586
587 %postun devel
588 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
589
590 %post -n nscd
591 /sbin/chkconfig --add nscd
592 touch /var/log/nscd && (chmod 000 /var/log/nscd; chown root.root /var/log/nscd; chmod 640 /var/log/nscd)
593 if [ -f /var/lock/subsys/nscd ]; then
594         /etc/rc.d/init.d/nscd restart 1>&2
595 else
596         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
597 fi
598
599 %preun -n nscd
600 if [ "$1" = "0" ]; then
601         if [ -f /var/lock/subsys/nscd ]; then
602                 /etc/rc.d/init.d/nscd stop 1>&2
603         fi
604         /sbin/chkconfig --del nscd
605 fi
606
607 %files -f %{name}.lang
608 %defattr(644,root,root,755)
609 %doc README NEWS FAQ BUGS
610
611 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/ld.so.conf
612 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nsswitch.conf
613 %config %{_sysconfdir}/rpc
614 %ghost %{_sysconfdir}/ld.so.cache
615
616 %attr(755,root,root) /sbin/*
617 %attr(755,root,root) %{_bindir}/catchsegv
618 %attr(755,root,root) %{_bindir}/getent
619 %attr(755,root,root) %{_bindir}/glibcbug
620 %attr(755,root,root) %{_bindir}/iconv
621 %attr(755,root,root) %{_bindir}/ldd
622 %ifnarch alpha sparc sparc64 ppc
623 %attr(755,root,root) %{_bindir}/lddlibc4
624 %endif
625 %attr(755,root,root) %{_bindir}/locale
626 %attr(755,root,root) %{_bindir}/rpcgen
627 %attr(755,root,root) %{_bindir}/tzselect
628
629 %attr(755,root,root) %{_sbindir}/rpcinfo
630 %attr(755,root,root) %{_sbindir}/zdump
631 %attr(755,root,root) %{_sbindir}/zic
632
633 %attr(755,root,root) /lib/ld-*
634 %attr(755,root,root) /lib/libanl*
635 %attr(755,root,root) /lib/libdl*
636 %attr(755,root,root) /lib/libnsl*
637 %attr(755,root,root) /lib/lib[BScmprtu]*
638
639 %dir %{_datadir}/locale
640 %{_datadir}/locale/locale.alias
641 %{_datadir}/zoneinfo
642
643 %dir %{_libdir}/locale
644
645 %{_mandir}/man1/[^lsg]*
646 %{_mandir}/man1/getent.1*
647 %{_mandir}/man1/locale.1*
648 %{_mandir}/man1/ldd.1*
649 %{_mandir}/man5/???[^d]*
650 %{_mandir}/man7/*
651 %{_mandir}/man8/[^n]*
652 %lang(cs) %{_mandir}/cs/man[578]/*
653 %lang(de) %{_mandir}/de/man[578]/*
654 %lang(es) %{_mandir}/es/man[578]/*
655 %lang(fi) %{_mandir}/fi/man1/ldd.1*
656 %lang(fr) %{_mandir}/fr/man1/ldd.1*
657 %lang(fr) %{_mandir}/fr/man[578]/*
658 %lang(hu) %{_mandir}/hu/man1/ldd.1*
659 %lang(hu) %{_mandir}/hu/man[578]/*
660 %lang(it) %{_mandir}/it/man[578]/*
661 %lang(ja) %{_mandir}/ja/man1/[^lsg]*
662 %lang(ja) %{_mandir}/ja/man1/ldd.1*
663 %lang(ja) %{_mandir}/ja/man5/???[^d]*
664 %lang(ja) %{_mandir}/ja/man7/*
665 %lang(ja) %{_mandir}/ja/man8/[^n]*
666 %lang(ko) %{_mandir}/ko/man[578]/*
667 # %lang(nl) %{_mandir}/nl/man[578]/*
668 %lang(pl) %{_mandir}/pl/man1/ldd.1*
669 %lang(pl) %{_mandir}/pl/man[578]/*
670 %lang(pt) %{_mandir}/pt/man5/???[^d]*
671 %lang(pt) %{_mandir}/pt/man7/*
672 %lang(pt) %{_mandir}/pt/man8/[^n]*
673 %lang(pt_BR) %{_mandir}/pt_BR/man5/???[^d]*
674 %lang(pt_BR) %{_mandir}/pt_BR/man7/*
675 %lang(pt_BR) %{_mandir}/pt_BR/man8/[^n]*
676 %lang(ru) %{_mandir}/ru/man[578]/*
677
678 #%files -n nss_dns
679 %defattr(644,root,root,755)
680 %attr(755,root,root) /lib/libnss_dns*.so*
681
682 #%files -n nss_files
683 %defattr(644,root,root,755)
684 %attr(755,root,root) /lib/libnss_files*.so*
685
686 %files -n nss_compat
687 %defattr(644,root,root,755)
688 %attr(755,root,root) /lib/libnss_compat*.so*
689
690 %files -n nss_hesiod
691 %defattr(644,root,root,755)
692 %attr(755,root,root) /lib/libnss_hesiod*.so*
693
694 %files -n nss_nis
695 %defattr(644,root,root,755)
696 %attr(755,root,root) /lib/libnss_nis.so.*
697 %attr(755,root,root) /lib/libnss_nis-*.so
698
699 %files -n nss_nisplus
700 %defattr(644,root,root,755)
701 %attr(755,root,root) /lib/libnss_nisplus*.so*
702
703 %files memusage
704 %defattr(644,root,root,755)
705 %attr(755,root,root) %{_bindir}/memusage*
706 %attr(755,root,root) %{_libdir}/libmemusage*
707
708 %files devel
709 %defattr(644,root,root,755)
710 %doc documentation/* NOTES PROJECTS
711 %attr(755,root,root) %{_bindir}/gencat
712 %attr(755,root,root) %{_bindir}/getconf
713 %attr(755,root,root) %{_bindir}/*prof*
714 %attr(755,root,root) %{_bindir}/*trace
715
716 %{_includedir}/*
717
718 %{_infodir}/libc.info*
719
720 %attr(755,root,root) %{_libdir}/lib[^m]*.so
721 %attr(755,root,root) %{_libdir}/libm.so
722 %attr(755,root,root) %{_libdir}/*crt*.o
723 %{_libdir}/libbsd-compat.a
724 %{_libdir}/libbsd.a
725 %{_libdir}/libc_nonshared.a
726 %{_libdir}/libg.a
727 %{_libdir}/libieee.a
728 %{_libdir}/librpcsvc.a
729
730 %{_mandir}/man1/getconf*
731 %{_mandir}/man1/sprof*
732 %{_mandir}/man3/*
733 %lang(cs) %{_mandir}/cs/man3/*
734 %lang(de) %{_mandir}/de/man3/*
735 %lang(es) %{_mandir}/es/man3/*
736 %lang(fr) %{_mandir}/fr/man3/*
737 %lang(hu) %{_mandir}/hu/man3/*
738 # %lang(it) %{_mandir}/it/man3/*
739 %lang(ja) %{_mandir}/ja/man3/*
740 %lang(ko) %{_mandir}/ko/man3/*
741 %lang(nl) %{_mandir}/nl/man3/*
742 %lang(pl) %{_mandir}/pl/man3/*
743 %lang(pt) %{_mandir}/pt/man3/*
744 %lang(pt_BR) %{_mandir}/pt_BR/man3/*
745 %lang(ru) %{_mandir}/ru/man3/*
746
747 %files -n nscd
748 %defattr(644,root,root,755)
749 %attr(640,root,root) %config %verify(not md5 size mtime) /etc/sysconfig/nscd
750 %attr(640,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/nscd.*
751 %attr(754,root,root) /etc/rc.d/init.d/nscd
752 %attr(755,root,root) %{_sbindir}/nscd*
753 %attr(640,root,root) /etc/logrotate.d/nscd
754 %attr(640,root,root) %ghost /var/log/nscd
755 %{_mandir}/man5/nscd.conf*
756 %{_mandir}/man8/nscd*
757 %lang(ja) %{_mandir}/ja/man5/nscd.conf*
758 %lang(ja) %{_mandir}/ja/man8/nscd*
759 %lang(pt) %{_mandir}/pt/man5/nscd.conf*
760 %lang(pt) %{_mandir}/pt/man8/nscd*
761 %lang(pt_BR) %{_mandir}/pt_BR/man5/nscd.conf*
762 %lang(pt_BR) %{_mandir}/pt_BR/man8/nscd*
763
764 %files -n localedb-src
765 %defattr(644,root,root,755)
766 %attr(755,root,root) %{_bindir}/localedef
767 %{_datadir}/i18n
768 %{_mandir}/man1/localedef*
769
770 %files -n iconv
771 %defattr(644,root,root,755)
772 %attr(755,root,root) %{_sbindir}/iconvconfig
773 %dir %{_libdir}/gconv
774 %{_libdir}/gconv/gconv-modules
775 %attr(755,root,root) %{_libdir}/gconv/*.so
776
777 %files static
778 %defattr(644,root,root,755)
779 %{_libdir}/libanl.a
780 %{_libdir}/libBrokenLocale.a
781 %{_libdir}/libc.a
782 %{_libdir}/libcrypt.a
783 %{_libdir}/libdl.a
784 %{_libdir}/libm.a
785 %{_libdir}/libmcheck.a
786 %{_libdir}/libnsl.a
787 %{_libdir}/libpthread.a
788 %{_libdir}/libresolv.a
789 %{_libdir}/librt.a
790 %{_libdir}/libutil.a
791
792 %files profile
793 %defattr(644,root,root,755)
794 %{_libdir}/lib*_p.a
795
796 %files pic
797 %defattr(644,root,root,755)
798 %{_libdir}/lib*_pic.a
799 %{_libdir}/lib*.map
800 %{_libdir}/soinit.o
801 %{_libdir}/sofini.o
This page took 0.082169 seconds and 4 git commands to generate.