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