Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37434043
en ru br
ALT Linux repositórios
S:2.38.0.23.0e1ef6779a-alt1
5.0: 2.9-alt5
4.1: 2.5.1-alt4.M41.2
4.0: 2.5-alt4.M40.2
3.0: 2.3.5-alt5

Outros repositórios

Group :: Sistema/Base
RPM: glibc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: glibc
Version: 2.9
Release: alt5
Serial: 6

Summary: The GNU libc libraries
# GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries.
# Things that are linked directly into dynamically linked programs
# and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional
# exception which allows linking it into any kind of programs or shared
# libraries without restrictions.
License: LGPLv2+, LGPLv2+ with exceptions, GPLv2+
Group: System/Base
Url: http://sourceware.org/glibc/
Packager: Dmitry V. Levin <ldv at altlinux.org>

%def_with optimization
%def_disable archopt
%def_enable langify
%def_with tls
%def_with __thread
%def_disable profile

%ifdef __buildreqs
%def_disable check
%else
%def_enable check
%endif #__buildreqs

# Build arch-optimized subpackage only?

%if_enabled archopt

%define _optlevel 3
%def_without locales
%def_without debug

%else #disabled archopt

%def_with locales

%if %defined __buildreqs
%def_without debug
%else
%def_with debug
%endif #__buildreqs

%endif #disabled archopt

%define enablekernel 2.6.9

%define basever 2.5.1

# http://git.altlinux.org/people/ldv/packages/?p=glibc.git

Source: glibc-%version-%release.tar

Obsoletes: libc-static, libc-devel, libc-profile, libc-headers,
Obsoletes: linuxthreads, gencat, ldconfig

%define libc_locales_list aa af am an ar as ast az be ber bg bn bo br bs byn ca crh cs csb cy da de dz el en es et eu fa fi fil fo fr fur fy ga gd gez gl gu gv ha he hi hne hr hsb ht hu hy id ig ik is it iu iw ja ka kk kl km kn ko ks ku kw ky lg li lo lt lv mai mg mi mk ml mn mr ms mt nb nds ne nl nn no nr nso oc om or pa pap pl pt ro ru rw sa sc sd se shs si sid sk sl so sq sr ss st sv ta te tg th ti tig tk tl tn tr ts tt ug uk ur uz ve vi wa wo xh yi yo zh zu
%define libc_locales %(for i in %libc_locales_list;do echo -n "locale-$i locales-$i ";done)
%define renamed_locales ru_RU.iso88595 ru_UA.koi8u uk_UA.koi8u

PreReq: %name-core = %serial:%version-%release
PreReq: %name-pthread = %serial:%version-%release
PreReq: %name-nss = %serial:%version-%release
PreReq: %name-locales = %serial:%version-%release
PreReq: %name-gconv-modules = %serial:%version-%release
PreReq: iconv = %serial:%version-%release
PreReq: %name-timezones = %serial:%version-%release
PreReq: %name-utils = %serial:%version-%release

# Required to hardlink identical locale files.

BuildPreReq: hardlink

# Due to AS_NEEDED and --hash-style=gnu.

BuildPreReq: binutils >= 1:2.17.50.0.3-alt1

# Due to enablekernel.

BuildPreReq: glibc-kernheaders >= %enablekernel

BuildPreReq: rpm-build >= 4.0.4-alt61

# This is required for building auxiliary programs.

BuildPreReq: libgd2-devel

%if_enabled check
# g++ and /proc are required for test suit.
BuildPreReq: gcc-c++ /proc
%endif #enabled check

%define _gconvdir %_libdir/gconv
%define __find_provides %_builddir/%name-%version-%release/alt/find-provides.sh
%define __find_requires %_builddir/%name-%version-%release/alt/find-requires.sh

%package preinstall
Summary: The GNU libc preinstall utilities
Group: System/Base
AutoReq: no
PreReq: filesystem

%package core
Summary: The GNU libc core libraries and utilities
Group: System/Libraries
AutoReq: no
PreReq: setup
PreReq: %name-preinstall >= %serial:%version-%release
Conflicts: %name < %serial:%version-%release
Conflicts: glibc-core-archopt < %serial:%version-%release
Conflicts: glibc-core-archopt > %serial:%version-%release
Provides: linuxthreads, ldconfig
Obsoletes: linuxthreads, ldconfig
# The dynamic linker supports DT_GNU_HASH
Provides: rtld(GNU_HASH)

%package pthread
Summary: The GNU libc pthread libraries
Group: System/Libraries
PreReq: %name-core = %serial:%version-%release
Conflicts: %name < %serial:%version-%release
%{expand:%%define lib_suffix %(test %_lib != lib64 && echo %%nil || echo '()(64bit)')}
# due to pthread_cancel_init() which calls __libc_dlopen ("libgcc_s.so.1")
Requires: libgcc_s.so.1%lib_suffix

%package nss
Summary: The GNU libc Name Service Switch subsystem
Group: System/Libraries
PreReq: %name-pthread = %serial:%version-%release
Conflicts: %name < %serial:%version-%release

%package locales
Summary: The GNU libc locales
Group: System/Internationalization
PreReq: %name-pthread = %serial:%version-%release
Provides: %name-locales-virtual = %serial:%version-%release
Provides: locale locales %libc_locales
Obsoletes: locale locales %libc_locales
Obsoletes: %name-locales-junior
Conflicts: %name < %serial:%version-%release

%package i18ndata
Summary: Files for building customized GNU libc locales
Group: System/Base
BuildArch: noarch
PreReq: %name-core = %serial:%version-%release
Obsoletes: %name-localedata
Provides: %name-localedata
Conflicts: %name < %serial:%version-%release
Conflicts: mutt < 1.3.22.1i

%package gconv-modules
Summary: The GNU libc charset conversion modules
Group: System/Base
PreReq: %name-pthread = %serial:%version-%release
Conflicts: %name < %serial:%version-%release
# hack
Provides: %(test %_lib = lib64 && s='()(64bit)' || s=; for n in CNS GB ISOIR165 JIS JISX0213 KSC; do echo -n "lib$n.so$s %_libdir/gconv/lib$n.so$s "; done)

%package -n iconv
Summary: The GNU libc charset conversion modules
Group: System/Base
PreReq: %name-gconv-modules = %serial:%version-%release
Conflicts: %name < %serial:%version-%release

%package timezones
Summary: The GNU libc timezones data
Group: System/Base
PreReq: %name-pthread = %serial:%version-%release
Conflicts: %name < %serial:%version-%release
Requires: tzdata

%package utils
Summary: The GNU libc misc utilities
Group: System/Base
PreReq: %name-pthread = %serial:%version-%release
Conflicts: %name < %serial:%version-%release
Requires: mktemp >= 1:1.3.1
Provides: gencat
Obsoletes: gencat

%package devel
Summary: Include and object files required for C development
Group: Development/C
Requires: %name = %serial:%version-%release, glibc-kernheaders >= 2.6.9, kernel-headers-common >= 1.1.4-alt1
#Requires: %name-doc = %serial:%version-%release
%ifarch %ix86
# Earlier gcc's had atexit reference in crtendS.o, which does not
# work with this glibc where atexit is in libc_nonshared.a
Conflicts: gcc < 0:2.96-ipl9mdk
%endif
Obsoletes: libc-headers, libc-devel, linuxthreads-devel

%package devel-static
Summary: Static libraries for C development
Group: Development/C
Requires: %name-devel = %serial:%version-%release
Obsoletes: libc-static

%package doc
Summary: Documentation for C development
Group: Development/Other
BuildArch: noarch
PreReq: %name-pthread = %serial:%version-%release
Conflicts: texinfo < 3.11

%package profile
Summary: The GNU libc libraries, including support for gprof profiling
Group: Development/C
Requires: %name = %serial:%version-%release
Obsoletes: libc-profile

%package debug
Summary: The GNU libc utilities for software debugging
Group: Development/C
Requires: %name-devel = %serial:%version-%release
Obsoletes: libc-debug

%package core-debug
Summary: The GNU libc core libraries with debugging information
Group: Development/C
AutoProv: yes, nolib
Requires: %name-pthread = %serial:%version-%release

%package nss-debug
Summary: The GNU libc Name Service Switch libraries with debugging information
Group: Development/C
AutoProv: yes, nolib
Requires: %name-nss = %serial:%version-%release, %name-core-debug = %serial:%version-%release

%package devel-debug
Summary: Static standard C libraries with debugging information
Group: Development/C
AutoProv: yes, nolib
Requires: %name-devel = %serial:%version-%release, %name-core-debug = %serial:%version-%release, %name-nss-debug = %serial:%version-%release

%package -n nscd
Summary: A Name Service Caching Daemon (nscd)
Group: System/Servers
Conflicts: kernel < 2.2.0
PreReq: shadow-utils
PreReq: %name-pthread = %serial:%version-%release

%package core-%_target_cpu
Summary: The GNU libc core libraries built with optimization for %_target_cpu processor
Group: System/Libraries
PreReq: %name-pthread = %serial:%version-%release
Provides: %name-core-archopt = %serial:%version-%release

%description
The GNU C library defines all of the library functions that are specified
by the ISO C standard, as well as additional features specific to POSIX
and other derivatives of the Unix operating system, and extensions
specific to the GNU system.

The GNU libc is a set of standard libraries which are used by multiple
programs on the system.  In order to save disk space and memory, as well
as to make upgrading easier, common system code is kept in one place
and shared between programs.

%description preinstall
This package contains glibc preinstall utility.

%description core
This package contains most essential GNU libc libraries and files,
including dynamic linker and its configurator, standard C library and
the standard math library.  Without these files a GNU/Linux system will
not function.

%description pthread
This package contains glibc libpthread and related shared libraries.

%description locales
This package contains GNU libc locales, files that tell your system
about your language, names of days and months, charset, and other
language/territory/charset specific things.

%description i18ndata
This package contains source files required for building locales.  Locales
are files, that tell your system about your language, names of days and
months, alphabet and other language/territory/charset specific things.

%description gconv-modules
This package contains helper modules necessary to convert data between
various charsets.

%description -n iconv
This package contains program that can convert text files between
various charsets.

%description timezones
This package contains files, utilities and databases for operating
timezones data in the system.

%description utils
This package contains miscellaneous non-essential %name utilities that
didn't fit in specific packages.

%description nss
NSS is a Name Service Switch subsystem.  The basic idea is to put the
implementation of the different services offered to access the databases
in separate modules.

%description devel
This package contains the header and object files necessary for developing
programs which use the standard C libraries (which are used by nearly all
programs).  If you are developing programs which will use the standard
C libraries, your system needs to have these standard header and object
files available in order to create the executables.

%description devel-static
This package contains the GNU libc static libraries necessary for
developing statically linked programs which use the standard C libraries.

%description doc
This package contains documentation distributed with GNU libc.

%description profile
This package includes the GNU libc libraries and support for profiling
using the gprof program.  Profiling is analyzing a program's functions
to see how much CPU time they use and determining which functions are
calling other functions during execution.  To use gprof to profile a
program, your program needs to use the GNU libc libraries from this
package instead of the standard GNU libc libraries.

%description debug
This package contains utilities for software debugging,
including:
+ memusage
+ memusagestat
+ pcprofiledump
+ xtrace

%description core-debug
This package contains GNU libc core shared libraries with debugging
information.  You need this if you want to step into C library routines
during debugging.  To use these libraries, you need to set
LD_LIBRARY_PATH=%_libdir/debug
in your environment before starting debugger.  If you want to see glibc
source files during debugging, you should
rpm -i glibc-%version-%release.src.rpm
rpm -bp %%_specdir/glibc.spec

%description nss-debug
This package contains GNU libc NSS libraries with debugging information.
You need this if you want to step into C library routines during
debugging.  To use these libraries, you need to set
LD_LIBRARY_PATH=%_libdir/debug
in your environment before starting debugger.  If you want to see glibc
source files during debugging, you should
rpm -i glibc-%version-%release.src.rpm
rpm -bp %%_specdir/glibc.spec

%description devel-debug
This package contains GNU libc static libraries with debugging
information.  You need this only if you want to step into C library
routines during debugging programs statically linked against one or
more of the standard C libraries.  To use this debugging information,
you need to link binaries with -L%_libdir/debug compiler option.
If you want to see glibc source files during debugging, you should
rpm -i glibc-%version-%release.src.rpm
rpm -bp %%_specdir/glibc.spec

%description -n nscd
Nscd caches name service lookups and can dramatically improve performance
with NIS+, and may help with DNS as well.  Note that you can't use nscd
with 2.0 kernels because of bugs in the kernel-side thread support.
Unfortunately, nscd happens to hit these bugs particularly hard.

%description core-%_target_cpu
This package contains most essential GNU libc libraries, optimized for
run on %_target_cpu processor.

%prep
%setup -q -n %name-%version-%release
wordsize=`printf '#include <bits/wordsize.h>\n__WORDSIZE\n' |cpp -P -xc - |grep '^[1-9]'`
sed -i "s/ at BITS at /$wordsize/" include/stubs-biarch.h

find -type f -name configure -print0 |
xargs -r0 touch --
touch locale/programs/*-kw.h

################################################################################

%build
%define buildtarget build-%_target

%if_without optimization
%define _optlevel %nil
%define optflags_optimization -O%_optlevel %optflags_debug
%if %undefined parallelmflags
%define parallelmflags %nil
%endif # parallelmflags
%else #with optimization

%if %undefined parallelmflags
%define parallelmflags -s
%endif # parallelmflags

%add_optflags -DNDEBUG=1 -U_FORTIFY_SOURCE -fno-stack-protector -fasynchronous-unwind-tables

%endif #without optimization

%define _configure_script ../configure
%define _configure_target  --host=%_target_platform --build=%_target_platform

# workaround

unset LD_PRELOAD LD_ASSUME_KERNEL ||:

export CC=%__cc CXX=%__cxx ac_cv_lib_audit_audit_log_avc=no

%ifarch %arm
# The configure fails some tests on ARM EABI due undefined reference to `__aeabi_unwind_cpp_pr0'
# Workaround for it.
export libc_cv_asm_set_directive=yes
export libc_cv_Bgroup=yes
export libc_cv_gcc_builtin_expect=yes
export libc_cv_initfini_array=yes
export libc_cv_ld_no_whole_archive=yes
%endif

AddOns=`echo */configure |sed -e 's!/configure!!g;s!\(linuxthreads\|nptl\|rtkaio\)\( \|$\)!!g;s! \+$!!;s! !,!g;s!^!,!;/^,\*$/d'`
Ports=
%ifarch %arm
Ports=',ports'
%endif

Pthreads=nptl

rm -rf %buildtarget
mkdir %buildtarget
pushd %buildtarget

%if_enabled check
if [ ! -f /proc/self/maps ]; then
echo '/proc/self/maps not found'
exit 1
fi
%endif #enabled check

%configure \
%{?_disable_profile:%_disable_profile} \
--without-cvs \
--enable-bind-now \
--enable-add-ons=$Pthreads$AddOns$Ports \
%{subst_with tls} \
%{subst_with __thread} \
--enable-kernel=%enablekernel \
#

%make_build -r PARALLELMFLAGS=%parallelmflags

%if_enabled check
# Increase timeouts
perl -pi -e 's/alarm \(TIMEOUT\)/alarm (TIMEOUT * 15 * '$NPROCS' < 600 ? TIMEOUT * 15 * '$NPROCS' : 600)/' \
../test-skeleton.c
%make_build -r PARALLELMFLAGS=%parallelmflags -k check LDFLAGS=-Wl,--no-as-needed ||:
%endif #enabled check

popd #%buildtarget

make -C helpers enablekernel=%enablekernel CC=%__cc path_link=../%buildtarget

%if_with debug
rm -rf %buildtarget-debug
mkdir %buildtarget-debug
pushd %buildtarget-debug

export CFLAGS="%optflags %optflags_debug"
%configure \
--disable-profile \
--enable-bind-now \
--without-cvs \
--without-gd \
--enable-add-ons=$Pthreads$AddOns$Ports \
%{subst_with tls} \
%{subst_with __thread} \
--enable-kernel=%enablekernel \
#

%make_build -r PARALLELMFLAGS=%parallelmflags

popd #%buildtarget-debug
%endif #with debug

################################################################################

%install
[ -n "$NPROCS" ] || NPROCS=%__nprocs
%make_install -j$NPROCS install install_root=%buildroot -C %buildtarget

mkdir -p %buildroot%_cachedir/ldconfig
> %buildroot%_cachedir/ldconfig/aux-cache

# Relocate shared libraries used by catchsegv, memusage and xtrace.

mv %buildroot/%_lib/lib{memusage,pcprofile,SegFault}.so \
%buildroot%_libdir/ ||:

%if_with debug
%make_install install install_root=%buildroot/debug -C %buildtarget-debug

# NPTL <bits/stdio-lock.h> is not usable outside of glibc,

# so include the generic one (RH#162634)
cp -a bits/stdio-lock.h %buildroot%_includedir/bits/stdio-lock.h
# And <bits/libc-lock.h> needs sanitizing as well.
cp -a fedora/libc-lock.h %buildroot%_includedir/bits/libc-lock.h

rm %buildroot/debug/%_lib/lib{memusage,pcprofile,SegFault}.so

ls %buildroot/debug/%_lib/*.so* |
egrep -v '/libnss_([^f]|files\.so\.1)' |
sed -e "s|%buildroot/debug/%_lib|%_libdir/debug|g" >core-debug.files

ls %buildroot/debug/%_lib/*.so* |
fgrep nss |
fgrep -v /libnss_files-%basever.so |
fgrep -v /libnss_files.so.2 |
sed -e "s|%buildroot/debug/%_lib|%_libdir/debug|g" >nss-debug.files

ls %buildroot/debug%_libdir/lib*.so |
sed -e "s|%buildroot/debug%_libdir|%_libdir/debug|g" >>devel-debug.files

mkdir -p %buildroot%_libdir/debug
mv %buildroot/debug/%_lib/* %buildroot/debug%_libdir/*.{so,a,o}* \
%buildroot%_libdir/debug/
rm -rf %buildroot/debug
for f in %buildroot%_libdir/debug/*.so; do
if [ -L "$f" ]; then
t=`readlink "$f"`
t=${t##*/}
ln -snf "$t" "$f"
fi
done
%endif #with debug

%if_enabled archopt

mkdir -p %buildroot/%_lib/%_target_cpu
mv %buildroot/%_lib/*.so* %buildroot/%_lib/%_target_cpu/

%else #disabled archopt

# Install upgrade programs.

make -C helpers install

%if_with locales
pushd %buildtarget
%make_build install-locales -C ../localedata \
install_root=%buildroot \
objdir=`pwd`
popd

# Hardlink identical locale files together.

hardlink -vc %buildroot%_libdir/locale

# Convert these locale directories into symlinks.

for n in %renamed_locales; do
t=%buildroot%_libdir/locale/"${n%%.*}"
rm -rf "$t"
ln -s "$n" "$t"
done
%endif #with locales

ln -sf libbsd-compat.a %buildroot%_libdir/libbsd.a

install -pD -m755 alt/nscd.init %buildroot%_initdir/nscd
install -pD -m644 alt/nsswitch.conf %buildroot%_sysconfdir/nsswitch.conf
install -pm644 alt/nscd.conf %buildroot%_sysconfdir/
mkdir -pm711 %buildroot/var/{lib,run}/nscd
mksock %buildroot/var/run/nscd/socket

# Install nss.conf

install -pm644 nis/nss %buildroot%_sysconfdir/nss.conf

# Install gai.conf

install -pm644 posix/gai.conf %buildroot%_sysconfdir/

# Install bindresvport.blacklist

install -pm644 alt/bindresvport.blacklist %buildroot%_sysconfdir/

# Include ld.so.conf and ld.so.conf.d

mkdir -p %buildroot%_sysconfdir/ld.so.conf.d
echo 'include /etc/ld.so.conf.d/*.conf' >%buildroot%_sysconfdir/ld.so.conf

# Include %%ghost ld.so.cache

install -pD -m644 /dev/null %buildroot%_sysconfdir/ld.so.cache

# Include gconv-modules.cache

install -pD -m644 /dev/null %buildroot%_gconvdir/gconv-modules.cache

# Replace /etc/localtime symlink with the file for our default timezone.

rm %buildroot%_sysconfdir/localtime
cp -p %buildroot%_datadir/zoneinfo/UTC \
%buildroot%_sysconfdir/localtime

# zoneinfo now lives in tzdata package.

rm -rf %buildroot%_datadir/zoneinfo

# Remove unpackaged files

rm %buildroot{%_infodir/dir,%_datadir/locale/locale.alias}

# The last bit: more documentation.

%define docdir %_docdir/%name-%version
rm -rf %buildroot%docdir
mkdir -p %buildroot%docdir
# BUGS removed from the list
cp -pL LICENSES README* alt/README* NEWS INSTALL FAQ NOTES PROJECTS \
hesiod/README.hesiod crypt/README.ufc-crypt ChangeLog ChangeLog.?? \
%buildroot%docdir/
cp -pL timezone/README %buildroot%docdir/README.timezone
find %buildroot%docdir/ -type f -size +8k -print0 |
xargs -r0 bzip2 -9

>devel.files
>devel-static.files
for f in `ls %buildroot%_libdir/lib*.a |
 grep -v '_p.a$' |
 sed -e "s|%buildroot||g"`; do
if [ -e "%buildroot${f%%.a}.so" ]; then
echo "$f" >>devel-static.files
else
echo "$f" >>devel.files
fi
done

%find_lang libc

%if_with locales
%if_enabled langify
(
cd %buildroot%_libdir/locale
for f in *; do
n=${f%%%% at *}
n=${n%%%%.*}
n=${n%%%%_*}
echo "%%lang($n) %%attr(-,root,root) %_libdir/locale/$f"
done
) >>libc.lang
%endif #enabled langify

echo '%%dir %_datadir/locale' >>libc.lang
for lang in $((cat alt/locales-add && cd %buildroot%_libdir/locale && ls |sed 's/[. at ].*//') |sort -u); do
for n in $lang ${lang%%%%_*}; do
mkdir -p "%buildroot%_datadir/locale/$n"/LC_{MESSAGES,TIME}
echo "%%lang($n) %%dir %_datadir/locale/$n"
echo "%%lang($n) %%dir %_datadir/locale/$n/LC_MESSAGES"
echo "%%lang($n) %%dir %_datadir/locale/$n/LC_TIME"
done
done |sort -u >>libc.lang
%endif #with locales

%endif #enabled archopt

%if_without optimization

%set_strip_method none

%else #with optimization

# Strip ld and libpthread but keep some symbols required for debugging.

find %buildroot/lib -type f \( -name ld-\*.so -or -name libpthread-\*.so \) -print0 |
    xargs -r0 strip --strip-debug -R .comment --
%add_strip_skiplist */ld-*.so* */libpthread-*.so

%endif #without optimization

# due to libpthread.

%set_verify_elf_method unresolved=relaxed

%if_enabled archopt
%post core-%_target_cpu -p /sbin/glibc_post_upgrade
%postun core-%_target_cpu
[ $1 -gt 0 ] || /sbin/glibc_post_upgrade
%endif #enabled archopt

%pre core -p /sbin/glibc_preinstall
%post core -p /sbin/glibc_post_upgrade

%post -n iconv
%_sbindir/iconvconfig

%pre locales
for n in %renamed_locales; do
f="%_libdir/locale/${n%%.*}"
if [ -d "$f" -a ! -L "$f" ]; then
rm -rf "$f"
touch "$f.RPMLOCK"
fi
done

%post locales
for n in %renamed_locales; do
d="%_libdir/locale/$n"
f="%_libdir/locale/${n%%.*}"
if [ -f "$f.RPMLOCK" -a -d "$f" -a ! -d "$d.RPMSAVE" ]; then
mv "$d" "$d.RPMSAVE"
rm -f "$f.RPMLOCK"
fi
done

%triggerpostun locales -- %name-locales, %name < 6:2.2.4-alt3
for n in %renamed_locales; do
d="%_libdir/locale/$n"
if [ -d "$d.RPMSAVE" -a ! -d "$d" ]; then
mv "$d.RPMSAVE" "$d"
fi
done

%post doc
%install_info libc.info

%pre devel
# This used to be a link and it is causing nightmares now.
if [ -L %_includedir/scsi ]; then
rm -f %_includedir/scsi
fi

%preun doc
%uninstall_info libc.info

%pre -n nscd
/usr/sbin/useradd -M -o -r -u 28 -d / -s /dev/null -c "NSCD Daemon" nscd ||:

%post -n nscd
%post_service nscd

%preun -n nscd
%preun_service nscd

%triggerpostun core -p /sbin/glibc_fix_nsswitch -- %name < 6:2.2.4-alt3, %name-nss < 6:2.2.4-alt4

%if_enabled archopt

%files core-%_target_cpu
/%_lib/%_target_cpu/ld*
/%_lib/%_target_cpu/lib[acdmpru]*

%else #disabled archopt

%files

%files doc
%_infodir/*.info*
%docdir

%files preinstall
/sbin/glibc_preinstall

%files core
/%_lib/lib*.so*
%exclude /%_lib/lib*thread*.so*
%exclude /%_lib/libanl*.so*
%exclude /%_lib/librt*.so*
/%_lib/ld*.so.*
%attr(755,root,root)/%_lib/ld*.so
%exclude /%_lib/libnss_[a-eg-z]*
/sbin/glibc_post_upgrade
/sbin/glibc_fix_*
/sbin/*ldconfig
%ghost %_sysconfdir/ld.so.cache
%dir %_sysconfdir/ld.so.conf.d
%dir %attr(700,root,root) %_cachedir/ldconfig
%ghost %verify(not md5 size mtime) %attr(600,root,root) %config(noreplace,missingok) %_cachedir/ldconfig/aux-cache
%config(noreplace) %_sysconfdir/bindresvport.blacklist
%config(noreplace) %_sysconfdir/gai.conf
%config(noreplace) %_sysconfdir/ld.so.conf
%config(noreplace) %_sysconfdir/localtime
%config(noreplace) %_sysconfdir/nss.conf
%config(noreplace) %_sysconfdir/nsswitch.conf
%config(noreplace) %_sysconfdir/rpc

%files pthread
/%_lib/lib*thread*.so*
/%_lib/libanl*.so*
/%_lib/librt*.so*

%files nss
/%_lib/libnss_*.so*
%exclude /%_lib/libnss_f*

%if_with locales
%files locales -f libc.lang
%_bindir/locale*
%dir %_libdir/locale
%if_disabled langify
%_libdir/locale/*
%endif #disabled langify
%endif #with locales

%files gconv-modules
%dir %_gconvdir
%_gconvdir/*.so
%_gconvdir/gconv-modules
%ghost %verify(not md5 size mtime) %config(noreplace,missingok) %_gconvdir/gconv-modules.cache

%files -n iconv
%_bindir/iconv*
%_sbindir/iconv*

%files timezones
%_bindir/tzselect
%_sbindir/zdump
%_sbindir/zic

%files utils
/sbin/sln
%_sbindir/rpcinfo
%_bindir/*
%exclude %_bindir/iconv*
%exclude %_bindir/locale*
%exclude %_bindir/memusage*
%exclude %_bindir/pcprofiledump
%exclude %_bindir/tzselect
%exclude %_bindir/xtrace
%_libexecdir/getconf

%files devel -f devel.files
%_libdir/lib*.so
%exclude %_libdir/libmemusage.so
%exclude %_libdir/libpcprofile.so
%_libdir/*.o
%_includedir/*

%files devel-static -f devel-static.files

%if_enabled profile
%files profile
%_libdir/lib*_p.a
%endif #enabled profile

%files debug
%_bindir/memusage*
%_bindir/pcprofiledump
%_bindir/xtrace
%_libdir/libmemusage.so
%_libdir/libpcprofile.so

%files -n nscd
%config(noreplace) %_sysconfdir/nscd.conf
%_initdir/nscd
%_sbindir/nscd*
%attr(711,root,root) %dir /var/run/nscd
%attr(1770,root,nscd) %dir /var/lib/nscd
%attr(666,root,root) %ghost /var/run/nscd/socket

%files i18ndata
%_datadir/i18n

%if_with debug
%files core-debug -f core-debug.files
%files nss-debug -f nss-debug.files
%files devel-debug -f devel-debug.files
%_libdir/debug/*.o
%_libdir/debug/*.a
%endif #with debug

%endif #enabled archopt

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009