2 # spec file for package glibc
4 # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
6 # All modifications and additions to the file contributed by third parties
7 # remain the property of their copyright owners, unless otherwise agreed
8 # upon. The license for this file, and modifications and additions to the
9 # file, is the same license as for the pristine package itself (unless the
10 # license for the pristine package is not an Open Source License, in which
11 # case the license is the MIT License). An "Open Source License" is a
12 # license that conforms to the Open Source Definition (Version 1.9)
13 # published by the Open Source Initiative.
16 %define glibc_run_tests 1
19 # Enable this when testing on device to:
20 # 1. Enable macro to turn on testsuite building ('glibc_run_tests 1')
21 # 2. Keep 'build-dir/' folder in build stage as we do not want to rebuild all
22 # glibc again on device after invoking rpmbuild --short-circuit -bc ...
23 # 3. Skip configure and make commands and go directly to 'make check'
24 %if 0%{?run_tests_on_device}
25 %define glibc_run_tests 1
26 %define glibc_keep_build_dir 1
27 %define glibc_skip_configure 1
28 %define glibc_skip_make 1
31 # Exit right after 'make ..' step to keep all object files produced by glibc build
32 %if 0%{?exit_on_make_finish}
33 %define glibc_exit_on_make_finish 1
36 %if 0%{?dump_configure}
37 %define glibc_dump_configure 1
40 # This will avoid building some parts of glibc
41 %define asan_arch x86_64 armv7l aarch64
42 %bcond_with fast_build
44 Summary: Standard Shared Libraries (from the GNU C Library)
45 License: LGPL-2.1+ and LGPL-2.1+-with-GCC-exception and GPL-2.0+
48 BuildRequires: makeinfo
50 BuildRequires: gcc-c++
51 BuildRequires: gettext-tools
52 BuildRequires: libstdc++-devel
54 BuildRequires: python3-base
57 #BuildRequires: python
58 BuildRequires: glibc-devel-static
61 %if 0%{?glibc_dump_configure}
62 BuildRequires: configure-dumper
64 #BuildRequires: pkgconfig(systemd)
65 %define _filter_GLIBC_PRIVATE 1
66 %if %_target_cpu == "i686"
67 # For i686 let's only build what's different from i586, so
68 # no need to build documentation
69 %define build_profile 1
70 %define build_locales 0
73 %if %{with fast_build}
74 %define build_profile 0
75 %define build_locales 0
79 %define build_profile 1
80 %define build_locales 0
85 %define disable_assert 0
86 %define enable_stackguard_randomization 1
87 %define multiarcharches %{ix86} x86_64
90 %define enablekernel 2.6.16
92 %define enablekernel 2.6.16
94 Conflicts: kernel < %{enablekernel}
95 %ifarch armv7l armv7hl
96 # The old runtime linker link gets not provided by rpm find.provides, but it exists
97 Provides: ld-linux.so.3
98 Provides: ld-linux.so.3(GLIBC_2.4)
102 %define glibc_major_version %{version}
103 %define git_id 0a8262a1b2
105 Url: http://www.gnu.org/software/libc/libc.html
106 Source: glibc-%{version}.tar.xz
107 Source5: nsswitch.conf
108 Source7: bindresvport.blacklist
109 Source8: glibc_post_upgrade.c
110 Source9: glibc.rpmlintrc
111 Source10: baselibs.conf
113 Source1001: glibc.manifest
115 Requires(pre): filesystem
116 Provides: rtld(GNU_HASH)
119 The GNU C Library provides the most important standard libraries used
120 by nearly all programs: the standard C library, the standard math
121 library, and the POSIX thread library. A system is not functional
122 without these libraries.
125 Summary: Info Files for the GNU C Library
131 This package contains the documentation for the GNU C library stored as
132 info files. Due to a lack of resources, this documentation is not
133 complete and is partially out of date.
136 Summary: HTML Documentation for the GNU C Library
142 This package contains the HTML documentation for the GNU C library. Due
143 to a lack of resources, this documentation is not complete and is
144 partially out of date.
147 Summary: Database Sources for 'locale'
148 License: GPL-2.0+ and MIT
149 Group: Base/Libraries
152 %description i18ndata
153 This package contains the data needed to build the locale data files to
154 use the internationalization features of the GNU libc. It is normally
155 not necessary to install this packages, the data files are already
159 Summary: Locale Data for Localized Programs
160 License: GPL-2.0+ and MIT and LGPL-2.1+
161 Requires(post): /usr/bin/cat
162 Requires: glibc = %{version}
164 Locale data for the internationalisation features of the GNU C library.
167 Summary: Libc Profiling and Debugging Versions
168 License: LGPL-2.1+ and LGPL-2.1+-with-GCC-exception and GPL-2.0+
169 Group: Base/Utilities
170 Requires: glibc = %{version}
173 This package contains special versions of the GNU C library which are
174 necessary for profiling and debugging.
177 Summary: Include Files and Libraries Mandatory for Development
178 License: BSD-3-Clause and LGPL-2.1+ and LGPL-2.1+-with-GCC-exception and GPL-2.0+
179 Requires: glibc = %{version}
180 Requires: linux-kernel-headers
183 These libraries are needed to develop programs which use the standard C
186 %package devel-static
187 Summary: C library static libraries for -static linking
188 License: BSD-3-Clause and LGPL-2.1+ and LGPL-2.1+-with-GCC-exception and GPL-2.0+
189 Requires: %{name}-devel = %{version}
190 # Provide Fedora name for package to make packaging easier
191 Provides: %{name}-static = %version
193 %description devel-static
194 The glibc-devel-static package contains the C library static libraries
195 for -static linking. You don't need these, unless you link statically,
196 which is highly discouraged.
199 Summary: Development utilities from GNU C library
201 Requires: glibc = %{version}
203 %description devel-utils
204 The glibc-devel-utils package contains various binaries which can be helpful during program
207 If you are unsure if you need this, don't install this package.
210 Summary: Extra binaries from GNU C Library
212 Requires: glibc = %{version}
215 The glibc-extra package contains some extra binaries for glibc that
216 are not essential but recommend to use.
218 makedb: A program to create a database for nss
221 Summary: Obsolete Shared Libraries from the GNU C Library
223 Requires: glibc = %{version}
225 %description obsolete
226 This package provides some old libraries from the GNU C Library which
227 are no longer supported. Additional it provides a compatibility library
228 for old binaries linked against glibc 2.0.
230 Install this package if you need one of this libraries to get old
231 binaries working, but since this libraries are not supported and there
232 is no gurantee that they work for you, you should try to get newer
233 versions of your software.
236 Summary: Testsuite results
238 Group: Development/Languages
239 %description testresults
240 Results from running the glibc testsuites.
245 Summary: glibc with ASan instrumentation
246 License: LGPL-2.1+ and LGPL-2.1+-with-GCC-exception and GPL-2.0+
247 Requires: glibc = %{version}
250 This package provides glibc with ASan instrumentation
253 ln -s --force /%{_lib}/libc-2.24-asan.so /%{_lib}/libc.so.6
256 ln -s --force /%{_lib}/libc-2.24.so /%{_lib}/libc.so.6
261 %{?glibc_dump_configure:
262 %package configure-dump
263 Summary: GNU Glibc configure dump
265 Group: Development/Languages
266 %description configure-dump
267 This package contains dump of configure variables of Glibc
271 %setup -n glibc-%{version} -q
275 %{?asan:%gcc_unforce_options}
276 if [ -x /bin/uname.bin ]; then
284 # We do not want configure to figure out the system its building one
285 # to support a common ground and thus set build and host to the
288 %define target %{_target_cpu}-tizen-linux-gnueabi
290 %define target %{_target_cpu}-tizen-linux
292 # Don't use as-needed, it breaks glibc assumptions
293 # Before enabling it, run the testsuite and verify that it
295 export LD_AS_NEEDED=0
296 # Adjust glibc version.h
297 echo "#define CONFHOST \"%{target}\"" >> version.h
298 echo "#define GITID \"%{git_id}\"" >> version.h
300 # Default CFLAGS and Compiler
302 BuildFlags=$(echo %{optflags} | sed -e "s/-Wp,-D_FORTIFY_SOURCE=2//g" | sed -e "s/-ffast-math//" | sed -e "s/atom/i686/g" | sed -e "s/-fexceptions//" | sed -e "s/-fno-omit-frame-pointer//" )
303 BuildFlags="$BuildFlags -O2 -g -U_FORTIFY_SOURCE"
304 BuildFlags="$(echo $BuildFlags | sed -e 's#-ffortify=[0-9]*##')"
305 BuildFlags="$(echo $BuildFlags | sed -e 's#-fstack-protector-strong##')"
306 BuildFlags="$(echo $BuildFlags | sed -e 's#-fstack-protector##')"
307 BuildFlags="$(echo $BuildFlags | sed -e 's/-Wa,-mimplicit-it=thumb//g' | sed -e 's/-mthumb//g')"
308 # Turn off all -Wformat enable flags as there are glibc tests that explicitly
309 # append -Wno-format and with enabled Wformat options that produced warnings
310 # that turns into errors. Remove -Wformat=1|2 or -Wformat-..-arg
311 BuildFlags="$(echo $BuildFlags | sed -re 's/-Wformat((=[1-2])|((-\w+)+))?(\s|$)//g')"
314 # Support DA build with armv8 cpu in 32bit mode: prevent Werror on sqrt function
315 (echo ${BuildFlags} | grep '\-march=armv8') && BuildFlags="${BuildFlags} -Wno-error=unused-variable"
322 BuildFlags="$BuildFlags -g"
325 # Glibc must have both functions' implementations
326 BuildFlags="$BuildFlags -U_LARGEFILE_SOURCE -U_LARGEFILE64_SOURCE -U_FILE_OFFSET_BITS"
328 %if %{disable_assert}
329 BuildFlags="$BuildFlags -DNDEBUG=1"
338 # fails to build otherwise - need to recheck and fix
339 %define enable_stackguard_randomization 0
342 configure_and_build_glibc() {
343 local dirname="$1"; shift
344 local cflags="$1"; shift
345 local addons="$1"; shift
346 %{!?glibc_keep_build_dir:
351 conf_cflags="$cflags -funwind-tables -fPIC"
352 %{?asan: conf_cflags="$conf_cflags -DASAN_INIT_FIRST"}
353 %{?glibc_dump_configure:patch_configure.pl ..}
354 profile="--disable-profile"
356 if [ "$dirname" = "base" ] ; then
357 profile="--enable-profile"
360 %{!?glibc_skip_configure:
361 CFLAGS="$conf_cflags" BUILD_CFLAGS="$conf_cflags" \
362 CC="$BuildCC" CXX="$BuildCCplus" ../configure \
363 --prefix=%{_prefix} \
364 --libexecdir=%{_libexecdir} --infodir=%{_infodir} \
365 --enable-add-ons=$addons \
368 %if %{enable_stackguard_randomization}
369 --enable-stackguard-randomization \
371 --build=%{target} --host=%{target} \
372 %ifnarch %{multiarcharches}
373 --disable-multi-arch \
375 %ifarch %{ix86} x86_64
378 --enable-kernel=%{enablekernel} \
379 --enable-bind-now --enable-obsolete-rpc \
381 --disable-experimental-malloc \
382 libc_cv_cc_pie_default=yes
386 %{?glibc_dump_configure:
387 dump_configure.pl .. . \
389 --project-version %{version} \
390 --out_db glibc-%{version}-%{release}-%_project-%_repository.db
392 %{?glibc_exit_on_make_finish:
399 configure_flags="--prefix=/usr --without-cvs --without-selinux --enable-stackguard-randomization --enable-obsolete-rpc --disable-mathvec"
401 configure_flags="$configure_flags --disable-sanity-checks"
404 HERE=%{_builddir}/%{name}-%{version}
407 ASAN_BUILD=$HERE/asan-build
412 # Glibc must have both functions' implementations
413 CPPFLAGS="-U_LARGEFILE_SOURCE -U_LARGEFILE64_SOURCE -U_FILE_OFFSET_BITS"
416 #chmod +x $HERE/asan-glibc-gcc-wrapper.py
417 #build static wrapper, because we don't want asan to intercept allocators
418 g++ -o gcc-wrapper gcc-wrapper.cc -O3 -funroll-loops -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-exceptions -static
423 # CC=$HERE/asan-glibc-gcc-wrapper.py $GLIBC/configure $configure_flags
425 CC=$HERE/gcc-wrapper $GLIBC/configure $configure_flags
427 # Quick build - builds only libraries, but does not create symlinks.
428 make -r -j $J -C $GLIBC objdir=`pwd` subdir_lib
429 #make -r -j $J -C $GLIBC objdir=`pwd` install_root=$ASAN_INST install-lib
436 configure_and_build_glibc base "$BuildFlags" "$add_ons"
444 # Build html documentation
451 # Build glibc_post_upgrade binary
453 $BuildCC -static %{optflags} -Os $RPM_SOURCE_DIR/glibc_post_upgrade.c -o glibc_post_upgrade \
454 -Lcc-base -Bcc-base/csu \
455 '-DREMOVE_TLS_DIRS' '-DREMOVE_PPC_OPTIMIZE_POWER5' \
456 '-DLIBDIR="/%{_lib}"' '-DGCONV_MODULES_DIR="%{_libdir}/gconv"'
461 # #check sections could be redefined/disabled, so keep this inside #build
464 export LD_AS_NEEDED=0
465 (make %{?_smp_mflags} -C cc-base check || true) 2>&1 | tee check.log
469 #######################################################################
473 #######################################################################
476 # The testsuite will fail if asneeded is used
477 export LD_AS_NEEDED=0
478 # This has to pass on all platforms!
481 make %{?_smp_mflags} -C cc-base check-abi
483 #######################################################################
487 #######################################################################
490 # We don't want to strip the .symtab from our libraries in find-debuginfo.sh,
491 # certainly not from libpthread.so.* because it is used by libthread_db to find
492 # some non-exported symbols in order to detect if threading support
493 # should be enabled. These symbols are _not_ exported, and we can't easily
494 # export them retroactively without changing the ABI. So we have to
495 # continue to "export" them via .symtab, instead of .dynsym :-(
496 # But we also want to keep .symtab and .strtab of other libraries since some
497 # debugging tools currently require these sections directly inside the main
498 # files - specifically valgrind and PurifyPlus.
499 export STRIP_KEEP_SYMTAB=*.so*
501 # Make sure we will create the gconv-modules.cache
502 mkdir -p %{buildroot}%{_libdir}/gconv
503 touch %{buildroot}%{_libdir}/gconv/gconv-modules.cache
506 make %{?_smp_mflags} install_root=%{buildroot} install -C cc-base
508 %{?glibc_dump_configure:
509 install -D -m 0644 cc-base/glibc-%{version}-%{release}-%_project-%_repository.db %{buildroot}%{_datadir}/glibc-%{version}-%{release}-%_project-%_repository.db
512 install_optimized_variant() {
513 local dirname="$1"; shift
514 local subdir="$1"; shift
515 local subdir_up="$1"; shift
518 destdir=$RPM_BUILD_ROOT/%{_lib}/$subdir
520 # Don't run a complete make install, we know which libraries
522 for lib in libc math/libm nptl/libpthread rt/librt nptl_db/libthread_db
525 libbaseso=$(basename $RPM_BUILD_ROOT/%{_lib}/${libbase}-*.so)
526 # Only install if different from base lib
527 if cmp -s ${lib}.so ../cc-base/${lib}.so; then
528 ln -sf $subdir_up/$libbaseso $destdir/$libbaseso
530 cp -a ${lib}.so $destdir/$libbaseso
533 ln -sf $libbaseso $destdir/$(basename $RPM_BUILD_ROOT/%{_lib}/${libbase}.so.*)
541 # XXX Do not install locales in parallel!
543 # localedef creates hardlinks to other locales if possible
544 # this will not work if we generate them in parallel.
545 # thus we need to run fdupes on /usr/lib/locale/
546 # Still, on my system this is a speed advantage:
547 # non-parallel build for install-locales: 9:34mins
548 # parallel build with fdupes: 7:08mins
549 make %{?_smp_mflags} install_root=%{buildroot} localedata/install-locales
550 %fdupes %{buildroot}/usr/lib/locale
553 # Create file list for glibc-locale package
556 # Prepare obsolete/, used only on some architectures:
557 export RPM_BUILD_ROOT
559 mkdir -p %{buildroot}/%{_lib}/obsolete
562 # NPTL <bits/stdio-lock.h> is not usable outside of glibc, so include
563 # the generic one (RH#162634)
564 # cp -av bits/stdio-lock.h %{buildroot}%{_includedir}/bits/stdio-lock.h
569 install -m 0700 glibc_post_upgrade %{buildroot}%{_sbindir}
571 install -m 644 %{SOURCE7} %{buildroot}/etc
572 install -m 644 %{SOURCE5} %{buildroot}/etc
573 install -m 644 posix/gai.conf %{buildroot}/etc
575 mkdir -p %{buildroot}/etc/default
576 install -m 644 nis/nss %{buildroot}/etc/default/
578 mkdir -p %{buildroot}%{_includedir}/resolv
579 install -m 0644 resolv/mapv4v6addr.h %{buildroot}%{_includedir}/resolv/
580 install -m 0644 resolv/mapv4v6hostent.h %{buildroot}%{_includedir}/resolv/
583 mkdir -p %{buildroot}%{_datadir}/doc/glibc
584 cp -p cc-base/manual/libc/*.html %{buildroot}%{_datadir}/doc/glibc
591 cat > %{buildroot}/etc/ld.so.conf <<EOF
592 %if "%{_lib}" == "lib64"
596 include /etc/ld.so.conf.d/*.conf
597 # /lib64, /lib, /usr/lib64 and /usr/lib gets added
598 # automatically by ldconfig after parsing this file.
599 # So, they do not need to be listed.
601 # Add ldconfig cache directory for directory ownership
602 mkdir -p %{buildroot}/var/cache/ldconfig
603 # Empty the ld.so.cache:
604 rm -f %{buildroot}/etc/ld.so.cache
605 touch %{buildroot}/etc/ld.so.cache
607 # Don't look at ldd! We don't wish a /bin/sh requires
608 chmod 644 %{buildroot}%{_bindir}/ldd
610 # Remove timezone data, now coming in standalone package:
611 for i in sbin/sln usr/bin/tzselect usr/sbin/zic usr/sbin/zdump etc/localtime; do
612 rm -f %{buildroot}/$i
614 rm -rf %{buildroot}%{_datadir}/zoneinfo
617 # Provide compatibility link
618 ln -s ld-%{glibc_major_version}.so %{buildroot}/lib/ld-linux.so.3
621 # Move getconf to %{_libexecdir}/getconf/ to avoid cross device link
622 mv %{buildroot}%{_bindir}/getconf %{buildroot}%{_libexecdir}/getconf/getconf
623 ln -s %{_libexecdir}/getconf/getconf %{buildroot}%{_bindir}/getconf
625 #######################################################################
629 #######################################################################
633 HERE=%{_builddir}/%{name}-%{version}
635 ASAN_BUILD=$HERE/asan-build
636 cp $ASAN_BUILD/libc.so %{buildroot}/%{_lib}/libc-2.24-asan.so
642 cp --parents $(find cc-base -name "*tests.sum") testresults/
643 cp check.log testresults/
644 chmod 644 $(find testresults/ -type f)
647 %post -p %{_sbindir}/glibc_post_upgrade
649 %postun -p /sbin/ldconfig
652 for l in /usr/share/locale/locale.alias %{_libdir}/gconv/gconv-modules; do
653 [ -d "$l.d" ] || continue
654 echo "###X# The following is autogenerated from extra files in the .d directory:" >>"$l"
657 /usr/sbin/iconvconfig
660 %install_info --info-dir=%{_infodir} %{_infodir}/libc.info.gz
663 %install_info_delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz
666 %manifest %{name}.manifest
668 %defattr(-,root,root)
669 %license LICENSES COPYING COPYING.LIB
670 %config(noreplace) /etc/bindresvport.blacklist
671 %config /etc/ld.so.conf
672 %attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /etc/ld.so.cache
673 %config(noreplace) /etc/rpc
674 %verify(not md5 size mtime) %config(noreplace) /etc/nsswitch.conf
675 %verify(not md5 size mtime) %config(noreplace) /etc/gai.conf
676 %config(noreplace) /etc/default/nss
677 /%{_lib}/ld-%{glibc_major_version}.so
679 # Each architecture has a different name for the dynamic linker:
682 /%{_lib}/ld-linux-armhf.so.3
683 # Keep compatibility link
684 /%{_lib}/ld-linux.so.3
686 /%{_lib}/ld-linux.so.3
690 /%{_lib}/ld-linux-x86-64.so.2
693 /%{_lib}/ld-linux.so.2
696 /lib/ld-linux-aarch64.so.1
697 /%{_lib}/ld-linux-aarch64.so.1
700 /%{_lib}/libanl-%{glibc_major_version}.so
702 /%{_lib}/libc-%{glibc_major_version}.so
704 /%{_lib}/libcrypt-%{glibc_major_version}.so
705 /%{_lib}/libcrypt.so.1
706 /%{_lib}/libdl-%{glibc_major_version}.so
708 /%{_lib}/libm-%{glibc_major_version}.so
710 /%{_lib}/libnsl-%{glibc_major_version}.so
712 /%{_lib}/libnss_compat-%{glibc_major_version}.so
713 /%{_lib}/libnss_compat.so.2
714 /%{_lib}/libnss_db-%{glibc_major_version}.so
715 /%{_lib}/libnss_db.so.2
716 /%{_lib}/libnss_dns-%{glibc_major_version}.so
717 /%{_lib}/libnss_dns.so.2
718 /%{_lib}/libnss_files-%{glibc_major_version}.so
719 /%{_lib}/libnss_files.so.2
720 /%{_lib}/libnss_optfiles-%{glibc_major_version}.so
721 /%{_lib}/libnss_optfiles.so.2
722 /%{_lib}/libnss_hesiod-%{glibc_major_version}.so
723 /%{_lib}/libnss_hesiod.so.2
724 /%{_lib}/libpthread-%{glibc_major_version}.so
725 /%{_lib}/libpthread.so.0
726 /%{_lib}/libthread_db-1.0.so
727 /%{_lib}/libthread_db.so.1
728 /%{_lib}/libresolv-%{glibc_major_version}.so
729 /%{_lib}/libresolv.so.2
730 /%{_lib}/librt-%{glibc_major_version}.so
732 /%{_lib}/libutil-%{glibc_major_version}.so
733 /%{_lib}/libutil.so.1
734 %define optimized_libs() \
735 %dir %attr(0755,root,root) /%{_lib}/%1\
736 /%{_lib}/%1/libc-%{glibc_major_version}.so\
737 /%{_lib}/%1/libc.so.6*\
738 /%{_lib}/%1/libm-%{glibc_major_version}.so\
739 /%{_lib}/%1/libm.so.6*\
740 /%{_lib}/%1/libpthread-%{glibc_major_version}.so\
741 /%{_lib}/%1/libpthread.so.0\
742 /%{_lib}/%1/librt-%{glibc_major_version}.so\
743 /%{_lib}/%1/librt.so.1\
744 /%{_lib}/%1/libthread_db-1.0.so\
745 /%{_lib}/%1/libthread_db.so.1
747 %dir %attr(0700,root,root) /var/cache/ldconfig
753 %attr(755,root,root) %{_bindir}/ldd
754 %ifarch %ix86 sparc sparcv9
759 %dir %attr(0755,root,root) %{_libexecdir}/getconf
760 %{_libexecdir}/getconf/*
761 %{_sbindir}/glibc_post_upgrade
762 %{_sbindir}/iconvconfig
763 /%{_lib}/libBrokenLocale-%{glibc_major_version}.so
764 /%{_lib}/libBrokenLocale.so.1
769 %manifest %{name}.manifest
771 %defattr (755,root,root,755)
772 %dir /%{_lib}/obsolete/
773 #%dir /%{_lib}/obsolete/noversion
774 #/%{_lib}/obsolete/noversion/libNoVersion-%{glibc_major_version}.so
775 #/%{_lib}/obsolete/noversion/libNoVersion.so.1
778 %files locale -f libc.lang
779 %manifest %{name}.manifest
780 %license COPYING COPYING.LIB
781 %defattr(-,root,root)
782 %{_datadir}/locale/locale.alias
791 %manifest %{name}.manifest
792 /%{_lib}/libc-2.24-asan.so
797 %manifest %{name}.manifest
798 %defattr(-,root,root)
799 %license COPYING COPYING.LIB
805 # These static libraries are needed even for shared builds
806 %{_libdir}/libc_nonshared.a
808 %ifarch ppc ppc64 s390 s390x sparc sparcv8 sparcv9 sparcv9v
809 # This is not built on sparc64.
810 %{_libdir}/libnldbl_nonshared.a
812 %{_libdir}/libmcheck.a
813 %{_libdir}/librpcsvc.a
816 %manifest %{name}.manifest
817 %defattr(-,root,root)
818 %{_libdir}/libBrokenLocale.a
821 %{_libdir}/libcrypt.a
824 %{_libdir}/libpthread.a
825 %{_libdir}/libresolv.a
830 %manifest %{name}.manifest
831 %defattr(-,root,root)
832 %doc %{_infodir}/libc.info.gz
833 %doc %{_infodir}/libc.info-?.gz
834 %doc %{_infodir}/libc.info-??.gz
838 %manifest %{name}.manifest
839 %defattr(-,root,root)
840 %doc %{_prefix}/share/doc/glibc
844 %manifest %{name}.manifest
845 %defattr(-,root,root)
846 %{_prefix}/share/i18n
850 %manifest %{name}.manifest
851 %license COPYING COPYING.LIB
852 %defattr(-,root,root)
854 %{_libdir}/libBrokenLocale_p.a
855 %{_libdir}/libanl_p.a
857 %{_libdir}/libcrypt_p.a
858 %{_libdir}/libpthread_p.a
859 %{_libdir}/libresolv_p.a
861 %{_libdir}/librpcsvc_p.a
862 %{_libdir}/libutil_p.a
867 %manifest %{name}.manifest
868 %defattr(-,root,root)
869 /%{_lib}/libmemusage.so
870 /%{_lib}/libpcprofile.so
871 /%{_libdir}/libBrokenLocale.so
872 /%{_lib}/libSegFault.so
873 /%{_lib}/libthread_db-1.0.so
874 /%{_lib}/libthread_db.so.1
875 /%{_libdir}/libthread_db.so
876 %dir /%{_libdir}/audit
877 /%{_libdir}/audit/sotruss-lib.so
878 # These need gd-devel for building
879 # %%{_bindir}/memusage
880 # %%{_bindir}/memusagestat
882 %{_bindir}/pcprofiledump
890 %manifest %{name}.manifest
892 %defattr(-,root,root)
898 %defattr(-,root,root)
899 %doc testresults/check.log
903 %{?glibc_dump_configure:
904 %files configure-dump
905 %manifest glibc.manifest
906 %{_datadir}/glibc-%{version}-%{release}-%_project-%_repository.db