Without the flag build will only work for native build roots but not for OBS
cross-builds
Change-Id: If24f0675ea01e925792480944736ddc468a0ff55
Signed-off-by: Vyacheslav Barinov <v.barinov@samsung.com>
for pkg in gmp mpfr mpc isl cloog-isl; do
sh -c "rpmbuild ${RPMBUILD_CMDLINE} /home/abuild/rpmbuild/SOURCES/${pkg}.spec"
RPM_NAME=$(find '/home/abuild/rpmbuild/RPMS' -name "${pkg}-*.rpm" -not -name '*.src.rpm' -not -name '*debug*')
- sudo rpm -i ${RPM_NAME}
+ sudo rpm -i --ignorearch ${RPM_NAME}
find '/home/abuild/rpmbuild/' -name "${pkg}*.rpm" -delete
done
popd
for pkg in gmp mpfr mpc isl cloog-isl; do
sh -c "rpmbuild ${RPMBUILD_CMDLINE} /home/abuild/rpmbuild/SOURCES/${pkg}.spec"
RPM_NAME=$(find '/home/abuild/rpmbuild/RPMS' -name "${pkg}-*.rpm" -not -name '*.src.rpm' -not -name '*debug*')
- sudo rpm -i ${RPM_NAME}
+ sudo rpm -i --ignorearch ${RPM_NAME}
find '/home/abuild/rpmbuild/' -name "${pkg}*.rpm" -delete
done
popd
for pkg in gmp mpfr mpc isl cloog-isl; do
sh -c "rpmbuild ${RPMBUILD_CMDLINE} /home/abuild/rpmbuild/SOURCES/${pkg}.spec"
RPM_NAME=$(find '/home/abuild/rpmbuild/RPMS' -name "${pkg}-*.rpm" -not -name '*.src.rpm' -not -name '*debug*')
- sudo rpm -i ${RPM_NAME}
+ sudo rpm -i --ignorearch ${RPM_NAME}
find '/home/abuild/rpmbuild/' -name "${pkg}*.rpm" -delete
done
popd