Use /usr/share/java instead of _javadir macro 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 doing a
LibreOffice flatpak build.)