/[packages]/cauldron/firefox-ext-adblock-plus/current/SPECS/firefox-ext-adblock-plus.spec
ViewVC logotype

Contents of /cauldron/firefox-ext-adblock-plus/current/SPECS/firefox-ext-adblock-plus.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 135412 - (show annotations) (download)
Fri Aug 26 09:29:09 2011 UTC (12 years, 8 months ago) by fwang
File size: 1174 byte(s)
rebuild for higher release tag than stable 1
1 Name: firefox-ext-adblock-plus
2 Version: 1.3.9
3 Release: %mkrel 2
4 Summary: Adblocking extension for firefox
5 License: MPL
6 Group: Networking/WWW
7 URL: https://addons.mozilla.org/en-US/firefox/addon/1865
8 Source0: http://releases.mozilla.org/pub/mozilla.org/addons/1865/adblock_plus-%{version}-fx+tb+sm+fn.xpi
9 BuildRequires: firefox-devel
10 Buildarch: noarch
11 Requires: firefox >= %{firefox_epoch}:%{firefox_version}
12
13 %description
14 Ever been annoyed by all those ads and banners on the internet that often take
15 longer to download than everything else on the page? Install Adblock Plus now
16 and get rid of them.
17
18 %prep
19 %setup -q -c -n %{name}-%{version}
20
21 %install
22 rm -rf %{buildroot}
23 mkdir -p %{buildroot}%{firefox_extdir}
24
25 hash="$(sed -n '/.*em:id="\(.*\)"/{s//\1/p;q}' install.rdf)"
26 if [ -z "$hash" ]; then
27 hash="$(sed -n '/.*em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)"
28 fi
29 if [ -z "$hash" ]; then
30 echo "Failed to find plugin hash."
31 exit 1
32 fi
33 extdir="%{firefox_extdir}/"
34 mkdir -p "%{buildroot}$extdir"
35 cp -af %SOURCE0 "%{buildroot}$extdir/$hash.xpi"
36
37 %clean
38 rm -rf %{buildroot}
39
40 %files
41 %defattr(0644,root,root,0755)
42 %{firefox_extdir}

  ViewVC Help
Powered by ViewVC 1.1.30