diff options
author | Christopher Aillon <caillon@fedoraproject.org> | 2008-04-08 03:56:54 +0000 |
---|---|---|
committer | Christopher Aillon <caillon@fedoraproject.org> | 2008-04-08 03:56:54 +0000 |
commit | fa79345e59f8518fe6134263c254feac218864b9 (patch) | |
tree | bff2ac0c5eb09e403ef978bfbaef857f119edea2 | |
parent | Translate the desktop file (diff) | |
download | librewolf-fedora-ff-fa79345e59f8518fe6134263c254feac218864b9.tar.gz librewolf-fedora-ff-fa79345e59f8518fe6134263c254feac218864b9.tar.bz2 librewolf-fedora-ff-fa79345e59f8518fe6134263c254feac218864b9.zip |
Mark langpacks with %lang
-rw-r--r-- | firefox.spec | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/firefox.spec b/firefox.spec index 8a68f5a..86048e8 100644 --- a/firefox.spec +++ b/firefox.spec @@ -206,6 +206,7 @@ ln -s %{default_bookmarks_file} $RPM_BUILD_ROOT/%{mozappdir}/defaults/profile/bo %if %{build_langpacks} # Install langpacks +touch ../%{name}.lang %{__mkdir_p} $RPM_BUILD_ROOT/%{mozappdir}/extensions %{__tar} xjf %{SOURCE2} for langpack in `ls firefox-langpacks/*.xpi`; do @@ -231,6 +232,10 @@ for langpack in `ls firefox-langpacks/*.xpi`; do zip -r -D $jarfile locale cd - %{__rm} -rf $tmpdir + + language=`echo $language | sed -e 's/-/_/g'` + extensiondir=`echo $extensiondir | sed -e "s,^$RPM_BUILD_ROOT,,"` + echo "%%lang($language) $extensiondir" >> ../%{name}.lang done %{__rm} -rf firefox-langpacks %endif # build_langpacks @@ -276,7 +281,7 @@ if [ $1 -eq 0 ]; then fi -%files +%files -f %{name}.lang %defattr(-,root,root,-) %{_bindir}/firefox %{_mandir}/man1/* @@ -297,7 +302,8 @@ fi %attr(644, root, root) %{mozappdir}/blocklist.xml %attr(644, root, root) %{mozappdir}/components/*.js %{mozappdir}/defaults -%{mozappdir}/extensions +%dir %{mozappdir}/extensions +%{mozappdir}/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd} %{mozappdir}/icons %{mozappdir}/searchplugins %{mozappdir}/firefox |