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

  ViewVC Help
Powered by ViewVC 1.1.28