summaryrefslogtreecommitdiff
path: root/firefox.spec
diff options
context:
space:
mode:
authorChristopher Aillon <caillon@redhat.com>2011-04-16 09:04:49 -0700
committerChristopher Aillon <caillon@redhat.com>2011-04-16 09:04:49 -0700
commit37171eecd44e0d660900f249fdd63e0ff722f15c (patch)
treee88addb5cdf8dc4c14cc90ef18feb215548bf1c7 /firefox.spec
parentMove %preun before the %post scriptlets (diff)
downloadlibrewolf-fedora-ff-37171eecd44e0d660900f249fdd63e0ff722f15c.tar.gz
librewolf-fedora-ff-37171eecd44e0d660900f249fdd63e0ff722f15c.tar.bz2
librewolf-fedora-ff-37171eecd44e0d660900f249fdd63e0ff722f15c.zip
Simplify the icon install code
Diffstat (limited to 'firefox.spec')
-rw-r--r--firefox.spec25
1 files changed, 5 insertions, 20 deletions
diff --git a/firefox.spec b/firefox.spec
index cd0e074..b570041 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -235,26 +235,11 @@ XULRUNNER_DIR=`pkg-config --variable=libdir libxul | %{__sed} -e "s,%{_libdir},,
%{__rm} -f $RPM_BUILD_ROOT/%{mozappdir}/firefox-config
-%{__cp} other-licenses/branding/%{name}/default16.png \
- $RPM_BUILD_ROOT/%{mozappdir}/icons/
-%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps
-%{__cp} other-licenses/branding/%{name}/default16.png \
- $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/firefox.png
-%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/22x22/apps
-%{__cp} other-licenses/branding/%{name}/default22.png \
- $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/22x22/apps/firefox.png
-%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps
-%{__cp} other-licenses/branding/%{name}/default24.png \
- $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps/firefox.png
-%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
-%{__cp} other-licenses/branding/%{name}/default32.png \
- $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/firefox.png
-%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
-%{__cp} other-licenses/branding/%{name}/default48.png \
- $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/firefox.png
-%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps
-%{__cp} other-licenses/branding/%{name}/default256.png \
- $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/256x256/apps/firefox.png
+for s in 16 22 24 32 48 256; do
+ %{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps
+ %{__cp} other-licenses/branding/%{name}/default${s}.png \
+ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/firefox.png
+done
echo > ../%{name}.lang
%if %{build_langpacks}
bgstack15