Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > cdb799837ffe98a496f0ba4cd8f49f4b > files > 3

firefox-ext-download-statusbar-0.9.8-1.1.mga1.src.rpm

%define subrel 1

Summary: Download Statusbar extension for firefox
Name: firefox-ext-download-statusbar
Version: 0.9.8
Release: %mkrel 1
License: MPL
Group:	Networking/WWW
URL:	https://addons.mozilla.org/fr/firefox/addon/26/
Source: http://releases.mozilla.org/pub/mozilla.org/addons/26/download_statusbar-%{version}-fx.xpi
Patch0: download_statusbar-0.9.8-fix-ff-minimum-version.patch
Requires: firefox >= %{firefox_epoch}:%{firefox_version}
BuildRequires: firefox-devel
Buildarch: noarch

%description
Despite its compact size, Download Statusbar packs in more useful features than
the standard download window. The fully customizable interface auto-hides when
not in use, allowing full control without interruption. 

%prep
%setup -q -c -n %{name}-%{version}
%patch0 -p0

%build
# Nothing to do

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{firefox_extdir}

hash="$(sed -n '/.*em:id="\(.*\)"/{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="%{firefox_extdir}/$hash"
mkdir -p "%{buildroot}$extdir"
# (tv) xpi packaging doesn't work with that extension (UI issues):
#cp -af %SOURCE0 "%{buildroot}$extdir/$hash.xpi"
#zip -9 "%{buildroot}$extdir/$hash.xpi" *
cp -af * "%{buildroot}$extdir/"

%files
%defattr(0644,root,root,0755)
%{firefox_extdir}






%changelog

* Sun Aug 21 2011 dmorgan <dmorgan> 0.9.8-1.1.mga1
+ Revision: 134685
- Fix to work with FF6 ( mga #1973)

* Wed Mar 16 2011 tv <tv> 0.9.8-1.mga1
+ Revision: 72801
- drop patch 0 (now useless)
- new release

* Tue Feb 01 2011 tv <tv> 0.9.7.2-5.mga1
+ Revision: 45593
- imported package firefox-ext-download-statusbar


* Fri Jan 28 2011 Funda Wang <fwang@mandriva.org> 0.9.7.2-5mdv2011.0
+ Revision: 633585
- remove hard requires

  + Thierry Vignaud <tv@mandriva.org>
    - xpi packaging doesn't work with that extension (UI issues)
    - patch 0: make it compatible with firefox-4b9
    - prevent need to rebuild for every new firefox
    - only package .xpi

* Wed Jan 05 2011 Thierry Vignaud <tv@mandriva.org> 0.9.7.2-3mdv2011.0
+ Revision: 628863
- rebuild for new firefox

* Sun Nov 14 2010 Thierry Vignaud <tv@mandriva.org> 0.9.7.2-2mdv2011.0
+ Revision: 597377
- rebuild for new firefox

* Sun Nov 07 2010 Thierry Vignaud <tv@mandriva.org> 0.9.7.2-1mdv2011.0
+ Revision: 594629
- import firefox-ext-download-statusbar