Mark %{_javadir}/%{name} as %dir in %file-section.