SPECS: iceape-addon-adblockplus.spec (NEW) - addblockplus for Iceape

hawk hawk at pld-linux.org
Thu Jun 26 15:33:19 CEST 2008


Author: hawk                         Date: Thu Jun 26 13:33:19 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- addblockplus for Iceape

---- Files affected:
SPECS:
   iceape-addon-adblockplus.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/iceape-addon-adblockplus.spec
diff -u /dev/null SPECS/iceape-addon-adblockplus.spec:1.1
--- /dev/null	Thu Jun 26 15:33:19 2008
+++ SPECS/iceape-addon-adblockplus.spec	Thu Jun 26 15:33:13 2008
@@ -0,0 +1,87 @@
+# $Revision$, $Date$
+%define		_realname	adblock_plus
+Summary:	Extension for blocking unwanted ads, banners etc.
+Summary(pl.UTF-8):	Rozszerzenie do blokowania niechcianych reklam, bannerów itp.
+Name:		iceape-addon-adblockplus
+Version:	0.7.5.5
+Release:	1
+Epoch:		1
+License:	unknown
+Group:		X11/Applications/Networking
+Source0:	http://releases.mozilla.org/pub/mozilla.org/addons/1865/%{_realname}-%{version}-fx+tb+sm.xpi
+# Source0-md5:	bf544542a212e12c6cc18c34c9145908
+Source1:	adblockplus-installed-chrome.txt
+URL:		http://adblockplus.org/
+BuildRequires:	unzip
+BuildRequires:	zip
+Requires(post,postun):	iceape >= 1.1
+Requires:	iceape >= 1.1
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Ever been annoyed by all those ads and banners on the internet that
+often take longer to download than everything else on the page?
+Adblock Plus will help you to get rid of them. Right-click on a banner
+and choose "Adblock" from the context menu - the banner won't be
+downloaded again. Or open Adblock Plus sidebar to see all elements of
+the page and block the banners. You can use filters with wildcards or
+even regular expressions to block complete banner factories.
+
+%description -l pl.UTF-8
+Czy denerwują Cię te wszystkie reklamy i bannery, których załadowanie
+często trwa dłużej niż wczytanie właściwej treści strony? Adblock Plus
+pomoże Ci się ich pozbyć. Kliknij prawym przyciskiem myszki na
+bannerze i wybierz "Adblock" z menu kontekstowego - banner już więcej
+się nie wyświetli. Możesz też otworzyć panel Adblock Plus aby zobaczyć
+listę wszystkich elementów strony i zablokować bannery. Możliwe
+również jest tworzenie filtrów używających masek lub nawet wyrażeń
+regularnych aby umożliwić blokowanie całych serwisów reklamowych.
+
+%prep
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/iceape
+install -d $RPM_BUILD_ROOT%{_libdir}/iceape
+
+unzip %{SOURCE0} -d $RPM_BUILD_ROOT
+
+# fix polish locale
+PWD=`pwd`
+cd $RPM_BUILD_ROOT/chrome/
+unzip adblockplus.jar locale/pl-PL/contents.rdf
+sed -i -e 's/locale:pl/locale:pl-PL/g' locale/pl-PL/contents.rdf
+zip -0 adblockplus.jar locale/pl-PL/contents.rdf
+rm -rf locale/pl-PL/contents.rdf
+cd $PWD
+
+install %{SOURCE1} $RPM_BUILD_ROOT/chrome
+mv $RPM_BUILD_ROOT/defaults/preferences $RPM_BUILD_ROOT/defaults/pref
+mv $RPM_BUILD_ROOT/{chrome,defaults} $RPM_BUILD_ROOT%{_datadir}/iceape
+mv $RPM_BUILD_ROOT/components $RPM_BUILD_ROOT%{_libdir}/iceape
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%{_sbindir}/iceape-chrome+xpcom-generate
+
+%postun
+%{_sbindir}/iceape-chrome+xpcom-generate
+
+%files
+%defattr(644,root,root,755)
+%{_datadir}/iceape/chrome/adblockplus.jar
+%{_datadir}/iceape/chrome/adblockplus-installed-chrome.txt
+%{_datadir}/iceape/defaults/pref/adblockplus.js
+%{_libdir}/iceape/components/nsAdblockPlus.*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008/06/26 13:33:13  hawk
+- addblockplus for Iceape
+
================================================================


More information about the pld-cvs-commit mailing list