- Use sed instead of perl for text replacement (bug #225655).
- Use install-info scriptlets from the guidelines (bug #225655). - Resolves: rhbz#225655 rhbz#225655
This commit is contained in:
parent
a3e6ff9d21
commit
a6d595fd2f
@ -1,7 +1,7 @@
|
|||||||
Summary: The GNU core utilities: a set of tools commonly used in shell scripts
|
Summary: The GNU core utilities: a set of tools commonly used in shell scripts
|
||||||
Name: coreutils
|
Name: coreutils
|
||||||
Version: 6.7
|
Version: 6.7
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Url: http://www.gnu.org/software/coreutils/
|
Url: http://www.gnu.org/software/coreutils/
|
||||||
@ -106,7 +106,7 @@ the old GNU fileutils, sh-utils, and textutils packages.
|
|||||||
|
|
||||||
# Don't run basic-1 test, since it breaks when run in the background
|
# Don't run basic-1 test, since it breaks when run in the background
|
||||||
# (bug #102033).
|
# (bug #102033).
|
||||||
perl -pi -e 's/basic-1//g' tests/stty/Makefile*
|
sed -i -e 's/basic-1//g' tests/stty/Makefile*
|
||||||
|
|
||||||
chmod a+x tests/sort/sort-mb-tests
|
chmod a+x tests/sort/sort-mb-tests
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ make all %{?_smp_mflags} \
|
|||||||
su_LDFLAGS="-pie %{?!nopam:-lpam -lpam_misc}"
|
su_LDFLAGS="-pie %{?!nopam:-lpam -lpam_misc}"
|
||||||
|
|
||||||
# XXX docs should say /var/run/[uw]tmp not /etc/[uw]tmp
|
# XXX docs should say /var/run/[uw]tmp not /etc/[uw]tmp
|
||||||
perl -pi -e 's,/etc/utmp,/var/run/utmp,g;s,/etc/wtmp,/var/run/wtmp,g' doc/coreutils.texi
|
sed -i -e 's,/etc/utmp,/var/run/utmp,g;s,/etc/wtmp,/var/run/wtmp,g' doc/coreutils.texi
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
@ -200,25 +200,20 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
# We must deinstall these info files since they're merged in
|
# We must deinstall these info files since they're merged in
|
||||||
# coreutils.info. else their postun'll be run too late
|
# coreutils.info. else their postun'll be run too late
|
||||||
# and install-info will fail badly because of duplicates
|
# and install-info will fail badly because of duplicates
|
||||||
for file in sh-utils.info textutils.info fileutils.info; do
|
for file in sh-utils textutils fileutils; do
|
||||||
if [ -f %{_infodir}/$file.bz2 ]; then
|
/sbin/install-info --delete %{_infodir}/$file.info* --dir=%{_infodir}/dir &> /dev/null || :
|
||||||
/sbin/install-info %{_infodir}/$file.bz2 --dir=%{_infodir}/dir --remove &> /dev/null || :
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
[ -f %{_infodir}/%{name}.info.gz ] && \
|
/sbin/install-info --delete %{_infodir}/%{name}.info* %{_infodir}/dir || :
|
||||||
/sbin/install-info --delete %{_infodir}/%{name}.info* \
|
|
||||||
%{_infodir}/dir || :
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/bin/grep -v '(sh-utils)\|(fileutils)\|(textutils)' %{_infodir}/dir > \
|
/bin/grep -v '(sh-utils)\|(fileutils)\|(textutils)' %{_infodir}/dir > \
|
||||||
%{_infodir}/dir.rpmmodify || exit 0
|
%{_infodir}/dir.rpmmodify || exit 0
|
||||||
/bin/mv -f %{_infodir}/dir.rpmmodify %{_infodir}/dir
|
/bin/mv -f %{_infodir}/dir.rpmmodify %{_infodir}/dir
|
||||||
[ -f %{_infodir}/%{name}.info* ] && \
|
/sbin/install-info %{_infodir}/%{name}.info* %{_infodir}/dir || :
|
||||||
/sbin/install-info %{_infodir}/%{name}.info* %{_infodir}/dir || :
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -269,6 +264,10 @@ fi
|
|||||||
/sbin/runuser
|
/sbin/runuser
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Feb 22 2007 Tim Waugh <twaugh@redhat.com> 6.7-9
|
||||||
|
- Use sed instead of perl for text replacement (bug #225655).
|
||||||
|
- Use install-info scriptlets from the guidelines (bug #225655).
|
||||||
|
|
||||||
* Tue Feb 20 2007 Tim Waugh <twaugh@redhat.com> 6.7-8
|
* Tue Feb 20 2007 Tim Waugh <twaugh@redhat.com> 6.7-8
|
||||||
- Don't mark profile scripts as config files (bug #225655).
|
- Don't mark profile scripts as config files (bug #225655).
|
||||||
- Avoid extra directory separators (bug #225655).
|
- Avoid extra directory separators (bug #225655).
|
||||||
|
Loading…
Reference in New Issue
Block a user