]> git.pld-linux.org Git - packages/glibc.git/blob - glibc.spec
8ec57f44765bd35fa7e7ad20cf34e6ed193e6045
[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:        8
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 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
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 %patch -p1
111
112 %build
113 install -d sunrpc/cpp; ln -s /lib/cpp sunrpc/cpp/cpp 
114 CFLAGS="$RPM_OPT_FLAGS -pipe" \
115 %ifarch sparc sparc64
116 sparc32 \
117 %endif
118 ./configure \
119         --enable-add-ons=crypt,linuxthreads \
120         --disable-profile \
121         --prefix=/usr \
122         --disable-omitfp \
123         --enable-add-ons=yes \
124         $RPM_ARCH-linux
125 make
126
127 %install
128 rm -rf $RPM_BUILD_ROOT
129 install -d $RPM_BUILD_ROOT/{etc/rc.d/init.d,usr/man/man3,var/db}
130
131 make install_root=$RPM_BUILD_ROOT install
132 make install_root=$RPM_BUILD_ROOT install-locales -C localedata
133
134 make -C linuxthreads/man
135 install linuxthreads/man/*.3thr $RPM_BUILD_ROOT/usr/man/man3
136
137 rm -rf $RPM_BUILD_ROOT/usr/share/zoneinfo/{localtime,posixtime,posixrules}
138
139 ln -sf ../../../etc/localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/localtime
140 ln -sf localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/posixtime
141 ln -sf localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/posixrules
142 ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT/usr/lib/libbsd.a
143
144 rm -f $RPM_BUILD_ROOT/etc/localtime
145
146 install %{SOURCE3} $RPM_BUILD_ROOT/etc/nsswitch.conf
147
148 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/nscd
149 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/utmpd
150
151 install nscd/nscd.conf          $RPM_BUILD_ROOT/etc
152 install nss/nsswitch.conf       $RPM_BUILD_ROOT/etc
153
154 install nss/db-Makefile $RPM_BUILD_ROOT/var/db
155
156 cat << EOF > $RPM_BUILD_ROOT/usr/bin/create-db
157 #!/bin/sh
158 /usr/bin/make -f /var/db/db-Makefile
159 EOF
160
161 ln -sf create-db $RPM_BUILD_ROOT/usr/bin/update-db 
162
163 rm -rf documentation
164 install -d documentation
165
166 cp linuxthreads/ChangeLog  documentation/ChangeLog.threads
167 cp linuxthreads/Changes documentation/Changes.threads
168 cp linuxthreads/README documentation/README.threads
169 cp login/README.utmpd documentation/
170 cp crypt/README documentation/README.crypt
171
172 cp ChangeLog ChangeLog.8 documentation
173
174 bzip2 -9 documentation/*
175
176 strip $RPM_BUILD_ROOT/{sbin/*,usr/{bin/*,sbin/*}} || :
177
178 bzip2 -9 README NEWS FAQ BUGS NOTES PROJECTS
179
180 gzip -9fn $RPM_BUILD_ROOT/usr/{man/man*/*,info/libc*}
181
182 %post   -p /sbin/ldconfig
183 %postun -p /sbin/ldconfig
184
185 %post devel
186 /sbin/install-info /usr/info/libc.info.gz /etc/info-dir
187
188 %preun devel
189 if [ "$1" = 0 ]; then
190         /sbin/install-info --delete /usr/info/libc.info.gz /etc/info-dir
191 fi
192
193 %clean
194 rm -rf $RPM_BUILD_ROOT
195
196 %files
197 %defattr(644,root,root,755)
198 %doc {README,NEWS,FAQ,BUGS}.bz2
199
200 %attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
201 %config(noreplace) %verify(not mtime md5 size) /etc/nsswitch.conf
202 %config /etc/rpc
203
204 %attr(754,root,root) /etc/rc.d/init.d/*
205
206 %attr(755,root,root) /sbin/*
207 %attr(755,root,root) /usr/bin/*
208 %attr(755,root,root) /usr/sbin/*
209
210 %attr(755,root,root) /lib/ld-*
211 %attr(755,root,root) /lib/lib*
212
213 %dir /usr/lib/gconv
214 /usr/lib/gconv/gconv-modules
215
216 /usr/share/i18n
217 /usr/share/locale
218 /usr/share/zoneinfo
219
220 %dir /var/db
221 %config /var/db/db-*
222
223 %files devel
224 %defattr(644,root,root,755)
225 %doc documentation/* {NOTES,PROJECTS}.bz2
226
227 /usr/include/*.h
228 /usr/include/arpa
229 /usr/include/bits
230 /usr/include/db1
231 /usr/include/gnu
232 /usr/include/net
233 /usr/include/netash
234 /usr/include/netatalk
235 /usr/include/netax25
236 /usr/include/neteconet
237 /usr/include/netinet
238 /usr/include/netipx
239 /usr/include/netpacket
240 /usr/include/netrom
241 /usr/include/netrose
242 /usr/include/nfs
243 /usr/include/protocols
244 /usr/include/rpc
245 /usr/include/rpcsvc
246 /usr/include/scsi
247 /usr/include/sys
248
249 /usr/info/libc.inf*.gz
250
251 %attr(755,root,root) /usr/lib/lib*.so
252 /usr/lib/*.o
253 /usr/lib/lib*.a
254
255 %attr(755,root,root) /usr/lib/gconv/*.so
256 /usr/man/man3/*
257
258 %changelog
259 * Mon Mar 15 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.
260   [2.1-7]
261 - on sparc{64} ./configure must be runed throw sparc32 wrapper.
262
263 * Sun Mar 14 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
264   [2.1-6]
265 - updated glibc-crypt to version-2.1
266
267 * Sat Mar 06 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
268   [2.1-5]
269 - removed striping of shared libraries -- no debug info in this libs,
270 - fixed permission of /var/db directory -- should be 755...
271
272 * Mon Feb 22 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
273   [2.1-4]
274 - removed man group from man pages,
275 - standarized {un}registering info pages (added libc-info.patch),
276 - changed base source url to ftp://sourceware.cygnus.com/pub/glibc/,
277 - changed URL,
278 - siplifications in %files devel,
279 - Group in devel changed to Development/Libraries,
280 - removed some %doc (INSTALL and outdated ChangeLog),
281 - removed %config and %verify rules fromn /etc/rc.d/init.d/* files,
282 - changed permission to 754 on /etc/rc.d/init.d/*,
283 - added striping shared libraries.
284
285 * Sun Feb 14 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
286   [2.1-3d]
287 - updated to stable version,
288 - fixed stripping ELF binaries,
289 - removed obsoletes /usr/include/{asm,linux}
290
291 * Fri Jan 29 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
292   [2.0.111-1d]
293 - updated to latest snapshoot,
294 - added utmpd.init, (don't run this piece of ... by default)
295 - added /var/db, (don't generate a data base by default)
296 - removed unused /usr/libexec/pt_ch*
297 - other changes.
298
299 * Sat Nov 07 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
300   [2.0.100-1d]
301 - updated to latest snapshoot,
302 - added install-locales,
303 - minor changes.
304
305 * Tue Oct 13 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
306   [2.0.99-1d]
307 - updated to 2.0.99,
308 - added Obsoletes: glibc-debug, glibc-profile
309
310 * Thu Aug 06 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
311   [2.0.96-1d]
312 - updated to 2.0.96,
313 - translation modified for pl, 
314   (follow the suggestions Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>)
315 - major changes.
316       (rewrote spec file -- follow the PLD policy)
317
318 * Wed Jul 16 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
319   [2.0.94-2d]
320 - added nscd.init and config
321 - fixed permision of pt_chown to 4711 
322 - added %defattr
323 - moved linux include links from kernel-headers to glibc-devel
324
325 * Tue Jun 2 1998 Wojtek ¦lusarczyk <wojtek@SHADOW.EU.ORG>
326   [2.0.94-1d]
327 - updated to glibc 2.0.94
328
329 * Sun May 24 1998 Marcin Korzonek <mkorz@euler.mat.univ.szczecin.pl>
330   [2.0.93-1d]
331 - updated for glibc 2.0.93
332 - build prepare for PLD-1.1 Tornado
333 - removed glibc-debug and glibc-profile packages generation (it took too
334   long to compile the full featured version on my home linux box ;)
335 - compilation is now performed in compile directory as advised 
336   in Glibc HOWTO,
337 - start at invalid RH spec file.  
338
339
340   [2.1.1-1]
341 - based on RH spec,
342 - spec rewrited by PLD team,
343   we start at GNU libc 2.0.92 one year ago ...
344 - pl translation by Wojtek ¦lusarczyk <wojtek@shadow.eu.org>.
This page took 0.072383 seconds and 2 git commands to generate.