info:glibc.spec -stable

Wojtek Slusarczyk wojtek w SHADOW.EU.ORG
Śro, 7 Paź 1998, 20:54:21 CEST


Hej,
	Przygotowalem odpowiedniego glibca dla stable (dla devela
poczekamy na 2.2 ;)

na razie,

PS Mimo egzotyki prosilbym o wnikliwe przyjzenie sie temu specowi...

Wojciech Slusarczyk (091)4494148
Technical University of Szczecin
PGP KeyServer pgpkeys.mit.edu
-------------- następna część ---------
Summary:     GNU libc
name:        glibc
Version:     2.0.96
Release:     1d 
Copyright:   LGPL
Group:       Development/Libraries/Libc
Source:      ftp://ftp.kernel.org/pub/linux/libs/glibc/%{name}-%{version}.tar.gz
Source1:     ftp://ftp.kernel.org/pub/linux/libs/glibc/%{name}-linuxthreads-%{version}.tar.gz
Source2:     ftp://ftp.kernel.org/pub/linux/libs/glibc/%{name}-crypt-%{version}.tar.gz
Source3:     %{name}-%{version}-nsswitch.conf
BuildRoot:   /var/tmp/%{name}-%{version}-root
Provides:    ld.so.2
Autoreq:     false
Summary(de): GNU libc
Summary(fr): GNU libc
Summary(pl): GNU libc
Summary(tr): GNU libc

%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.

%package     devel
Summary:     Additional libraries required to compile
Summary(de): Weitere Libraries zum Kompilieren
Summary(fr): Librairies supplémentaires nécessaires ŕ la compilation.
Summary(pl): Dodatkowe biblioteki wymagane podczas kompilacji
Summary(tr): Geliţtirme için gerekli diđer kitaplýklar
Group:       Development/Libraries/Libc
Prereq:      /sbin/install-info
Requires:    %{name} = %{version}

%description devel
To develop programs which use the standard C libraries (which nearly all
programs do), the system needs to have these standard header files and object
files available for creating the executables.

%description -l de
Enthält die Standard-Libraries, die von verschiedenen Programmen im 
System benutzt werden. Um Festplatten- und Arbeitsspeicher zu sparen 
und zur Vereinfachung von Upgrades ist der gemeinsame Systemcode an 
einer einzigen Stelle gespeichert und wird von den Programmen 
gemeinsam genutzt. Dieses Paket enthält die wichtigsten Sets der 
shared Libraries, die Standard-C-Library und die Standard-Math-Library, 
ohne die das Linux-System nicht funktioniert. Ferner enthält es den Support 
für die verschiedenen Sprachgregionen (locale) und die Zeitzonen-Datenbank.

%description -l fr
Contient les bibliothčques standards utilisées par de nombreux programmes
du systčme. Afin d'économiser l'espace disque et mémoire, et de faciliter
les mises ŕ jour, le code commun au systčme est mis ŕ un endroit et partagé
entre les programmes. Ce paquetage contient les bibliothčques partagées les
plus importantes, la bibliothčque standard du C et la bibliothčque
mathématique standard. Sans celles-ci, un systčme Linux ne peut fonctionner.
Il contient aussi la gestion des langues nationales (locales) et les bases
de données des zones horaires.

%description -l pl
W pakiecie znajdują się podstawowe biblioteki, używane przez różne programy 
w twoim systemie. Używanie przez programy bibliotek z tego pakietu oszczędza
miejsce na dysku i pamięć. Wiekszość kodu systemowego jest usytułowane w jednym
miejscu i dzielone między wieloma programami. Pakiet ten zawiera bardzo ważny 
zbiór bibliotek współdzielonych (dynamicznych), standardowych bibliotek C i
standardowych bibliotek matematycznych. Bez glibc system Linux nie jest w
stanie funkcjonować. Znajdują się tutaj również definicje różnych informacji
dla wielu języków (locale) oraz definicje stref czasowych.

%description -l tr
Bu paket, birçok programýn kullandýđý standart kitaplýklarý içerir. Disk
alaný ve bellek kullanýmýný azaltmak ve ayný zamanda güncelleme iţlemlerini
kolaylaţtýrmak için ortak sistem kodlarý tek bir yerde tutulup programlar
arasýnda paylaţtýrýlýr. Bu paket en önemli ortak kitaplýklarý, standart
C kitaplýđýný ve standart matematik kitaplýđýný içerir. Bu kitaplýklar olmadan
Linux sistemi çalýţmayacaktýr. Yerel dil desteđi ve zaman dilimi veri tabaný
da bu pakette yer alýr.

%description -l de devel
Bei der Entwicklung von Programmen, die die Standard-C-Libraries verwenden
(also fast alle), benötigt das System diese Standard-Header- und Objektdateien
zum Erstellen der ausführbaren Programme.

%description -l fr devel
Pour développer des programmes utilisant les bibliothčques standard du C
(ce que presque tous les programmes font), le systčme doit posséder ces
fichiers en-tętes et objets standards pour créer les exécutables.

%description -l pl devel
Pakiet ten jest niezbędny przy tworzeniu własnych programów korzystających
ze standardowej biblioteki C. Znajdują się tutaj pliki nagłówkowe oraz pliki 
objektowe, niezbędne do kompilacji programów wykonywalnych i innych bibliotek.

%description -l tr devel
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.

%prep 
%setup -q -a 1 -a 2 

%build
install -d compile
cd compile
CFLAGS=$RPM_OPT_FLAGS \
../configure --enable-add-ons=crypt,linuxthreads \
	    --disable-profile \
	    --prefix=/usr 
make  

%install
cd compile
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT

make install_root=$RPM_BUILD_ROOT install

# the man pages for the linuxthreads require special attention
cd ..
install -d $RPM_BUILD_ROOT/usr/man/man3
make -C linuxthreads/man
install linuxthreads/man/*.3thr $RPM_BUILD_ROOT/usr/man/man3

gzip -9nvf $RPM_BUILD_ROOT/usr/info/libc*

rm -rf $RPM_BUILD_ROOT/usr/share/zoneinfo/{localtime,posixtime,posixrules}
rm -rf $RPM_BUILD_ROOT/usr/include/scsi
ln -s /usr/src/linux/include/linux $RPM_BUILD_ROOT/usr/include/linux
ln -s /usr/src/linux/include/asm $RPM_BUILD_ROOT/usr/include/asm
ln -s /usr/src/linux/include/scsi $RPM_BUILD_ROOT/usr/include/scsi

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
rm -f $RPM_BUILD_ROOT/etc/localtime

install %{SOURCE3} $RPM_BUILD_ROOT/etc/nsswitch.conf

install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
install  nscd/nscd.init $RPM_BUILD_ROOT/etc/rc.d/init.d

install  nscd/nscd.conf $RPM_BUILD_ROOT/etc


find $RPM_BUILD_ROOT -type f -or -type l | 
	sed 's|.*/etc|%config &|' > rpm.filelist.in
for n in /usr/share /usr/include; do 
    find ${RPM_BUILD_ROOT}${n} -type d | sed "s/^/%dir /" >> rpm.filelist.in
done

# primary filelist
sed "s|$RPM_BUILD_ROOT||" < rpm.filelist.in | 
	grep -v '/usr/lib/libg.a' | sort > rpm.filelist

# grep '/usr/lib/lib.*_p\.a' < rpm.filelist > profile.filelist
egrep "(/usr/include)|(/usr/info)" < rpm.filelist | 
	grep -v /usr/info/dir > devel.filelist

mv rpm.filelist rpm.filelist.full
grep -v '/usr/lib/lib.*_p.a' rpm.filelist.full | 
	egrep -v "(/usr/include)|(/usr/info)" > rpm.filelist

grep '/usr/lib/lib.*\.a' < rpm.filelist >> devel.filelist
grep '/usr/lib/.*\.o' < rpm.filelist >> devel.filelist
grep '/usr/lib/.*\.so' < rpm.filelist >> devel.filelist
grep '/usr/man/man' < rpm.filelist >> devel.filelist

mv rpm.filelist rpm.filelist.full
grep -v '/usr/lib/lib.*\.a' < rpm.filelist.full |
	grep -v '/usr/lib/.*\.o' |
	grep -v '/usr/lib/.*\.so'|
	grep -v '/usr/man/man' > rpm.filelist

# the last bit: more documentation
rm -rf documentation
mkdir documentation
cp linuxthreads/ChangeLog  documentation/ChangeLog.threads
cp linuxthreads/Changes documentation/Changes.threads
cp linuxthreads/README documentation/README.threads
cp linuxthreads/FAQ.html documentation/FAQ-threads.html
cp -r linuxthreads/Examples documentation/examples.threads
cp crypt/README documentation/README.crypt
cp ChangeLog* documentation
gzip -9 documentation/ChangeLog*

strip $RPM_BUILD_ROOT/{sbin/*,usr/bin/*,usr/libexec/*} || :

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%post devel
/sbin/install-info /usr/info/libc.info.gz /usr/info/dir

%preun devel
if [ "$1" = 0 ]; then
    /sbin/install-info --delete /usr/info/libc.info.gz /usr/info/dir
fi

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644, root, root, 755)

%doc README NEWS FAQ BUGS NOTES PROJECTS
%doc documentation/*

%attr(640, root, root) %config(missingok) %verify(not mtime md5 size) /etc/nscd.conf
%attr(644, root, root) %config(missingok) %verify(not mtime md5 size) /etc/nsswitch.conf
%attr(700, root, root) %config(missingok) /etc/rc.d/init.d/nscd.init
%attr(644, root, root) %config(missingok) /etc/rpc

%attr(755, root, root) /sbin/*
%attr(755, root, root) /usr/bin/*
%attr(4711, root, root) /usr/libexec/pt_chown

%attr(755, root, root) /lib/ld-*
%attr(755, root, root) /lib/lib*

%dir /usr/lib/gconv
/usr/lib/gconv/gconv-modules

%dir /usr/share/i18n
/usr/share/i18n/*

%dir /usr/share/locale
/usr/share/locale/*

%dir /usr/share/zoneinfo
/usr/share/zoneinfo/*

%files devel
%defattr(644, root, root, 755)

/usr/include/*.h

%dir /usr/include/arpa
/usr/include/arpa/*.h

%attr(- , root, root) %ghost /usr/include/asm
%attr(- , root, root) %ghost /usr/include/linux
%attr(- , root, root) %ghost /usr/include/scsi

%dir /usr/include/bits
/usr/include/bits/*.h

%dir /usr/include/gnu
/usr/include/gnu/*.h

%dir /usr/include/net
/usr/include/net/*.h

%dir /usr/include/netash
/usr/include/netash/*.h

%dir /usr/include/netatalk
/usr/include/netatalk/*.h

%dir /usr/include/netax25
/usr/include/netax25/*.h

%dir /usr/include/netinet
/usr/include/netinet/*.h

%dir /usr/include/netipx
/usr/include/netipx/*.h

%dir /usr/include/netpacket
/usr/include/netpacket/*.h

%dir /usr/include/netrom
/usr/include/netrom/*.h

%dir /usr/include/netrose
/usr/include/netrose/*.h

%dir /usr/include/nfs
/usr/include/nfs/*.h

%dir /usr/include/protocols
/usr/include/protocols/*.h

%dir /usr/include/rpc
/usr/include/rpc/*

%dir /usr/include/rpcsvc
/usr/include/rpcsvc/*

%dir /usr/include/sys
/usr/include/sys/*.h

/usr/info/libc.inf*.gz

%attr(755, root, root) /usr/lib/*.o
%attr(755, root, root) /usr/lib/*.so
/usr/lib/*.a
%attr(755, root, root) /usr/lib/gconv/*.so
%attr(644, root, man)  /usr/man/man3/*

%changelog
* Thu Aug 06 1998 Wojtek Ślusarczyk <wojtek w SHADOW.EU.ORG>
[2.0.96-1d]
- updated to 2.0.96,
- translation modified for pl, 
- fixed pl translation,
  (follow the suggestions Tomasz Kłoczko <kloczek w rudy.mif.pg.gda.pl>)
- major changes.
  (follow the PLD policy)

* Wed Jul 16 1998 Wojtek Ślusarczyk <wojtek w SHADOW.EU.ORG>
[2.0.94-4]
- added nscd.init and config
- fixed permision of pt_chown to 4711 
- added %defattr
- moved linux include links from kernel-headers to glibc-devel

* Tue Jun 2 1998 Wojtek Slusarczyk <wojtek w SHADOW.EU.ORG>
- updated for glibc 2.0.94

* Sun May 24 1998 Marcin Korzonek <mkorz w euler.mat.univ.szczecin.pl>
- updated for glibc 2.0.93
- 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 w redhat.com>
- more patches to fix dlopen()/dlclose problems

* Tue Mar 24 1998 Cristian Gafton <gafton w redhat.com>
- fixed a dlclose() problem.
- updated the cvs snapshot

* Fri Mar 20 1998 Cristian Gafton <gafton w 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 w redhat.com>
- new package versioning for snapshots

* Sat Mar 14 1998 Cristian Gafton <gafton w 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 w 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 w 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 w redhat.com>
- added a dl-open fix for the RTLD_GLOBAL flag

* Sat Feb 07 1998 Cristian Gafton <gafton w redhat.com>
- upgraded to 2.0.7pre1
- modified spec file to include linuxthreads man pages and documentation

* Wed Jan 28 1998 Erik Troan <ewt w redhat.com>
- don't believe LD_PRELOAD if the app is setuid root

* Tue Jan 27 1998 Cristian Gafton <gafton w 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 w 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 w 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 w 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 w 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 w redhat.com>
- upgraded to pre6

* Tue Dec 23 1997 Cristian Gafton <gafton w redhat.com>
- upgraded to pre5
- added NIS patch fix

* Mon Dec 15 1997 Cristian Gafton <gafton w redhat.com>
- added security patch

* Fri Dec 12 1997 Cristian Gafton <gafton w redhat.com>
- updated to 2.0.6pre4
- cleaned up the spec file

* Sun Nov 09 1997 Erik Troan <ewt w redhat.com>
- added setlocale patch from Ulrich

* Wed Nov 05 1997 Erik Troan <ewt w redhat.com>
- added new glob.c from Ulrich

* Wed Oct 29 1997 Erik Troan <ewt w redhat.com>
- fixed timezone patch

* Tue Oct 28 1997 Erik Troan <ewt w redhat.com>
- added patch to fix sense on timezone global

* Sat Oct 25 1997 Erik Troan <ewt w redhat.com>
- build against included kernel headers
- added ld.so patch from ulrich

* Fri Oct 24 1997 Erik Troan <ewt w redhat.com>
- added documentation files as %doc
- improved obsoletes list

* Thu Oct 16 1997 Erik Troan <ewt w 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 w redhat.com>
- added patch from Ulrich for rcmd() w/ IP number

* Tue Sep 16 1997 Erik Troan <ewt w redhat.com>
- added obsolete entries 

* Mon Sep 15 1997 Erik Troan <ewt w redhat.com>
- removed /usr/info/dir
- added support for install-info for devel package

* Wed Sep 10 1997 Erik Troan <ewt w redhat.com>
- updated to 2.0.5c

* Wed Sep 10 1997 Erik Troan <ewt w redhat.com>
- added getcwd() fix from Ulrich
- changed datadir to default /usr/share instead of /usr/lib

* Mon Sep 01 1997 Erik Troan <ewt w redhat.com>
- fixed some symlinks (which broke due to the buildroot)

* Thu Aug 28 1997 Erik Troan <ewt w redhat.com>
- removed extrneous symlinks invocation
- removed /etc/localtime from filelist

* Wed Aug 27 1997 Erik Troan <ewt w redhat.com>
- added patch to tcp.h from Ulrich

* Wed Aug 27 1997 Erik Troan <ewt w redhat.com>
- updated to 2.0.5
- removed zic symlink hack

* Sat Aug 23 1997 Erik Troan <ewt w 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 w redhat.com>
- 1) Updated to glibc 2.0.5pre5 (version of package is 2.0.4.9)

* Mon Jun 02 1997 Erik Troan <ewt w redhat.com>
- 1) Updated to glibc 2.0.4

* Thu May 15 1997 Erik Troan <ewt w redhat.com>
- 1) Updated to glibc 2.0.3, builds glibc on Intel as well.

* Tue Feb 18 1997 Erik Troan <ewt w 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


Więcej informacji o liście dyskusyjnej pld-devel-pl