diff options
Diffstat (limited to 'packaging/qemu-accel-armv7l.spec')
-rw-r--r-- | packaging/qemu-accel-armv7l.spec | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec index 08a0f9d..e31cc5c 100644 --- a/packaging/qemu-accel-armv7l.spec +++ b/packaging/qemu-accel-armv7l.spec @@ -26,6 +26,10 @@ %define target_arch %{target_cpu}-tizen-linux-gnu%{?target_abi} %define libdir %{_prefix}/lib%{?aarch64:64} +%if "%{?cross}" == "mipsel" +%define mips 1 +%endif + # default path in qemu %define our_path /emul @@ -102,7 +106,7 @@ fi for executable in $LD \ %{_bindir}/bash \ - %{_bindir}/{rpm,rpm2cpio,rpmdb,rpmkeys,rpmqpack,rpmbuild,rpmsign,rpmspec} \ + %{_bindir}/{rpm,rpm2cpio%{!?mipsel:,rpmdb},rpmkeys,rpmqpack,rpmbuild,rpmsign,rpmspec} \ %{_libdir}/rpm-plugins/exec.so \ %{_libdir}/{libdb-4.8.so,libdb_cxx-4.8.so} \ %{_bindir}/{tar,gzip,bzip2,xz,xzdec} \ @@ -262,6 +266,12 @@ done mv %{buildroot}%{our_path}%{_bindir}/%{target_arch}-gcov %{buildroot}%{our_path}%{_bindir}/gcov ln -s gcc %{buildroot}%{our_path}/%{_bindir}/cc +%{?mipsel: + echo "#!/bin/bash" > %{buildroot}%{our_path}/%{_bindir}/rpmdb + echo "exit 0" >> %{buildroot}%{our_path}/%{_bindir}/rpmdb + chmod 755 %{buildroot}%{our_path}/%{_bindir}/rpmdb +} + # rpmbuild when generating 'requires' tag for gobject-introspection binaries # selects (64-bit) suffix for libs based on ${HOSTTYPE} bash variable # so we replace x86_64 to armv7l to avoid bogus dependencies |