Patch29: %{name}-pax_dl-execstack.patch
Patch30: %{name}-large_collate_tables.patch
URL: http://www.gnu.org/software/libc/
-BuildRequires: audit-libs-devel
+%{?with_selinux:BuildRequires: audit-libs-devel}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: binutils >= 2:2.15.90.0.3
+%{!?with_cross:BuildRequires: dietlibc-static}
BuildRequires: gcc >= 5:3.2
-BuildRequires: gcc < 5:4.0
+BuildRequires: gcc < 5:4.1
%ifarch ppc ppc64 sparc sparcv9 sparc64
%if %{with nptl} || %{with __thread}
BuildRequires: gcc >= 5:3.4
BuildRequires: rpmbuild(macros) >= 1.213
BuildRequires: sed >= 4.0.5
BuildRequires: texinfo
-BuildRequires: dietlibc-static
AutoReq: false
PreReq: basesystem
Requires: glibc-misc = %{epoch}:%{version}-%{release}
%package misc
Summary: Utilities and data used by glibc
Summary(pl): Narzêdzia i dane u¿ywane przez glibc
-Group: Development/Libraries
+Group: Applications/System
AutoReq: false
PreReq: %{name} = %{epoch}:%{version}-%{release}
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: %{name}-headers = %{epoch}:%{version}-%{release}
Requires: %{name}-devel-utils = %{epoch}:%{version}-%{release}
-Requires: %{name}-devel-doc = %{epoch}:%{version}-%{release}
Provides: %{name}-devel(%{_target_cpu}) = %{epoch}:%{version}-%{release}
Obsoletes: libiconv-devel
%package headers
Summary: Header files for development using standard C libraries
Summary(pl): Pliki nag³ówkowe do tworzenia programów przy u¿yciu standardowych bibliotek C
-Group: Development/Libraries
+Group: Development/Building
Provides: %{name}-headers(%{_target_cpu}) = %{epoch}:%{version}-%{release}
%ifarch %{x8664}
# If both -m32 and -m64 is to be supported on AMD64, x86_64 package
Obsoletes: %{name}-headers(pentium3)
Obsoletes: %{name}-headers(pentium4)
%endif
+%ifarch ppc64
+Obsoletes: %{name}-headers(ppc)
+%endif
+%ifarch s390x
+Obsoletes: %{name}-headers(s390)
+%endif
+%ifarch sparc64
+Obsoletes: %{name}-headers(sparc)
+%endif
%{!?with_kernelheaders:Requires: linux-libc-headers >= %{llh_version}}
%description headers
Obsoletes: %{name}-devel-utils(pentium3)
Obsoletes: %{name}-devel-utils(pentium4)
%endif
+%ifarch ppc64
+Obsoletes: %{name}-devel-utils(ppc)
+%endif
+%ifarch s390x
+Obsoletes: %{name}-devel-utils(s390)
+%endif
+%ifarch sparc64
+Obsoletes: %{name}-devel-utils(sparc)
+%endif
%description devel-utils
The glibc-devel-utils package contains utilities necessary for
Obsoletes: %{name}-devel-doc(pentium3)
Obsoletes: %{name}-devel-doc(pentium4)
%endif
+%ifarch ppc64
+Obsoletes: %{name}-devel-doc(ppc)
+%endif
+%ifarch s390x
+Obsoletes: %{name}-devel-doc(s390)
+%endif
+%ifarch sparc64
+Obsoletes: %{name}-devel-doc(sparc)
+%endif
%description devel-doc
The glibc-devel-doc package contains info and manual pages necessary
done
%endif
+%if %{without cross}
# compiling static using diet vs glibc saves 400k
diet -Os %{__cc} %{SOURCE9} %{rpmcflags} -static -o postshell
diet -Os %{__cc} %{SOURCE8} %{rpmcflags} -static -o glibc-postinst
+%endif
%install
rm -rf $RPM_BUILD_ROOT
install elf/sofini.os $RPM_BUILD_ROOT%{_libdir}/sofini.o
cd ..
+%if %{without cross}
install postshell $RPM_BUILD_ROOT/sbin
install glibc-postinst $RPM_BUILD_ROOT/sbin
+%endif
%if %{with dual}
env LANGUAGE=C LC_ALL=C \
# XXX: to be added when become supported by glibc
# as (atk, gail)
# az_IR (gtk+)
-# dv, kok, ps, sw (iso-codes)
+# dv, kok, ps (iso-codes)
# my (gaim)
# tk, ug, yo (used by GNOME)
#
en_AU en_CA en_US eo es_AR es_MX es_NI et eu fa fo fy ga gez gu gv he hi \
hsb hy ia id is it_CH iu ka kk kl kn ku kw ky leet lg li lo lt lv mi mk \
ml mn mr ms mt nds ne nl_BE nn nso oc om or pa pt rm ro ru rw sa se sid \
- sl so sq sr sr@Latn sr@ije ss syr ta te tg th ti tig tl tlh tt uk ur uz \
- ve vi wa wal xh yi zu ; do
+ sl so sq sr sr@Latn sr@ije ss syr sw ta te tg th ti tig tl tlh tt uk ur \
+ uz ve vi wa wal xh yi zu ; do
if [ ! -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES ]; then
install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
lang=`echo $i | sed -e 's/_.*//'`
# don't run iconvconfig in %%postun -n iconv because iconvconfig doesn't exist
# when %%postun is run
+%if %{without cross}
%ifarch %{x8664} ppc64 s390x sparc64
%post -n %{name}64 -p /sbin/postshell
%else
%endif
-/bin/cp -f /etc/ld.so.conf /etc/ld.so.conf.rpmsave
-/bin/sed -i -e '1iinclude ld.so.conf.d/*.conf' /etc/ld.so.conf
+%endif
%post memusage -p /sbin/ldconfig
%postun memusage -p /sbin/ldconfig
%endif
%defattr(644,root,root,755)
%doc README NEWS FAQ BUGS
+%if %{without cross}
%attr(755,root,root) /sbin/postshell
%attr(755,root,root) /sbin/glibc-postinst
+%endif
%attr(755,root,root) /sbin/ldconfig
# ld* and libc.so.6 SONAME symlinks must be in package because of
# chicken-egg problem (postshell is dynamically linked with libc);