https://bugzilla.redhat.com/show_bug.cgi?id=1809931
Bug ID: 1809931 Summary: %mvn_install does not honour %_prefix Product: Fedora Version: 31 Status: NEW Component: javapackages-tools Assignee: mizdebsk@redhat.com Reporter: sbergman@redhat.com QA Contact: extras-qa@fedoraproject.org CC: java-sig-commits@lists.fedoraproject.org, mat.booth@redhat.com, mizdebsk@redhat.com, msrb@redhat.com, sochotni@redhat.com Target Milestone: --- Classification: Fedora
Description of problem:
I discovered this when trying to do a flatpak build of LibreOffice following the instructions at https://docs.fedoraproject.org/en-US/flatpak/. One component that needs to be rebuilt with %_prefix set to /app (instead of the usual /usr) is bsh, which uses %mvn_install (see https://src.fedoraproject.org/rpms/bsh/blob/f31/f/bsh.spec).
However, the spec file line
%mvn_install -J javadoc
there apparently creates %{buildroot}/usr/share/java/bsh.jar (and records that in .mfiles) rather than %{buildroot}/app/share/java/bsh.jar, even if %_prefix is /app.
Version-Release number of selected component (if applicable):
$ rpm -qf /usr/lib/rpm/macros.d/macros.fjava javapackages-local-5.3.0-6.fc31.noarch