Fix flatpak build

Installation path macros must be used when referencing installed file
paths.
This commit is contained in:
Yaakov Selkowitz 2023-10-31 10:12:55 -04:00
parent b2648c3949
commit 820314c6b5

View File

@ -44,10 +44,10 @@ make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
for file in $RPM_BUILD_ROOT/usr/bin/*; do chrpath -d $file || true; done
for file in $RPM_BUILD_ROOT%{_bindir}/*; do chrpath -d $file || true; done
(cd example && make clean && rm -rf .deps && rm Makefile)
rm $RPM_BUILD_ROOT/usr/bin/libotf-config
rm $RPM_BUILD_ROOT%{_bindir}/libotf-config
%ldconfig_scriptlets