]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- typo.
[packages/glibc.git] / glibc.spec
1 Summary:        GNU libc
2 Summary(de):    GNU libc
3 Summary(fr):    GNU libc
4 Summary(pl):    GNU libc
5 Summary(tr):    GNU libc
6 name:           glibc
7 Version:        2.1.1
8 Release:        4
9 Copyright:      LGPL
10 Group:          Libraries
11 Group(pl):      Biblioteki
12 Source0:        ftp://sourceware.cygnus.com/pub/glibc/%{name}-%{version}.tar.gz
13 Source1:        ftp://sourceware.cygnus.com/pub/glibc/%{name}-linuxthreads-%{version}.tar.gz
14 Source2:        http://www.ozemail.com.au/~geoffk/glibc-crypt/%{name}-crypt-%{version}.tar.gz
15 Source3:        utmpd.init
16 Source4:        nscd.init
17 Source5:        utmpd.sysconfig
18 Source6:        nscd.sysconfig
19 Patch0:         glibc-info.patch
20 Patch1:         glibc-paths.patch
21 Patch2:         glibc-versions.awk_fix.patch
22 URL:            http://www.gnu.org/software/libc/
23 Provides:       ld.so.2
24 Obsoletes:      %{name}-profile
25 Obsoletes:      %{name}-debug
26 Autoreq:        false
27 BuildRoot:      /tmp/%{name}-%{version}-root
28
29 %description
30 Contains the standard libraries that are used by multiple programs on the
31 system. In order to save disk space and memory, as well as to ease upgrades,
32 common system code is kept in one place and shared between programs. This
33 package contains the most important sets of shared libraries, the standard C
34 library and the standard math library. Without these, a Linux system will
35 not function. It also contains national language (locale) support and
36 timezone databases.
37
38 %description -l de
39 Enthält die Standard-Libraries, die von verschiedenen Programmen im System
40 benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen und zur
41 Vereinfachung von Upgrades ist der gemeinsame Systemcode an einer einzigen
42 Stelle gespeichert und wird von den Programmen gemeinsam genutzt. Dieses
43 Paket enthält die wichtigsten Sets der shared Libraries, die
44 Standard-C-Library und die Standard-Math-Library, ohne die das Linux-System
45 nicht funktioniert. Ferner enthält es den Support für die verschiedenen
46 Sprachgregionen (locale) und die Zeitzonen-Datenbank.
47
48 %description -l fr
49 Contient les bibliothèques standards utilisées par de nombreux programmes
50 du système. Afin d'économiser l'espace disque et mémoire, et de faciliter
51 les mises à jour, le code commun au système est mis à un endroit et partagé
52 entre les programmes. Ce paquetage contient les bibliothèques partagées les
53 plus importantes, la bibliothèque standard du C et la bibliothèque
54 mathématique standard. Sans celles-ci, un système Linux ne peut fonctionner.
55 Il contient aussi la gestion des langues nationales (locales) et les bases
56 de données des zones horaires.
57
58 %description -l pl
59 W pakiecie znajduj± siê podstawowe biblioteki, u¿ywane przez ró¿ne programy
60 w Twoim systemie. U¿ywanie przez programy bibliotek z tego pakietu oszczêdza
61 miejsce na dysku i pamiêæ. Wiekszo¶æ kodu systemowego jest usytuowane w
62 jednym miejscu i dzielone miêdzy wieloma programami. Pakiet ten zawiera
63 bardzo wa¿ny zbiór bibliotek standardowych wspó³dzielonych (dynamicznych)
64 bibliotek C i matematycznych. Bez glibc system Linux nie jest w stanie
65 funkcjonowaæ. Znajduj± siê tutaj równie¿ definicje ró¿nych informacji dla
66 wielu jêzyków (locale) oraz definicje stref czasowych.
67
68 %description -l tr
69 Bu paket, birçok programýn kullandýðý standart kitaplýklarý içerir. Disk
70 alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme iþlemlerini
71 kolaylaþtýrmak için ortak sistem kodlarý tek bir yerde tutulup programlar
72 arasýnda paylaþtýrýlýr. Bu paket en önemli ortak kitaplýklarý, standart
73 C kitaplýðýný ve standart matematik kitaplýðýný içerir. Bu kitaplýklar olmadan
74 Linux sistemi çalýþmayacaktýr. Yerel dil desteði ve zaman dilimi veri tabaný
75 da bu pakette yer alýr.
76
77 %package devel
78 Summary:        Additional libraries required to compile
79 Summary(de):    Weitere Libraries zum Kompilieren
80 Summary(fr):    Librairies supplémentaires nécessaires à la compilation.
81 Summary(pl):    Dodatkowe biblioteki wymagane podczas kompilacji
82 Summary(tr):    Geliþtirme için gerekli diðer kitaplýklar
83 Group:          Development/Libraries
84 Group(pl):      Programowanie/Biblioteki
85 Prereq:         /sbin/install-info
86 Requires:       %{name} = %{version}
87
88 %description devel
89 To develop programs which use the standard C libraries (which nearly all
90 programs do), the system needs to have these standard header files and object
91 files available for creating the executables.
92
93 %description -l de devel
94 Bei der Entwicklung von Programmen, die die Standard-C-Libraries verwenden
95 (also fast alle), benötigt das System diese Standard-Header- und Objektdateien
96 zum Erstellen der ausführbaren Programme.
97
98 %description -l fr devel
99 Pour développer des programmes utilisant les bibliothèques standard du C
100 (ce que presque tous les programmes font), le système doit posséder ces
101 fichiers en-têtes et objets standards pour créer les exécutables.
102
103 %description -l pl devel
104 Pakiet ten jest niezbêdny przy tworzeniu w³asnych programów korzystaj±cych
105 ze standardowej biblioteki C. Znajduj± siê tutaj pliki nag³ówkowe oraz pliki 
106 objektowe, niezbêdne do kompilacji programów wykonywalnych i innych bibliotek.
107
108 %description -l tr devel
109 C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
110 geliþtirmek için gereken standart baþlýk dosyalarý ve statik kitaplýklar.
111
112 %package -n nscd
113 Summary:        Name Service Caching Daemon
114 Summary(pl):    Name Service Caching Daemon
115 Group:          Networnikng/Daemons
116 Group:          Sieciowe/Serwery
117 Prereq:         /sbin/chkconfig
118
119 %description -n nscd
120 nscd caches name service lookups; it can dramatically improve performance
121 with NIS+, and may help with DNS as well.
122
123 You cannot use nscd with 2.0 kernels, due to bugs in the kernel-side thread
124 support. nscd happens to hit these bugs particularly hard.
125
126 %description -n nscd -l pl
127 nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala drastycznie 
128 poprawiæ szybko¶æ dzia³ania NIS+.
129
130 Nie jest mo¿liwe u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów
131 po stronie j±dra w ods³udze w±tków.
132
133 %package -n utmpd
134 Summary:        utmp and utmpx synchronizer for libc5 applications.
135 Summary(pl):    Synchrnnizuje zapis do plików utmp i utmpx.
136 Group:          Daemons
137 Group(pl):      Serwery
138 Prereq:         /sbin/chkconfig
139
140 %description -n utmpd
141 utmpd is a utmp and utmpx synchronizer. Is only needed for libc5 based 
142 program with utmp access.
143
144 %description -n utmpd -l pl
145 utmpd stara siê utrzymaæ tak± sam± zawarto¶æ plików 
146 /var/run/utmp i /var/run/utmpx. Potrzebny jest tylko w przypadku korzystania
147 ze starszych programów (bazuj±cych na libc5).
148
149 %package static
150 Summary:        Static libraries
151 Summary(pl):    Biblioteki statyczne 
152 Group:          Development/Libraries
153 Group(pl):      Programowanie/Biblioteki
154 Requires:       %{name}-devel = %{version}
155
156 %description static
157 GNU libc-2.1 Static libraries
158
159 %description -l pl static
160 GNU libc-2.1 Static libraries
161
162 %prep 
163 %setup  -q -a 1 -a 2
164 %patch0 -p1
165 %patch1 -p1
166 %patch2 -p1
167
168 %build
169 %configure \
170         --enable-add-ons=crypt,linuxthreads \
171         --disable-profile \
172         --disable-omitfp \
173         --infodir=%{_infodir} \
174         --mandir=%{_mandir}
175 make   
176
177 %install
178 rm -rf $RPM_BUILD_ROOT
179 install -d $RPM_BUILD_ROOT/{etc/{rc.d/init.d,sysconfig},%{_mandir}/man3,var/db}
180
181 make install \
182         install_root=$RPM_BUILD_ROOT \
183         infodir=%{_infodir} \
184         mandir=%{_mandir}
185
186 make install-locales -C localedata \
187         install_root=$RPM_BUILD_ROOT
188
189 make -C linuxthreads/man
190 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
191
192 rm -rf $RPM_BUILD_ROOT%{_datadir}/zoneinfo/{localtime,posixtime,posixrules}
193
194 ln -sf ../../../etc/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
195 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
196 ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
197 ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
198
199 rm -f $RPM_BUILD_ROOT/etc/localtime
200
201 install %{SOURCE4}              $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
202 install %{SOURCE3}              $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
203 install %{SOURCE6}              $RPM_BUILD_ROOT/etc/sysconfig/nscd
204 install %{SOURCE5}              $RPM_BUILD_ROOT/etc/sysconfig/utmpd
205 install nscd/nscd.conf          $RPM_BUILD_ROOT/etc
206 install nss/nsswitch.conf       $RPM_BUILD_ROOT/etc
207
208 install nss/db-Makefile $RPM_BUILD_ROOT/var/db
209
210 cat << EOF > $RPM_BUILD_ROOT/usr/bin/create-db
211 #!/bin/sh
212 /usr/bin/make -f /var/db/db-Makefile
213 EOF
214
215 ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db 
216
217 rm -rf documentation
218 install -d documentation
219
220 cp linuxthreads/ChangeLog  documentation/ChangeLog.threads
221 cp linuxthreads/Changes documentation/Changes.threads
222 cp linuxthreads/README documentation/README.threads
223 cp crypt/README documentation/README.crypt
224
225 cp ChangeLog ChangeLog.8 documentation
226
227 gzip -9fn README NEWS FAQ BUGS NOTES PROJECTS \
228         $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
229         documentation/* login/README.utmpd
230
231 strip $RPM_BUILD_ROOT/{sbin/*,usr/{sbin/*,bin/*}} ||:
232 strip --strip-unneeded $RPM_BUILD_ROOT/lib/lib*.so.* \
233         $RPM_BUILD_ROOT/usr/lib/gconv/*.so
234
235 %post   -p /sbin/ldconfig
236 %postun -p /sbin/ldconfig
237
238 %post devel
239 /sbin/install-info %{_infodir}/libc.info.gz /etc/info-dir
240
241 %preun devel
242 if [ "$1" = 0 ]; then
243         /sbin/install-info --delete %{_infodir}/libc.info.gz /etc/info-dir
244 fi
245
246 %post -n nscd
247 /sbin/chkconfig --add nscd
248 if [ -f /var/lock/subsys/nscd ]; then
249         /etc/rc.d/init.d/nscd restart &>/dev/null
250 else
251         echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon."
252 fi
253
254 %preun -n nscd
255 if [ "$1" = "0" ]; then
256         /sbin/chkconfig --del nscd
257         /etc/rc.d/init.d/nscd stop
258 fi
259
260 %post -n utmpd
261 /sbin/chkconfig --add utmpd
262 if [ -f /var/lock/subsys/utmpd ]; then
263         /etc/rc.d/init.d/utmpd restart
264 else
265         echo "Run \"/etc/rc.d/init.d/utmpd start\" to start utmpd daemon."
266 fi
267
268 %preun -n utmpd
269 if [ "$1" = "0" ]; then
270         /sbin/chkconfig --del utmpd
271         /etc/rc.d/init.d/utmpd stop
272 fi
273
274 %clean
275 rm -rf $RPM_BUILD_ROOT
276
277 %files
278 %defattr(644,root,root,755)
279 %doc {README,NEWS,FAQ,BUGS}.gz
280
281 %config(noreplace) %verify(not mtime md5 size) /etc/nsswitch.conf
282 %config /etc/rpc
283
284 %attr(755,root,root) /sbin/*
285 %attr(755,root,root) %{_bindir}/*
286 %attr(755,root,root) %{_sbindir}/rpcinfo
287 %attr(755,root,root) %{_sbindir}/zdump
288 %attr(755,root,root) %{_sbindir}/zic
289
290 %attr(755,root,root) /lib/ld-*
291 %attr(755,root,root) /lib/lib*
292
293 %dir %{_libdir}/gconv
294 %{_libdir}/gconv/gconv-modules
295
296 %{_datadir}/i18n
297 %{_datadir}/locale
298 %{_datadir}/zoneinfo
299
300 %config /var/db/db-*
301
302 %files devel
303 %defattr(644,root,root,755)
304 %doc documentation/* {NOTES,PROJECTS}.gz
305
306 %{_includedir}/*.h
307 %{_includedir}/arpa
308 %{_includedir}/bits
309 %{_includedir}/db1
310 %{_includedir}/gnu
311 %{_includedir}/net
312 %{_includedir}/netash
313 %{_includedir}/netatalk
314 %{_includedir}/netax25
315 %{_includedir}/neteconet
316 %{_includedir}/netinet
317 %{_includedir}/netipx
318 %{_includedir}/netpacket
319 %{_includedir}/netrom
320 %{_includedir}/netrose
321 %{_includedir}/nfs
322 %{_includedir}/protocols
323 %{_includedir}/rpc
324 %{_includedir}/rpcsvc
325 %{_includedir}/scsi
326 %{_includedir}/sys
327
328 %{_infodir}/libc.inf*.gz
329
330 %attr(755,root,root) %{_libdir}/lib*.so
331 %attr(755,root,root) %{_libdir}/*.o
332 %attr(755,root,root) %{_libdir}/gconv/*.so
333
334 %{_mandir}/man3/*
335
336 %files -n nscd
337 %defattr(644,root,root,755)
338 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/nscd
339 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
340 %attr(755,root,root) /etc/rc.d/init.d/nscd
341 %attr(755,root,root) %{_sbindir}/nscd
342
343 %files -n utmpd
344 %defattr(644,root,root,755)
345 %doc login/README.utmpd.gz
346 %attr(640,root,root) %config %verify(not size mtime md5) /etc/sysconfig/utmpd
347 %attr(755,root,root) /etc/rc.d/init.d/utmpd
348 %attr(755,root,root) %{_sbindir}/utmpd
349
350 %files static
351 %defattr(644,root,root,755)
352 %{_libdir}/lib*.a
353
354 %changelog
355 changes from devel and getaddrinfo.patch
356
357 Revision 1.54  1999/07/12 23:05:57  kloczek
358 - added using CVS keywords in %changelog (for automating them).
359
360 - added stripping 
361   [2.1.1-3]
362 - added stripping /usr/lib/gconv/*.so modules (it saves next ~300KB),
363 - added glibc-versions.awk_fix.patch (fix using sort in
364   scripts/versions.awk),
365 - added stripping
366 - permission on rc scripts changed to 754,
367 - removed /var/db (it is in filesystem).
368
369 * Wed Jun 02 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
370 - added static subpackage,
371 - added {utmpd,nscd}.sysconfig,
372 - fixed %doc && {utmpd,nscd}.init,
373 - macro %configure in use ...
374
375 * Wed May 26 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
376   [2.1.1-2]
377 - fixed utpmd.init,
378 - added %post & %pre for utmpd subpackage.
379 - macro %{_target_platform},
380 - fixed %build,
381 - minor changes.
382
383 - pl translation by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>.
384   [2.1.1-1]
385 - based on RH spec,
386 - spec rewrited by PLD team,
387   we start at GNU libc 2.0.92 one year ago ...
388 - pl translation by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>.
This page took 0.050919 seconds and 4 git commands to generate.