Use %lang() in regular builds.
This commit is contained in:
parent
ac6a9cd3ba
commit
f0f06660d5
10
firefox.spec
10
firefox.spec
@ -99,7 +99,7 @@ ExcludeArch: s390x
|
|||||||
Summary: Mozilla Firefox Web browser
|
Summary: Mozilla Firefox Web browser
|
||||||
Name: firefox
|
Name: firefox
|
||||||
Version: 67.0
|
Version: 67.0
|
||||||
Release: 2%{?pre_tag}%{?dist}
|
Release: 3%{?pre_tag}%{?dist}
|
||||||
URL: https://www.mozilla.org/firefox/
|
URL: https://www.mozilla.org/firefox/
|
||||||
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
||||||
Source0: https://archive.mozilla.org/pub/firefox/releases/%{version}%{?pre_version}/source/firefox-%{version}%{?pre_version}.source.tar.xz
|
Source0: https://archive.mozilla.org/pub/firefox/releases/%{version}%{?pre_version}/source/firefox-%{version}%{?pre_version}.source.tar.xz
|
||||||
@ -745,8 +745,11 @@ for langpack in `ls firefox-langpacks/*.xpi`; do
|
|||||||
|
|
||||||
%{__install} -m 644 ${extensionID}.xpi %{buildroot}%{langpackdir}
|
%{__install} -m 644 ${extensionID}.xpi %{buildroot}%{langpackdir}
|
||||||
language=`echo $language | sed -e 's/-/_/g'`
|
language=`echo $language | sed -e 's/-/_/g'`
|
||||||
#echo "%%lang($language) %{langpackdir}/${extensionID}.xpi" >> %{name}.lang
|
%if 0%{?flatpak}
|
||||||
echo "%{langpackdir}/${extensionID}.xpi" >> %{name}.lang
|
echo "%{langpackdir}/${extensionID}.xpi" >> %{name}.lang
|
||||||
|
%else
|
||||||
|
echo "%%lang($language) %{langpackdir}/${extensionID}.xpi" >> %{name}.lang
|
||||||
|
%endif
|
||||||
done
|
done
|
||||||
%{__rm} -rf firefox-langpacks
|
%{__rm} -rf firefox-langpacks
|
||||||
|
|
||||||
@ -931,6 +934,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 17 2019 Martin Stransky <stransky@redhat.com> - 67.0-3
|
||||||
|
- Use %lang() in regular builds.
|
||||||
|
|
||||||
* Thu May 16 2019 Jan Horak <jhorak@redhat.com> - 67.0-2
|
* Thu May 16 2019 Jan Horak <jhorak@redhat.com> - 67.0-2
|
||||||
- Removed %lang() prefix from langpacks file list due to flatpak
|
- Removed %lang() prefix from langpacks file list due to flatpak
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user