D: [iurt_root_command] chroot [WARNING] Deprecated %add_maven_depmap macro is used. Please use %mvn_artifact and %mvn_install instead. Installing /home/pterjan/rpmbuild/SRPMS/gnu-getopt-1.0.14-13.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.jQqvqg + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf gnu-getopt-1.0.14 + /usr/bin/mkdir -p gnu-getopt-1.0.14 + cd gnu-getopt-1.0.14 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/java-getopt-1.0.14.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv gnu/getopt/buildx.xml build.xml + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.7dyh8K + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd gnu-getopt-1.0.14 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + ant jar javadoc /usr/lib/jvm/java-1.8.0-openjdk/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.7dyh8K (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.7dyh8K (%build) I: [iurt_root_command] ERROR: chroot