%define _enable_debug_packages %{nil} %define debug_package %{nil} %define ff_epoch 0 %define ff_ver 3.0.14 %define _mozillapath %{_libdir}/firefox-%{ff_ver} %define _mozillaextpath %{_mozillapath}/extensions Summary: KDEFF theme for Mozilla Firefox Name: firefox-theme-kde4ff Version: 0.14 %define subrel 10 Release: %mkrel 4 License: GPL Group: Networking/WWW URL: https://addons.mozilla.org/en-US/firefox/addon/7574 Source: http://kfirefox.googlecode.com/files/kde4-%version.jar BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Requires: firefox = %{ff_epoch}:%{ff_ver} Obsoletes: mozilla-firefox-theme-kdeff <= 0.4 Provides: mozilla-firefox-theme-kdeff = %{version}-%{release} %description KDE4FF is a KDE4-like theme using Oxygen icons for Mozilla Firefox 3. %prep # Unfortunately, we have to fix the packaging for this one. :( %setup -T -q -c -n %{name}-%{version} unzip -q %{SOURCE0} %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_mozillaextpath} # this rdf contains 3 em:id sections. hash="$(sed -n '/.*em:id="\(kde.*\)"/{s//\1/p;q}' install.rdf)" if [ -z "$hash" ]; then hash="$(sed -n '/.*em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)" fi if [ -z "$hash" ]; then echo "Failed to find plugin hash." exit 1 fi extdir="%{_mozillaextpath}/$hash" mkdir -p "%{buildroot}$extdir" cp -af * "%{buildroot}$extdir/" %clean rm -rf %{buildroot} %files %defattr(0644,root,root,0755) %dir %_mozillapath %{_mozillaextpath} %changelog * Sat Sep 19 2009 Oden Eriksson <oeriksson@mandriva.com> 0.14-4.10mdv2009.0 - rebuild for firefox-3.0.14 * Fri Aug 07 2009 Eugeni Dodonov <eugeni@mandriva.com> .014-4.9mdv2009.0 - build for updates * Wed Jul 29 2009 Eugeni Dodonov <eugeni@mandriva.com> 0.14-4.8mdv2009.0 - build for updates * Mon Jun 15 2009 Eugeni Dodonov <eugeni@mandriva.com> 0.14-4.7mdv2009.0 - build for updates * Thu May 07 2009 Gustavo De Nardin <gustavodn@mandriva.com> 0.14-4.6mdv2009.0 - rebuild for new firefox-3.0.10/xulrunner-1.9.0.10 * Tue Mar 31 2009 Gustavo De Nardin <gustavodn@mandriva.com> 0.14-4.5mdv2009.0 - build for firefox 3.0.8 update * Thu Mar 12 2009 Oden Eriksson <oeriksson@mandriva.com> 0.14-4.4mdv2009.0 - rebuilt for firefox 3.0.7 update * Fri Feb 13 2009 Gustavo De Nardin <gustavodn@mandriva.com> 0.14-4.3mdv2009.0 - build for firefox 3.0.6 update * Wed Dec 17 2008 Vincent Danen <vdanen@mandriva.com> 0.14-4.2mdv2009.0 - rebuild for firefox 3.0.5 update * Fri Nov 14 2008 Gustavo De Nardin <gustavodn@mandriva.com> 0.14-4.1mdv2009.0 - rebuild for firefox 3.0.4 update * Mon Sep 29 2008 Funda Wang <fundawang@mandriva.org> 0.14-4mdv2009.0 + Revision: 289181 - rebuild for new FF * Fri Sep 26 2008 Tiago Salem <salem@mandriva.com.br> 0.14-3mdv2009.0 + Revision: 288677 - version 3.0.2 * Wed Aug 13 2008 Tiago Salem <salem@mandriva.com.br> 0.14-2mdv2009.0 + Revision: 271642 - fix sed in rdf file to get the right id. - bump release * Tue Aug 12 2008 Funda Wang <fundawang@mandriva.org> 0.14-1mdv2009.0 + Revision: 271098 - New version 0.14 * Wed Aug 06 2008 Frederic Crozat <fcrozat@mandriva.com> 0.10-3mdv2009.0 + Revision: 264185 - handle upgrade from 2008.1 better * Fri Aug 01 2008 Tiago Salem <salem@mandriva.com.br> 0.10-2mdv2009.0 + Revision: 260088 - obsoleting kde theme for firefox 2 * Fri Aug 01 2008 Tiago Salem <salem@mandriva.com.br> 0.10-1mdv2009.0 + Revision: 259827 - import firefox-theme-kde4ff