Summary(pl): GNU libc
Summary(tr): GNU libc
name: glibc
-Version: 2.1
-Release: 4
+Version: 2.1.1
+Release: 1
Copyright: LGPL
Group: Libraries
Group(pl): Biblioteki
Source0: ftp://sourceware.cygnus.com/pub/glibc/%{name}-%{version}.tar.gz
Source1: ftp://sourceware.cygnus.com/pub/glibc/%{name}-linuxthreads-%{version}.tar.gz
-Source2: ftp://sourceware.cygnus.com/pub/glibc/%{name}-crypt-2.0.111.tar.gz
+Source2: http://www.ozemail.com.au/~geoffk/glibc-crypt/%{name}-crypt-2.1.tar.gz
Source3: utmpd.init
Source4: nscd.init
Patch0: glibc-info.patch
URL: http://www.gnu.org/software/libc/
-BuildRoot: /tmp/%{name}-%{version}-root
Provides: ld.so.2
Obsoletes: %{name}-profile
Obsoletes: %{name}-debug
Autoreq: false
+BuildRoot: /tmp/%{name}-%{version}-root
%description
-Contains the standard libraries that are used by multiple programs on
-the system. In order to save disk space and memory, as well as to
-ease upgrades, common system code is kept in one place and shared between
-programs. This package contains the most important sets of shared libraries,
-the standard C library and the standard math library. Without these, a
-Linux system will not function. It also contains national language (locale)
-support and timezone databases.
+Contains the standard libraries that are used by multiple programs on the
+system. In order to save disk space and memory, as well as to ease upgrades,
+common system code is kept in one place and shared between programs. This
+package contains the most important sets of shared libraries, the standard C
+library and the standard math library. Without these, a Linux system will
+not function. It also contains national language (locale) support and
+timezone databases.
%description -l de
Enthält die Standard-Libraries, die von verschiedenen Programmen im System
Linux sistemi çalýþmayacaktýr. Yerel dil desteði ve zaman dilimi veri tabaný
da bu pakette yer alýr.
-%package devel
+%package devel
Summary: Additional libraries required to compile
Summary(de): Weitere Libraries zum Kompilieren
Summary(fr): Librairies supplémentaires nécessaires à la compilation.
C kitaplýðýný kullanan (ki hemen hemen hepsi kullanýyor) programlar
geliþtirmek için gereken standart baþlýk dosyalarý ve statik kitaplýklar.
+%package static
+Summary: Additional libraries required to compile
+Summary(pl): Dodatkowe biblioteki wymagane podczas kompilacji
+Group: Development/Libraries
+Group(pl): Programowanie/Biblioteki
+Requires: %{name}-static-base = %{version}
+
+%description static
+Additional libraries required to compile static programs.
+
+%description static -l pl
+Dodatkowe biblioteki wymagane podczas kompilacji programów w wersji statycznej.
+Potrzebne tylko przy kompilacji niektórych programów.
+
+%package static-base
+Summary: Static libc.a and libm.a
+Summary(pl): Statyczne libc.a i libm.a
+Group: Development/Libraries
+Group(pl): Programowanie/Biblioteki
+Requires: %{name}-devel = %{version}
+
+%description static-base
+Base library in static version.
+
+%description static-base -l pl
+Dwie podstawowe (libc.a i libcm.a) biblioteki w wersji statycznej.
+Potrzebne tylko przy kompilacji niektórych programów.
+
+%package -n nscd
+Summary: Name Service Caching Daemon
+Summary(pl): -
+Group: Networnikng/Daemons
+Group: Sieciowe/Serwery
+Prereq: /sbin/chkconfig
+Conflicts: kernel < 2.2.0
+
+%description -n nscd
+nscd caches name service lookups; it can dramatically improve performance
+with NIS+, and may help with DNS as well.
+
+You cannot use nscd with 2.0 kernels, due to bugs in the kernel-side thread
+support. nscd happens to hit these bugs particularly hard.
+
+%description -n nscd -l pl
+nscd zapmiêtuje zapytania i odpowiedzi NIS oraz DNS. Pozwala drastycznie
+poprawiæ szybko¶æ dzia³ania NIS+.
+
+Nie jest mo¿liwe u¿ywanie nscd z j±drami serii 2.0.x z powodu b³adów
+po stronie j±dra w ods³udze w±tków.
+
+%package -n utmpd
+Summary: utmp and utmpx synchronizer for libc5 applications.
+Summary(pl): Synchrnonizuje pliki utmp i utmpx.
+Group: Daemons
+Group(pl): Serwery
+Prereq: /sbin/chkconfig
+
+%description -n utmpd
+utmpd is a utmp and utmpx synchronizer. Is only needed for libc5 based
+program with utmp access.
+
+%description -n utmpd -l pl
+utmpd stara siê utrzymaæ tak± sam± zawarto¶æ plików
+/var/run/utmp i /var/run/utmpx. Potrzebny jest tylko w przypadku korzystania
+ze starszych programów (bazuj±cych na libc5).
+
%prep
-%setup -q -a 1 -a 2
+%setup -q -a 1 -a 2
%patch0 -p1
%build
-install -d sunrpc/cpp; ln -s /lib/cpp sunrpc/cpp/cpp
-CFLAGS="$RPM_OPT_FLAGS -pipe" \
-./configure \
+%configure \
--enable-add-ons=crypt,linuxthreads \
--disable-profile \
- --prefix=/usr \
- --disable-omitfp
+ --disable-omitfp
make
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{etc/rc.d/init.d,usr/man/man3,var/db}
-
-make install_root=$RPM_BUILD_ROOT install
-make install_root=$RPM_BUILD_ROOT install-locales -C localedata
+install -d $RPM_BUILD_ROOT/{etc/rc.d/init.d,%{_mandir}/man3,var/db}
+make install \
+ install_root=$RPM_BUILD_ROOT \
+ infodir=%{_infodir} \
+ mandir=%{_mandir}
+make install-locales -C localedata \
+ install_root=$RPM_BUILD_ROOT
make -C linuxthreads/man
-install linuxthreads/man/*.3thr $RPM_BUILD_ROOT/usr/man/man3
+install linuxthreads/man/*.3thr $RPM_BUILD_ROOT%{_mandir}/man3
rm -rf $RPM_BUILD_ROOT/usr/share/zoneinfo/{localtime,posixtime,posixrules}
-ln -sf ../src/linux/include/linux $RPM_BUILD_ROOT/usr/include/linux
-ln -sf ../src/linux/include/asm $RPM_BUILD_ROOT/usr/include/asm
-
-ln -sf ../../../etc/localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/localtime
-ln -sf localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/posixtime
-ln -sf localtime $RPM_BUILD_ROOT/usr/share/zoneinfo/posixrules
-ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT/usr/lib/libbsd.a
+ln -sf ../../../etc/localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/localtime
+ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixtime
+ln -sf localtime $RPM_BUILD_ROOT%{_datadir}/zoneinfo/posixrules
+ln -sf ../../usr/lib/libbsd-compat.a $RPM_BUILD_ROOT%{_libdir}/libbsd.a
rm -f $RPM_BUILD_ROOT/etc/localtime
install nss/db-Makefile $RPM_BUILD_ROOT/var/db
cat << EOF > $RPM_BUILD_ROOT/usr/bin/create-db
-#!/bin/bash
+#!/bin/sh
/usr/bin/make -f /var/db/db-Makefile
EOF
-ln -sf create-db $RPM_BUILD_ROOT/usr/bin/update-db
+ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
rm -rf documentation
install -d documentation
cp ChangeLog ChangeLog.8 documentation
-bzip2 -9 documentation/*
-
-strip $RPM_BUILD_ROOT/{sbin/*,usr/{bin/*,sbin/*}} || :
-strip --strip-debug $RPM_BUILD_ROOT/lib/lib*so
+gzip -9fn README NEWS FAQ BUGS NOTES PROJECTS \
+ $RPM_BUILD_ROOT{%{_mandir}/man*/*,%{_infodir}/libc*} \
+ documentation/*
-bzip2 -9 README NEWS FAQ BUGS NOTES PROJECTS
-gzip -9fn $RPM_BUILD_ROOT/usr/{man/man*/*,info/libc*}
+ls $RPM_BUILD_ROOT%{_libdir}/lib*.a \
+ |egrep -v '(libc.a|libc.a|libc_nonshared.a)' \
+ |sed -e "s#$RPM_BUILD_ROOT##g" >static.libs
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post devel
-/sbin/install-info /usr/info/libc.info.gz /etc/info-dir
+/sbin/install-info %{_infodir}/libc.info.gz /etc/info-dir
%preun devel
if [ "$1" = 0 ]; then
- /sbin/install-info --delete /usr/info/libc.info.gz /etc/info-dir
+ /sbin/install-info --delete %{_infodir}/libc.info.gz /etc/info-dir
+fi
+
+%post -n nscd
+/sbin/chkconfig --add nscd
+if test -r /var/run/nscd.pid; then
+ /etc/rc.d/init.d/nscd stop >&2
+ /etc/rc.d/init.d/nscd start >&2
+else
+ echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon."
+fi
+
+%preun -n nscd
+if [ "$1" = "0" ]; then
+ /sbin/chkconfig --del nscd
+ /etc/rc.d/init.d/nscd stop >&2
fi
%clean
%files
%defattr(644,root,root,755)
-%doc README.bz2 NEWS.bz2 FAQ.bz2 BUGS.bz2
+%doc {README,NEWS,FAQ,BUGS}.gz
-%attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
%config(noreplace) %verify(not mtime md5 size) /etc/nsswitch.conf
%config /etc/rpc
-%attr(754,root,root) /etc/rc.d/init.d/*
%attr(755,root,root) /sbin/*
-%attr(755,root,root) /usr/bin/*
-%attr(755,root,root) /usr/sbin/*
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_sbindir}/rpcinfo
+%attr(755,root,root) %{_sbindir}/zdump
+%attr(755,root,root) %{_sbindir}/zic
%attr(755,root,root) /lib/ld-*
%attr(755,root,root) /lib/lib*
-%dir /usr/lib/gconv
-/usr/lib/gconv/gconv-modules
+%dir %{_libdir}/gconv
+%{_libdir}/gconv/gconv-modules
-/usr/share/i18n
-/usr/share/locale
-/usr/share/zoneinfo
+%{_datadir}/i18n
+%{_datadir}/locale
+%{_datadir}/zoneinfo
-%attr(750,root,root) %dir /var/db
+%dir /var/db
%config /var/db/db-*
%files devel
%defattr(644,root,root,755)
-%doc documentation/* NOTES.bz2 PROJECTS.bz2
-
-/usr/include/*.h
-/usr/include/arpa
-/usr/include/bits
-/usr/include/db1
-/usr/include/gnu
-/usr/include/net
-/usr/include/netash
-/usr/include/netatalk
-/usr/include/netax25
-/usr/include/neteconet
-/usr/include/netinet
-/usr/include/netipx
-/usr/include/netpacket
-/usr/include/netrom
-/usr/include/netrose
-/usr/include/nfs
-/usr/include/protocols
-/usr/include/rpc
-/usr/include/rpcsvc
-/usr/include/scsi
-/usr/include/sys
-
-/usr/info/libc.inf*.gz
-
-%attr(755,root,root) /usr/lib/lib*.so
-/usr/lib/*.o
-/usr/lib/lib*.a
+%doc documentation/* {NOTES,PROJECTS}.gz
+
+%{_includedir}/*.h
+%{_includedir}/arpa
+%{_includedir}/bits
+%{_includedir}/db1
+%{_includedir}/gnu
+%{_includedir}/net
+%{_includedir}/netash
+%{_includedir}/netatalk
+%{_includedir}/netax25
+%{_includedir}/neteconet
+%{_includedir}/netinet
+%{_includedir}/netipx
+%{_includedir}/netpacket
+%{_includedir}/netrom
+%{_includedir}/netrose
+%{_includedir}/nfs
+%{_includedir}/protocols
+%{_includedir}/rpc
+%{_includedir}/rpcsvc
+%{_includedir}/scsi
+%{_includedir}/sys
+
+%{_infodir}/libc.inf*.gz
+
+%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/*.o
+%{_libdir}/lib*.a
%attr(755,root,root) /usr/lib/gconv/*.so
-/usr/man/man3/*
+%{_mandir}/man3/*
+
+%file static-base
+%defattr(644,root,root,755)
+%{_libdir}/libc.a
+%{_libdir}/libm.a
+%{_libdir}/libc_nonshared.a
+
+%files static -f static.libs
+%defattr(644,root,root,755)
+
+%files -n nscd
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not mtime md5 size) /etc/nscd.*
+%attr(754,root,root) /etc/rc.d/init.d/nscd
+%attr(755,root,root) %{_sbindir}/nscd
+
+files -n utmpd
+%defattr(644,root,root,755)
+%attr(754,root,root) /etc/rc.d/init.d/utmpd
+%attr(755,root,root) %{_sbindir}/utmpd
%changelog
+* Wed May 19 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
+- macro %{_target_platform},
+- some macros,
+- updated to version pre3,
+- FHS 2.0
+
+* Sun Mar 14 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
+ [2.1-6]
+- updated glibc-crypt to version-2.1
+
+* Sat Mar 06 1999 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
+ [2.1-5]
+- removed striping of shared libraries -- no debug info in this libs,
+- fixed /etc/rc.d/init.d/* -- Tomek, never again 754 on start scripts...
+- fixed permission of /var/db directory -- should be 755...
+
* Mon Feb 22 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
[2.1-4]
- removed man group from man pages,
- removed glibc-debug and glibc-profile packages generation (it took too
long to compile the full featured version on my home linux box ;)
- compilation is now performed in compile directory as advised
- in Glibc HOWTO
-
-* Tue Mar 31 1998 Cristian Gafton <gafton@redhat.com>
-- more patches to fix dlopen()/dlclose problems
-
-* Tue Mar 24 1998 Cristian Gafton <gafton@redhat.com>
-- fixed a dlclose() problem.
-- updated the cvs snapshot
-
-* Fri Mar 20 1998 Cristian Gafton <gafton@redhat.com>
-- need a fairly recent version of texinfo (3.11 or later). Handle this
- through a Conflicts: header for the glibc-devel package
-
-* Sat Mar 14 1998 Cristian Gafton <gafton@redhat.com>
-- new package versioning for snapshots
-
-* Sat Mar 14 1998 Cristian Gafton <gafton@redhat.com>
-- new snapshot
-- fixed a localedef bug
-- reverted some changes in the new localedata ru_RU that caused locale files
- to be built incorrectly.
-
-* Wed Mar 04 1998 Cristian Gafton <gafton@redhat.com>
-- downgraded kernel headers to 2.1.76. tty changes in more recent kernels
- require too many programs to be recompiled against the new glibc.
-- upgraded the dlfix patch for dlopen() to handle large shared objects
-- updated the fix patch to make the source compile on alpha
-- the new sources require binutils 2.8.1.0.21 or later to compile on alpha
-- updated snapshot; lots of patches obsoleted
-- added a patch to buold & install the localedata files correctly
-- added yet another patch from H.J.Lu
-
-* Sat Feb 28 1998 Cristian Gafton <gafton@redhat.com>
-- updated the snapshot
-- upgraded the kernel headers to 2.1.88
-- replaced the full kernel source with a homebrew
- linux-include-2.1.88.tar.gz (it was way too hard to maintain glibc from
- home over my modem...)
-
-* Wed Feb 18 1998 Cristian Gafton <gafton@redhat.com>
-- added a dl-open fix for the RTLD_GLOBAL flag
-
-* Sat Feb 07 1998 Cristian Gafton <gafton@redhat.com>
-- upgraded to 2.0.7pre1
-- modified spec file to include linuxthreads man pages and documentation
-
-* Wed Jan 28 1998 Erik Troan <ewt@redhat.com>
-- don't believe LD_PRELOAD if the app is setuid root
-
-* Tue Jan 27 1998 Cristian Gafton <gafton@redhat.com>
-- added (what else ?) more patches from Andreas Jaeger, Andreas Schwab,
- Ulrich Drepper and H J Lu
-
-* Fri Jan 16 1998 Cristian Gafton <gafton@redhat.com>
-- added nss patch to fix a problem of ignoring the NSS_STATUS_TRYAGAIN
- return value from the modules by getXXbyYY_r and getXXent_r functions
-- added another patch for the nss_db from Andreas Schwab
-
-* Wed Jan 14 1998 Cristian Gafton <gafton@redhat.com>
-- added a patch to fix the problems with the nss_db lookups from Andreas
- Schwab
-- added a patch to fix lookup problems with large entries (errno not being
- reset from ERANGE)
-- added another two tiny patches from Andreas Jaeger
-- added a header patch for the net/if.h file which failed to #define
- #IFF_* symbols
-- fixed obsoletes header for linuxthreads
-- added a patch for locale on big endian machines from Andreas Schwab
-- added a config patch from Andreas Jaeger
-
-* Wed Jan 7 1998 Cristian Gafton <gafton@redhat.com>
-- figured out how to handle newer kernels on alpha - back to 2.1.76
-- added a patch to address case-sensitve hosts and aliases lookup brokeness
-- re-added the patch for alpha/net/route.h, which somehow escaped the
- official release
-- added the threads and thread-signal patches from Andreas Jaeger
-
-* Mon Dec 29 1997 Cristian Gafton <gafton@redhat.com>
-- finally 2.0.6 final release is here...
-- reverted to kernel headers 2.1.60. Although the latest one available
- should be used (2.1.76 at the moment), the new kernel headers break
- compilation on alpha (due to the rename of the __NR_sigaction to
- __NR_old_osf_sigaction). In two days I haven't figured out the correct
- place to modify this on glibc sources, so...
-
-* Thu Dec 25 1997 Cristian Gafton <gafton@redhat.com>
-- upgraded to pre6
-
-* Tue Dec 23 1997 Cristian Gafton <gafton@redhat.com>
-- upgraded to pre5
-- added NIS patch fix
-
-* Mon Dec 15 1997 Cristian Gafton <gafton@redhat.com>
-- added security patch
-
-* Fri Dec 12 1997 Cristian Gafton <gafton@redhat.com>
-- updated to 2.0.6pre4
-- cleaned up the spec file
-
-* Sun Nov 09 1997 Erik Troan <ewt@redhat.com>
-- added setlocale patch from Ulrich
-
-* Wed Nov 05 1997 Erik Troan <ewt@redhat.com>
-- added new glob.c from Ulrich
-
-* Wed Oct 29 1997 Erik Troan <ewt@redhat.com>
-- fixed timezone patch
-
-* Tue Oct 28 1997 Erik Troan <ewt@redhat.com>
-- added patch to fix sense on timezone global
-
-* Sat Oct 25 1997 Erik Troan <ewt@redhat.com>
-- build against included kernel headers
-- added ld.so patch from ulrich
-
-* Fri Oct 24 1997 Erik Troan <ewt@redhat.com>
-- added documentation files as %doc
-- improved obsoletes list
-
-* Thu Oct 16 1997 Erik Troan <ewt@redhat.com>
-- added patch to fix nfs inet_ntoa() memory leak
-- create proper sysdeps/alpha/Implies
-- create configparms w/ a here doc, not a separate patch file
-
-* Thu Oct 09 1997 Erik Troan <ewt@redhat.com>
-- added patch from Ulrich for rcmd() w/ IP number
-
-* Tue Sep 16 1997 Erik Troan <ewt@redhat.com>
-- added obsolete entries
-
-* Mon Sep 15 1997 Erik Troan <ewt@redhat.com>
-- removed /usr/info/dir
-- added support for install-info for devel package
-
-* Wed Sep 10 1997 Erik Troan <ewt@redhat.com>
-- updated to 2.0.5c
-
-* Wed Sep 10 1997 Erik Troan <ewt@redhat.com>
-- added getcwd() fix from Ulrich
-- changed datadir to default /usr/share instead of /usr/lib
-
-* Mon Sep 01 1997 Erik Troan <ewt@redhat.com>
-- fixed some symlinks (which broke due to the buildroot)
-
-* Thu Aug 28 1997 Erik Troan <ewt@redhat.com>
-- removed extrneous symlinks invocation
-- removed /etc/localtime from filelist
-
-* Wed Aug 27 1997 Erik Troan <ewt@redhat.com>
-- added patch to tcp.h from Ulrich
-
-* Wed Aug 27 1997 Erik Troan <ewt@redhat.com>
-- updated to 2.0.5
-- removed zic symlink hack
-
-* Sat Aug 23 1997 Erik Troan <ewt@redhat.com>
-- minor hack for alpha (won't be necessary in next release)
-- switched to use a build root
-- dynamically builds file lists
-
-* Tue Aug 19 1997 Erik Troan <ewt@redhat.com>
-- 1) Updated to glibc 2.0.5pre5 (version of package is 2.0.4.9)
-
-* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
-- 1) Updated to glibc 2.0.4
-
-* Thu May 15 1997 Erik Troan <ewt@redhat.com>
-- 1) Updated to glibc 2.0.3, builds glibc on Intel as well.
-
-* Tue Feb 18 1997 Erik Troan <ewt@redhat.com>
-- 1) added patch for shadow to work w/ :: rather then :-1: entries
-- 2) incorporated Richard Henderson's string operation fix
-- 3) added default /etc/nsswitch.conf [2.1.1-1]
+ in Glibc HOWTO,
+- start at invalid RH spec file.
+ [2.1.1-1]
- based on RH spec,
- spec rewrited by PLD team,
we start at GNU libc 2.0.92 one year ago ...