]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
- revision up to 4,
[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
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:        ftp://sourceware.cygnus.com/pub/glibc/%{name}-crypt-2.0.111.tar.gz
15 Source3:        utmpd.init
16 Source4:        nscd.init
17 Patch0:         glibc-info.patch
18 URL:            http://www.gnu.org/software/libc/
19 BuildRoot:      /tmp/%{name}-%{version}-root
20 Provides:       ld.so.2
21 Obsoletes:      %{name}-profile
22 Obsoletes:      %{name}-debug
23 Autoreq:        false
24
25 %description
26 Contains the standard libraries that are used by multiple programs on
27 the system. In order to save disk space and memory, as well as to
28 ease upgrades, common system code is kept in one place and shared between
29 programs. This package contains the most important sets of shared libraries,
30 the standard C library and the standard math library. Without these, a
31 Linux system will not function. It also contains national language (locale)
32 support and 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 %prep 
109 %setup -q -a 1 -a 2
110
111 %build
112 install -d sunrpc/cpp; ln -s /lib/cpp sunrpc/cpp/cpp 
113 CFLAGS="$RPM_OPT_FLAGS -pipe" \
114 ./configure \
115         --enable-add-ons=crypt,linuxthreads \
116         --disable-profile \
117         --prefix=/usr \
118         --disable-omitfp
119 make  
120
121 %install
122 rm -rf $RPM_BUILD_ROOT
123 install -d $RPM_BUILD_ROOT/{etc/rc.d/init.d,usr/man/man3,var/db}
124
125 make install_root=$RPM_BUILD_ROOT install
126 make install_root=$RPM_BUILD_ROOT install-locales -C localedata
127
128 make -C linuxthreads/man
129 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT/usr/man/man3
130
131 rm -rf $RPM_BUILD_ROOT/usr/share/zoneinfo/{localtime,posixtime,posixrules}
132
133 ln -sf ../src/linux/include/linux $RPM_BUILD_ROOT/usr/include/linux
134 ln -sf ../src/linux/include/asm $RPM_BUILD_ROOT/usr/include/asm
135
136 ln -sf ../../../etc/localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/localtime
137 ln -sf localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/posixtime
138 ln -sf localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/posixrules
139 ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT/usr/lib/libbsd.a
140
141 rm -f $RPM_BUILD_ROOT/etc/localtime
142
143 install %{SOURCE3} $RPM_BUILD_ROOT/etc/nsswitch.conf
144
145 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
146 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
147
148 install nscd/nscd.conf          $RPM_BUILD_ROOT/etc
149 install nss/nsswitch.conf       $RPM_BUILD_ROOT/etc
150
151 install nss/db-Makefile $RPM_BUILD_ROOT/var/db
152
153 cat << EOF > $RPM_BUILD_ROOT/usr/bin/create-db
154 #!/bin/bash
155 /usr/bin/make -f /var/db/db-Makefile
156 EOF
157
158 ln -sf create-db $RPM_BUILD_ROOT/usr/bin/update-db 
159
160 rm -rf documentation
161 install -d documentation
162
163 cp linuxthreads/ChangeLog  documentation/ChangeLog.threads
164 cp linuxthreads/Changes documentation/Changes.threads
165 cp linuxthreads/README documentation/README.threads
166 cp login/README.utmpd documentation/
167 cp crypt/README documentation/README.crypt
168
169 cp ChangeLog ChangeLog.8 documentation
170
171 bzip2 -9 documentation/*
172
173 strip $RPM_BUILD_ROOT/{sbin/*,usr/{bin/*,sbin/*}} || :
174 strip --strip-debug $RPM_BUILD_ROOT/lib/lib*so
175
176 bzip2 -9 README NEWS FAQ BUGS NOTES PROJECTS
177 gzip -9fn $RPM_BUILD_ROOT/usr/{man/man*/*,info/libc*}
178
179 %post   -p /sbin/ldconfig
180 %postun -p /sbin/ldconfig
181
182 %post devel
183 /sbin/install-info /usr/info/libc.info.gz /etc/info-dir
184
185 %preun devel
186 if [ "$1" = 0 ]; then
187         /sbin/install-info --delete /usr/info/libc.info.gz /etc/info-dir
188 fi
189
190 %clean
191 rm -rf $RPM_BUILD_ROOT
192
193 %files
194 %defattr(644,root,root,755)
195 %doc README.bz2 NEWS.bz2 FAQ.bz2 BUGS.bz2
196
197 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
198 %config(noreplace) %verify(not mtime md5 size) /etc/nsswitch.conf
199 %config /etc/rpc
200 %attr(754,root,root) /etc/rc.d/init.d/*
201
202 %attr(755,root,root) /sbin/*
203 %attr(755,root,root) /usr/bin/*
204 %attr(755,root,root) /usr/sbin/*
205
206 %attr(755,root,root) /lib/ld-*
207 %attr(755,root,root) /lib/lib*
208
209 %dir /usr/lib/gconv
210 /usr/lib/gconv/gconv-modules
211
212 /usr/share/i18n
213 /usr/share/locale
214 /usr/share/zoneinfo
215
216 %attr(750,root,root) %dir /var/db
217 %config /var/db/db-*
218
219 %files devel
220 %defattr(644,root,root,755)
221 %doc documentation/* NOTES.bz2 PROJECTS.bz2
222
223 /usr/include/*.h
224 /usr/include/arpa
225 /usr/include/bits
226 /usr/include/db1
227 /usr/include/gnu
228 /usr/include/net
229 /usr/include/netash
230 /usr/include/netatalk
231 /usr/include/netax25
232 /usr/include/neteconet
233 /usr/include/netinet
234 /usr/include/netipx
235 /usr/include/netpacket
236 /usr/include/netrom
237 /usr/include/netrose
238 /usr/include/nfs
239 /usr/include/protocols
240 /usr/include/rpc
241 /usr/include/rpcsvc
242 /usr/include/scsi
243 /usr/include/sys
244
245 /usr/info/libc.inf*.gz
246
247 %attr(755,root,root) /usr/lib/lib*.so
248 /usr/lib/*.o
249 /usr/lib/lib*.a
250
251 %attr(755,root,root) /usr/lib/gconv/*.so
252 /usr/man/man3/*
253
254 %changelog
255 * Mon Feb 22 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
256   [2.1-4]
257 - removed man group from man pages,
258 - standarized {un}registering info pages (added libc-info.patch),
259 - changed base source url to ftp://sourceware.cygnus.com/pub/glibc/,
260 - changed URL,
261 - siplifications in %files devel,
262 - Group in devel changed to Development/Libraries,
263 - removed some %doc (INSTALL and outdated ChangeLog),
264 - removed %config and %verify rules fromn /etc/rc.d/init.d/* files,
265 - changed permission to 754 on /etc/rc.d/init.d/*,
266 - added striping shared libraries.
267
268 * Sun Feb 14 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
269   [2.1-3d]
270 - updated to stable version,
271 - fixed stripping ELF binaries,
272 - removed obsoletes /usr/include/{asm,linux}
273
274 * Fri Jan 29 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
275   [2.0.111-1d]
276 - updated to latest snapshoot,
277 - added utmpd.init, (don't run this piece of ... by default)
278 - added /var/db, (don't generate a data base by default)
279 - removed unused /usr/libexec/pt_ch*
280 - other changes.
281
282 * Sat Nov 07 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
283   [2.0.100-1d]
284 - updated to latest snapshoot,
285 - added install-locales,
286 - minor changes.
287
288 * Tue Oct 13 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
289   [2.0.99-1d]
290 - updated to 2.0.99,
291 - added Obsoletes: glibc-debug, glibc-profile
292
293 * Thu Aug 06 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
294   [2.0.96-1d]
295 - updated to 2.0.96,
296 - translation modified for pl, 
297   (follow the suggestions Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>)
298 - major changes.
299       (rewrote invalid spec file -- follow the PLD policy)
300
301 * Wed Jul 16 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
302   [2.0.94-2d]
303 - added nscd.init and config
304 - fixed permision of pt_chown to 4711 
305 - added %defattr
306 - moved linux include links from kernel-headers to glibc-devel
307
308 * Tue Jun 2 1998 Wojtek Slusarczyk <wojtek@SHADOW.EU.ORG>
309   [2.0.94-1d]
310 - updated to glibc 2.0.94
311
312 * Sun May 24 1998 Marcin Korzonek <mkorz@euler.mat.univ.szczecin.pl>
313   [2.0.93-1d]
314 - updated for glibc 2.0.93
315 - build prepare for PLD-1.1 Tornado
316 - removed glibc-debug and glibc-profile packages generation (it took too
317   long to compile the full featured version on my home linux box ;)
318 - compilation is now performed in compile directory as advised 
319   in Glibc HOWTO
320
321 * Tue Mar 31 1998 Cristian Gafton <gafton@redhat.com>
322 - more patches to fix dlopen()/dlclose problems
323
324 * Tue Mar 24 1998 Cristian Gafton <gafton@redhat.com>
325 - fixed a dlclose() problem.
326 - updated the cvs snapshot
327
328 * Fri Mar 20 1998 Cristian Gafton <gafton@redhat.com>
329 - need a fairly recent version of texinfo (3.11 or later). Handle this
330   through a Conflicts: header for the glibc-devel package
331
332 * Sat Mar 14 1998 Cristian Gafton <gafton@redhat.com>
333 - new package versioning for snapshots
334
335 * Sat Mar 14 1998 Cristian Gafton <gafton@redhat.com>
336 - new snapshot
337 - fixed a localedef bug
338 - reverted some changes in the new localedata ru_RU that caused locale files
339   to be built incorrectly.
340
341 * Wed Mar 04 1998 Cristian Gafton <gafton@redhat.com>
342 - downgraded kernel headers to 2.1.76. tty changes in more recent kernels
343   require too many programs to be recompiled against the new glibc.
344 - upgraded the dlfix patch for dlopen() to handle large shared objects
345 - updated the fix patch to make the source compile on alpha
346 - the new sources require binutils 2.8.1.0.21 or later to compile on alpha
347 - updated snapshot; lots of patches obsoleted
348 - added a patch to buold & install the localedata files correctly
349 - added yet another patch from H.J.Lu
350
351 * Sat Feb 28 1998 Cristian Gafton <gafton@redhat.com>
352 - updated the snapshot
353 - upgraded the kernel headers to 2.1.88
354 - replaced the full kernel source with a homebrew
355   linux-include-2.1.88.tar.gz (it was way too hard to maintain glibc from
356   home over my modem...)
357
358 * Wed Feb 18 1998 Cristian Gafton <gafton@redhat.com>
359 - added a dl-open fix for the RTLD_GLOBAL flag
360
361 * Sat Feb 07 1998 Cristian Gafton <gafton@redhat.com>
362 - upgraded to 2.0.7pre1
363 - modified spec file to include linuxthreads man pages and documentation
364
365 * Wed Jan 28 1998 Erik Troan <ewt@redhat.com>
366 - don't believe LD_PRELOAD if the app is setuid root
367
368 * Tue Jan 27 1998 Cristian Gafton <gafton@redhat.com>
369 - added (what else ?) more patches from Andreas Jaeger, Andreas Schwab,
370   Ulrich Drepper and H J Lu
371
372 * Fri Jan 16 1998 Cristian Gafton <gafton@redhat.com>
373 - added nss patch to fix a problem of ignoring the NSS_STATUS_TRYAGAIN
374   return value from the modules by getXXbyYY_r and getXXent_r functions
375 - added another patch for the nss_db from Andreas Schwab
376
377 * Wed Jan 14 1998 Cristian Gafton <gafton@redhat.com>
378 - added a patch to fix the problems with the nss_db lookups from Andreas
379   Schwab
380 - added a patch to fix lookup problems with large entries (errno not being
381   reset from ERANGE)
382 - added another two tiny patches from Andreas Jaeger
383 - added a header patch for the net/if.h file which failed to #define
384   #IFF_* symbols
385 - fixed obsoletes header for linuxthreads
386 - added a patch for locale on big endian machines from Andreas Schwab
387 - added a config patch from Andreas Jaeger
388
389 * Wed Jan  7 1998 Cristian Gafton <gafton@redhat.com>
390 - figured out how to handle newer kernels on alpha - back to 2.1.76
391 - added a patch to address case-sensitve hosts and aliases lookup brokeness
392 - re-added the patch for alpha/net/route.h, which somehow escaped the
393   official release
394 - added the threads and thread-signal patches from Andreas Jaeger
395
396 * Mon Dec 29 1997 Cristian Gafton <gafton@redhat.com>
397 - finally 2.0.6 final release is here...
398 - reverted to kernel headers 2.1.60. Although the latest one available
399   should be used (2.1.76 at the moment), the new kernel headers break
400   compilation on alpha (due to the rename of the __NR_sigaction to
401   __NR_old_osf_sigaction). In two days I haven't figured out the correct
402   place to modify this on glibc sources, so...
403
404 * Thu Dec 25 1997 Cristian Gafton <gafton@redhat.com>
405 - upgraded to pre6
406
407 * Tue Dec 23 1997 Cristian Gafton <gafton@redhat.com>
408 - upgraded to pre5
409 - added NIS patch fix
410
411 * Mon Dec 15 1997 Cristian Gafton <gafton@redhat.com>
412 - added security patch
413
414 * Fri Dec 12 1997 Cristian Gafton <gafton@redhat.com>
415 - updated to 2.0.6pre4
416 - cleaned up the spec file
417
418 * Sun Nov 09 1997 Erik Troan <ewt@redhat.com>
419 - added setlocale patch from Ulrich
420
421 * Wed Nov 05 1997 Erik Troan <ewt@redhat.com>
422 - added new glob.c from Ulrich
423
424 * Wed Oct 29 1997 Erik Troan <ewt@redhat.com>
425 - fixed timezone patch
426
427 * Tue Oct 28 1997 Erik Troan <ewt@redhat.com>
428 - added patch to fix sense on timezone global
429
430 * Sat Oct 25 1997 Erik Troan <ewt@redhat.com>
431 - build against included kernel headers
432 - added ld.so patch from ulrich
433
434 * Fri Oct 24 1997 Erik Troan <ewt@redhat.com>
435 - added documentation files as %doc
436 - improved obsoletes list
437
438 * Thu Oct 16 1997 Erik Troan <ewt@redhat.com>
439 - added patch to fix nfs inet_ntoa() memory leak
440 - create proper sysdeps/alpha/Implies
441 - create configparms w/ a here doc, not a separate patch file
442
443 * Thu Oct 09 1997 Erik Troan <ewt@redhat.com>
444 - added patch from Ulrich for rcmd() w/ IP number
445
446 * Tue Sep 16 1997 Erik Troan <ewt@redhat.com>
447 - added obsolete entries 
448
449 * Mon Sep 15 1997 Erik Troan <ewt@redhat.com>
450 - removed /usr/info/dir
451 - added support for install-info for devel package
452
453 * Wed Sep 10 1997 Erik Troan <ewt@redhat.com>
454 - updated to 2.0.5c
455
456 * Wed Sep 10 1997 Erik Troan <ewt@redhat.com>
457 - added getcwd() fix from Ulrich
458 - changed datadir to default /usr/share instead of /usr/lib
459
460 * Mon Sep 01 1997 Erik Troan <ewt@redhat.com>
461 - fixed some symlinks (which broke due to the buildroot)
462
463 * Thu Aug 28 1997 Erik Troan <ewt@redhat.com>
464 - removed extrneous symlinks invocation
465 - removed /etc/localtime from filelist
466
467 * Wed Aug 27 1997 Erik Troan <ewt@redhat.com>
468 - added patch to tcp.h from Ulrich
469
470 * Wed Aug 27 1997 Erik Troan <ewt@redhat.com>
471 - updated to 2.0.5
472 - removed zic symlink hack
473
474 * Sat Aug 23 1997 Erik Troan <ewt@redhat.com>
475 - minor hack for alpha (won't be necessary in next release)
476 - switched to use a build root
477 - dynamically builds file lists
478
479 * Tue Aug 19 1997 Erik Troan <ewt@redhat.com>
480 - 1) Updated to glibc 2.0.5pre5 (version of package is 2.0.4.9)
481
482 * Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
483 - 1) Updated to glibc 2.0.4
484
485 * Thu May 15 1997 Erik Troan <ewt@redhat.com>
486 - 1) Updated to glibc 2.0.3, builds glibc on Intel as well.
487
488 * Tue Feb 18 1997 Erik Troan <ewt@redhat.com>
489 - 1) added patch for shadow to work w/ :: rather then :-1: entries
490 - 2) incorporated Richard Henderson's string operation fix
491 - 3) added default /etc/nsswitch.conf  [2.1.1-1]
492 - based on RH spec,
493 - spec rewrited by PLD team,
494   we start at GNU libc 2.0.92 one year ago ...
495 - pl translation by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>.
This page took 0.108717 seconds and 4 git commands to generate.