%define ff_epoch 0 %if %mdkversion < 200900 %define ff_ver 2.0.0.17 %else %define ff_ver 3.0.5 %endif %define realname downthemall %define _mozillapath %{_libdir}/firefox-%{ff_ver} %define _mozillaextpath %{_mozillapath}/extensions %define subrel 2 %define rel 5 Summary: DownThemAll! extension for firefox Name: mozilla-firefox-ext-%{realname} Version: 1.0.3 Release: %mkrel %rel License: MPL1.1 or GPLv2+ or LGPLv2+ Group: Networking/WWW URL: http://www.downthemall.net Source: http://code.downthemall.net/releases/%{realname}-%{version}.xpi BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Requires: mozilla-firefox = %{ff_epoch}:%{ff_ver} %description DownThemAll (or just dTa) is a powerful yet easy-to-use Mozilla Firefox extension that adds new advanced download capabilities to your browser. DownThemAll lets you download all the links or images contained in a webpage and much more: you can refine your downloads by fully customizable criteria to get only what you really want. %prep %setup -q -c -n %{name}-%{version} %build %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_mozillaextpath} hash="$(sed -n '/.*id="\(.*\)"/{s//\1/p;q}' install.rdf)" if [ -z "$hash" ]; then hash="$(sed -n '/.*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 * Sun Dec 21 2008 Gustavo De Nardin <gustavodn@mandriva.com> 1.0.3-5.2mdv2009.0 + Revision: 316906 - rebuild for xulrunner-1.9.0.5 / firefox-3.0.5 update - rebuild for xulrunner-1.9.0.4 / firefox-3.0.4 update * Mon Sep 29 2008 Funda Wang <fundawang@mandriva.org> 1.0.3-5mdv2009.0 + Revision: 289174 - rebuild for new FF * Wed Jul 30 2008 Tiago Salem <salem@mandriva.com.br> 1.0.3-4mdv2009.0 + Revision: 256465 - add conditional to ff3 * Wed Jul 16 2008 Oden Eriksson <oeriksson@mandriva.com> 1.0.3-3mdv2009.0 + Revision: 236361 - rebuilt for mozilla-firefox-2.0.0.16 * Thu Jul 03 2008 Tiago Salem <salem@mandriva.com.br> 1.0.3-2mdv2009.0 + Revision: 231257 - Rebuild for firefox 2.0.0.15 * Sat Jun 07 2008 Funda Wang <fundawang@mandriva.org> 1.0.3-1mdv2009.0 + Revision: 216650 - New version 1.0.3 * Sun May 04 2008 Funda Wang <fundawang@mandriva.org> 1.0.1-1mdv2009.0 + Revision: 201020 - New version 1.0.1 * Sat Apr 19 2008 Funda Wang <fundawang@mandriva.org> 1.0-3mdv2009.0 + Revision: 195740 - rebuild with FF 2.0.0.14 * Wed Mar 26 2008 Tiago Salem <salem@mandriva.com.br> 1.0-2mdv2008.1 + Revision: 190328 - bump ff_ver and release * Sat Mar 01 2008 Funda Wang <fundawang@mandriva.org> 1.0-1mdv2008.1 + Revision: 177075 - New version 1.0 * Sat Feb 09 2008 Funda Wang <fundawang@mandriva.org> 1.0-0.b2.4mdv2008.1 + Revision: 164603 - Clearify the license - rebuild for new FF + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Wed Dec 12 2007 Thierry Vignaud <tvignaud@mandriva.com> 1.0-0.b2.3mdv2008.1 + Revision: 117791 - own firefox directories so that they're not left behind on uninstall * Wed Dec 12 2007 Funda Wang <fundawang@mandriva.org> 1.0-0.b2.2mdv2008.1 + Revision: 117621 - Rebuild for new ff * Sun Nov 18 2007 Funda Wang <fundawang@mandriva.org> 1.0-0.b2.1mdv2008.1 + Revision: 109789 - import SOURCE and SPEC - Created package structure for mozilla-firefox-ext-downloadthemall.