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

  ViewVC Help
Powered by ViewVC 1.1.28