Use /usr/share/java instead of %{_javadir} for build dependencies
(See <https://pagure.io/packaging-committee/issue/848> "Clarify the use of path
macros with respect to build dependencies". This caused an error when trying to
build a LibreOffice Flatpak.)