- Fix build for F8, don't leave references to RPM_BUILD_ROOT in the
encodings output. (#251058)
This commit is contained in:
parent
dd3f090902
commit
ce13ac6e59
@ -401,10 +401,12 @@ done
|
||||
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173875
|
||||
# https://bugs.freedesktop.org/show_bug.cgi?id=6028
|
||||
{
|
||||
ENCODINGSDIR=%{_datadir}/X11/fonts/encodings
|
||||
pushd "$RPM_BUILD_ROOT${ENCODINGSDIR}" &> /dev/null
|
||||
mkfontscale -n -e "${ENCODINGSDIR}" -e "${ENCODINGSDIR}/large"
|
||||
popd &> /dev/null
|
||||
ENCODINGSDIR=$RPM_BUILD_ROOT%{_datadir}/X11/fonts/encodings
|
||||
pushd "${ENCODINGSDIR}" &> /dev/null
|
||||
mkfontscale -n -e "${ENCODINGSDIR}" -e "${ENCODINGSDIR}/large"
|
||||
sed -i "s@$RPM_BUILD_ROOT@@" encodings.dir
|
||||
sed -i "s@$RPM_BUILD_ROOT@@" large/encodings.dir
|
||||
popd &> /dev/null
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user