diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-04-17 11:56:52 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-04-17 11:56:52 +0000 |
commit | af5726aed8a0c87d7f29570641cf0acb6a92f918 (patch) | |
tree | df3deb887a3165732f9e3604605a8ce62ad50bb3 | |
parent | e220c524c93b053a1dea504a2d18288ff8f32b9a (diff) | |
download | glibc-af5726aed8a0c87d7f29570641cf0acb6a92f918.tar glibc-af5726aed8a0c87d7f29570641cf0acb6a92f918.tar.gz glibc-af5726aed8a0c87d7f29570641cf0acb6a92f918.tar.bz2 glibc-af5726aed8a0c87d7f29570641cf0acb6a92f918.zip |
2.5.90-21 fixes
-rw-r--r-- | fedora/glibc.spec.in | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/fedora/glibc.spec.in b/fedora/glibc.spec.in index fcd12f4c9c..23f8e73093 100644 --- a/fedora/glibc.spec.in +++ b/fedora/glibc.spec.in @@ -1046,9 +1046,9 @@ rm -f $RPM_BUILD_ROOT%{_prefix}/include/rpcsvc/rquota.[hx] # Hardlink identical locale files together %ifnarch %{auxarches} gcc -O2 -o build-%{nptl_target_cpu}-linuxnptl/hardlink fedora/hardlink.c -rm ${RPM_BUILD_ROOT}${_prefix}/lib/locale/locale-archive || : olddir=`pwd` -pushd ${RPM_BUILD_ROOT}${_prefix}/lib/locale +pushd ${RPM_BUILD_ROOT}%{_prefix}/lib/locale +rm locale-archive || : # Intentionally we do not pass --alias-file=, aliases will be added # by build-locale-archive. $olddir/build-%{nptl_target_cpu}-linuxnptl/elf/ld.so \ @@ -1057,6 +1057,7 @@ $olddir/build-%{nptl_target_cpu}-linuxnptl/elf/ld.so \ --prefix ${RPM_BUILD_ROOT} --add-to-archive \ *_* rm -rf *_* +mv locale-archive{,.tmpl} popd #build-%{nptl_target_cpu}-linuxnptl/hardlink -vc $RPM_BUILD_ROOT%{_prefix}/lib/locale %endif @@ -1090,7 +1091,7 @@ SHARE_LANG='s|.*/share/locale/\([^/_]\+\).*/LC_MESSAGES/.*\.mo|%lang(\1) &|' LIB_LANG='s|.*/lib/locale/\([^/_]\+\)|%lang(\1) &|' # rpm does not handle %lang() tagged files hardlinked together accross # languages very well, temporarily disable -# LIB_LANG='' +LIB_LANG='' sed -e "s|$RPM_BUILD_ROOT||" -e "$LIB_LANG" -e "$SHARE_LANG" < rpm.filelist.in | grep -v '/etc/\(localtime\|nsswitch.conf\|ld.so.conf\|ld.so.cache\|default\)' | \ grep -v '/%{_lib}/lib\(pcprofile\|memusage\).so' | \ @@ -1132,7 +1133,7 @@ grep -v '%{_prefix}/%{_lib}/lib.*\.a' < rpm.filelist.full | grep -v 'nscd' > rpm.filelist grep '%{_prefix}/bin' < rpm.filelist >> common.filelist -grep '%{_prefix}/lib/locale' < rpm.filelist | grep -v /locale-archive.tmpl >> common.filelist +#grep '%{_prefix}/lib/locale' < rpm.filelist | grep -v /locale-archive.tmpl >> common.filelist grep '%{_prefix}/libexec/pt_chown' < rpm.filelist >> common.filelist grep '%{_prefix}/sbin/[^gi]' < rpm.filelist >> common.filelist grep '%{_prefix}/share' < rpm.filelist \ @@ -1392,7 +1393,9 @@ touch $RPM_BUILD_ROOT/var/{db,run}/nscd/{passwd,group,hosts,services} touch $RPM_BUILD_ROOT/var/run/nscd/{socket,nscd.pid} %endif +%ifnarch %{auxarches} touch $RPM_BUILD_ROOT/%{_prefix}/lib/locale/locale-archive +%endif %post -p /usr/sbin/glibc_post_upgrade.%{_target_cpu} @@ -1502,6 +1505,7 @@ rm -f *.filelist* %ifnarch %{auxarches} %files -f common.filelist common %defattr(-,root,root) +%dir %{_prefix}/lib/locale %attr(0644,root,root) %config(missingok) %{_prefix}/lib/locale/locale-archive.tmpl %attr(0644,root,root) %verify(not md5 size mtime mode) %ghost %config(missingok,noreplace) %{_prefix}/lib/locale/locale-archive %dir %attr(755,root,root) /etc/default |