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