All pastes #911007 Raw Edit

Mine

public text v1 · immutable
·published 2008-02-20 12:13 UTC
rendered paste body
Summary: GNU C library
Name: glibc
Version: 2.7
Release: 1
License: GPL
Group: System/Base
Source0: ftp://ftp.gnu.org/gnu/glibc/%{name}-%{version}.tar.bz2
Source1: ftp://ftp.gnu.org/gnu/glibc/%{name}-libidn-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-buildroot

%description
GNU library for C code

%prep
%setup -q -c
tar -xf %{SOURCE1}
mv %{name}-libidn-%{version} %{name}-%{version}/libidn

%build
mkdir glibc-build
cd glibc-build
CFLAGS="-pipe -O2 -march=i686" \
CXXFLAGS="-pipe -O2 -march=i686" \
../%{name}-%{version}/configure --prefix=/usr \
--disable-profile --enable-add-ons \
--enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc
make -j3

%install
cd glibc-build
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc

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)
/*