Fix warnings from requires filtering

Avoid using %{name} in %{mozappdir} definition as it's expanded
separately for each subpackage when doing requires filtering, which then
leads to expanding it as /usr/lib64/firefox, /usr/lib64/firefox-x11,
/usr/lib64/firefox-wayland etc, which is incorrect.

Just spell out "firefox" instead of "%{name}" to avoid this.

find: ‘/builddir/build/BUILDROOT/firefox-85.0-8.npgo.fc33.x86_64/usr/lib64/firefox-x11’: No such file or directory
This commit is contained in:
Kalev Lember 2021-02-01 12:23:49 +01:00
parent 70bb7dede6
commit 7e3bd66d74

View File

@ -141,8 +141,8 @@ ExcludeArch: armv7hl
%global nss_build_version %{nss_version}
%endif
%global mozappdir %{_libdir}/%{name}
%global mozappdirdev %{_libdir}/%{name}-devel-%{version}
%global mozappdir %{_libdir}/firefox
%global mozappdirdev %{_libdir}/firefox-devel-%{version}
%global langpackdir %{mozappdir}/langpacks
%global tarballdir firefox-%{version}