%define sub_version -20080630 Summary: GNU C library Name: glibc Version: 2.8 Release: 1 License: GPL Group: Core/Base Source0: %{name}-%{version}%{sub_version}.tar.bz2 Patch0: %{name}-%{version}%{sub_version}-linux_math_fix-1.patch %description GNU C library and locales. %prep %setup -q -c cd %{name}-%{version}%{sub_version} patch -Np1 -i %{PATCH0} %build mkdir glibc-build cd glibc-build %ifarch %{ix86} CFLAGS="-pipe -O2 -march=i686" \ CXXFLAGS="-pipe -O2 -march=i686" \ ../%{name}-%{version}%{sub_version}/configure \ --prefix=/usr --disable-profile --enable-add-ons \ --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc %endif %ifarch sparc64 echo "libc_cv_sparc64_tls=yes" >> config.cache echo "slibdir=/lib" >> configparms CC="gcc -m64 -mcpu=ultrasparc -mtune=ultrasparc" \ CXX="g++ -m64 -mcpu=ultrasparc -mtune=ultrasparc" \ ../%{name}-%{version}%{sub_version}/configure \ --prefix=/usr --disable-profile --enable-add-ons \ --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc \ --libdir=/usr/lib \ --cache-file=config.cache %endif %ifarch ppc ../%{name}-%{version}%{sub_version}/configure --prefix=/usr \ --disable-profile --enable-add-ons --enable-kernel=2.6.0 \ --libexecdir=/usr/lib/glibc %endif make %install cd glibc-build rm -rf $RPM_BUILD_ROOT make install_root=$RPM_BUILD_ROOT install make install_root=$RPM_BUILD_ROOT localedata/install-locales %clean rm -Rf $RPM_BUILD_ROOT %files %defattr(-,root,root) / %changelog * Sat Jul 05 2008 Jonathan Norman 2.8-20080630-1 - Updated to latest glibc snapshot from Redhat. - Updated config commands to latest CLFS - Added sub_version variable - Added patch to fix math error * Tue Jun 24 2008 Jonathan Norman 2.7-3.2 - Given up on the idea of seperate RPMs for glibc and locales. - Made it back into one RPM. * Sun Jun 22 2008 Jonathan Norman 2.7-3.1 - Added a sed that makes sure that ldconfig is compiled with glibc - Fixed some of the listed files * Sat Jun 21 2008 Jonathan Norman 2.7-3 - Removed libidn from the x86 build - Removed libidn from sources - Changed SPARC64 to pure 64 config - Added cache file to SPARC64 - Changed i686 to x86 - Made locales a seperate RPM - Build against linux 2.5.25.7 kernel headers