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