update specs for 9.1

This commit is contained in:
2020-06-01 16:11:06 -04:00
parent 2abf2270d6
commit a232f5138b
84 changed files with 1676 additions and 1236 deletions

View File

@@ -1,21 +1,20 @@
# %%global _default_patch_fuzz 2
%define GCC_INCDIR GCC_INCDIR=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include
#TARBALL: http://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.xz
#MD5SUM: e6c279d5b2f0736f740216f152acf974;SOURCES/glibc-2.29.tar.xz
#TARBALL: http://www.linuxfromscratch.org/patches/lfs/8.4/glibc-2.29-fhs-1.patch
#MD5SUM: 9a5997c3452909b1769918c759eff8a2;SOURCES/glibc-2.29-fhs-1.patch
%define GCC_INCDIR GCC_INCDIR=/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include
#TARBALL: http://ftp.gnu.org/gnu/glibc/glibc-2.31.tar.xz
#MD5SUM: 78a720f17412f3c3282be5a6f3363ec6;SOURCES/glibc-2.31.tar.xz
#TARBALL: http://www.linuxfromscratch.org/patches/lfs/9.1/glibc-2.29-fhs-1.patch
#MD5SUM: 9a5997c3452909b1769918c759eff8a2;SOURCES/glibc-2.31-fhs-1.patch
#-----------------------------------------------------------------------------
Summary: Main C library
Name: glibc
Version: 2.29
Version: 2.31
Release: 1
License: GPLv2
URL: http://www.gnu.org/software/libc
Group: LFS/Base
Vendor: Elizabeth
Source0: http://ftp.gnu.org/gnu/glibc/%{name}-%{version}.tar.xz
Source1: locale-gen
Patch0: glibc-%{version}-fhs-1.patch
Patch0: glibc-%{version}-fhs-1.patch
Requires: filesystem
%description
This library provides the basic routines for allocating memory,
@@ -29,12 +28,13 @@ and so on.
mkdir -v build
%build
cd build
CC='gcc -isystem %{GCC_INCDIR} -isystem /usr/include' \
../configure --prefix=%{_prefix} \
--disable-werror \
--enable-kernel=3.2 \
--enable-stack-protector=strong \
libc_cv_slibdir=/lib
CC="gcc -ffile-prefix-map=/tools=/usr" \
../configure --prefix=%{_prefix} \
--disable-werror \
--enable-kernel=3.2 \
--enable-stack-protector=strong \
--with-headers=/usr/include \
libc_cv_slibdir=/lib
make PARALLELMFLAGS=" %{_smp_mflags} "
# make %{_smp_mflags}
%install
@@ -87,7 +87,7 @@ EOF
#-----------------------------------------------------------------------------
install -vdm 755 %{buildroot}/sbin
install -vdm 755 %{buildroot}/usr/lib/locale
cp %{_sourcedir}/locale-gen %{buildroot}/sbin/locale-gen
cp %{SOURCE1} %{buildroot}/sbin/locale-gen
chmod 755 %{buildroot}/sbin/locale-gen
cat > %{buildroot}/etc/locale-gen.conf << EOF
# Configuration file for locale-gen
@@ -146,16 +146,17 @@ EOF
# Create file list
rm %{buildroot}%{_infodir}/dir
find %{buildroot} -name '*.la' -delete
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.rpm
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.rpm
sed -i '/man\/man/d' filelist.rpm
sed -i '/\/usr\/share\/info/d' filelist.rpm
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
sed -i '/man\/man/d' filelist.list
sed -i '/\/usr\/share\/info/d' filelist.list
#-----------------------------------------------------------------------------
%files -f filelist.rpm
%files -f filelist.list
%defattr(-,root,root)
%{_infodir}/libc.*
#-----------------------------------------------------------------------------
%changelog
* Sun May 31 2020 Chris Cromer <chris@cromer.cl> 2.31-1
* Fri Mar 15 2019 baho-utot <baho-utot@columbus.rr.com> 2.29-1
* Mon Mar 19 2018 baho-utot <baho-utot@columbus.rr.com> 2.27-1
* Wed Dec 20 2017 baho-utot <baho-utot@columbus.rr.com> 2.26-1