Update dtc.spec to use %%{_prefix} insteaf of /usr:

dtc will fail to build when it's used as depedency for
flatpak builds which is using /app prefix.
This commit is contained in:
Jay W 2022-02-11 22:15:56 +00:00
parent 3c10fb6d94
commit 1144f8192c
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ sed -i 's/python2/python3/' pylibfdt/setup.py
%{make_build} EXTRA_CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"
%install
%{make_install} DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/usr \
%{make_install} DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/%{_prefix} \
LIBDIR=%{_libdir} BINDIR=%{_bindir} INCLUDEDIR=%{_includedir}
# we don't want ftdump and it conflicts with freetype-demos, so drop it (rhbz 797805)