Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > 4c410d8baa980cd84cd487ceac7c27cf > files > 2

firefox-ext-downthemall-1.1.0-3mdv2009.1.src.rpm

%define ff_epoch 0
%define ff_ver 3.0.8
%define realname downthemall

%define _mozillapath %{_libdir}/firefox-%{ff_ver}
%define _mozillaextpath %{_mozillapath}/extensions

%define rel 3

Summary: DownThemAll! extension for firefox
Name: firefox-ext-%{realname}
Version: 1.1.0
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}
Obsoletes: mozilla-firefox-ext-%{realname} < %{version}-%{release}
Provides: mozilla-firefox-ext-%{realname} = %{version}-%{release}

%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
* Sat Mar 28 2009 Gustavo De Nardin <gustavodn@mandriva.com> 1.1.0-3mdv2009.1
+ Revision: 361849
- rebuild for firefox 3.0.8

* Thu Mar 12 2009 Funda Wang <fundawang@mandriva.org> 1.1.0-2mdv2009.1
+ Revision: 354097
- rebuild for new ff

* Wed Feb 04 2009 Funda Wang <fundawang@mandriva.org> 1.1.0-1mdv2009.1
+ Revision: 337312
- rename to firefox
- New version 1.1.0
- New version 1.0.4
- rename to firefox

* Thu Dec 25 2008 Funda Wang <fundawang@mandriva.org> 1.0.3-7mdv2009.1
+ Revision: 318919
- rebuild for new ff

* Sun Nov 16 2008 Funda Wang <fundawang@mandriva.org> 1.0.3-6mdv2009.1
+ Revision: 303694
- rebuild for new FF

* 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.