diff options
author | B Stack <bgstack15@gmail.com> | 2018-09-13 23:55:16 +0000 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2018-09-13 23:55:16 +0000 |
commit | c5d425668426f44c2ee3af6ec63e05d505e10221 (patch) | |
tree | d1cd10603783b838c87f75cc09702776d8044c82 /palemoon-ublock-origin | |
parent | Merge branch 'devel' into 'master' (diff) | |
parent | add palemoon-ublock-origin (diff) | |
download | stackrpms-c5d425668426f44c2ee3af6ec63e05d505e10221.tar.gz stackrpms-c5d425668426f44c2ee3af6ec63e05d505e10221.tar.bz2 stackrpms-c5d425668426f44c2ee3af6ec63e05d505e10221.zip |
Merge branch 'add-ublock' into 'master'
add palemoon-ublock-origin
See merge request bgstack15/stackrpms!7
Diffstat (limited to 'palemoon-ublock-origin')
-rw-r--r-- | palemoon-ublock-origin/palemoon-ublock-origin.spec | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/palemoon-ublock-origin/palemoon-ublock-origin.spec b/palemoon-ublock-origin/palemoon-ublock-origin.spec new file mode 100644 index 0000000..c621edc --- /dev/null +++ b/palemoon-ublock-origin/palemoon-ublock-origin.spec @@ -0,0 +1,67 @@ +#palemoon globals +%global moz_extensions %{_libdir}/palemoon/browser/extensions + +Name: palemoon-ublock-origin +Version: 1.16.4.4 +Release: 1 +Summary: uBlock Origin installed to the system Pale Moon extensions directory + +Group: Applications/Internet +License: GPLv3 +URL: https://github.com/gorhill/uBlock +Source0: https://github.com/gorhill/uBlock/releases/download/firefox-legacy-%{version}/uBlock0.firefox-legacy.xpi +BuildRequires: unzip +BuildRequires: coreutils +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +%description +uBlock Origin is NOT an "ad blocker": it is a wide-spectrum blocker -- +which happens to be able to function as a mere "ad blocker". The +default behavior of uBlock Origin when newly installed is to block ads, +trackers and malware sites -- through EasyList, EasyPrivacy, Peter Lowe's +ad/tracking/malware servers, various lists of malware sites, and uBlock +Origin's own filter lists. + +%prep +#%setup -q -c + +%build +rm -rf %{buildroot} + +%install +rm -rf %{buildroot} + +# learn extension id to name the file +%{__unzip} -o %{SOURCE0} install.rdf +newfilename="$( grep 'em:id' install.rdf 2>/dev/null | head -n1 | sed -r -e 's/^.*<em:id>//;' -e 's/<\/em:id>.*$//;' ).xpi" +test -z "${newfilename}" && newfilename="$( basename %{SOURCE0} )" + +mkdir -p %{buildroot}%{moz_extensions} +install -Dp -m 644 %{SOURCE0} %{buildroot}%{moz_extensions}/${newfilename} + +rm -rf install.rdf + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{moz_extensions}/*.xpi + +%changelog +* Thu Sep 13 2018 B Stack <bgstack15@gmail.com> 1.16.4.4-1 +- Update version and customize to palemoon + +* Wed Aug 2 2017 Ian Firns <firnsy@kororaproject.org>- 1.13.8-1 +- Update to 1.13.8 release + +* Thu Jan 7 2016 Chris Smart <csmart@kororaproject.org>- 1.9.16-1 +- Update to 1.9.16 release + +* Thu Jan 7 2016 Chris Smart <csmart@kororaproject.org>- 1.5.3-1 +- Update to 1.5.3 release +- Use signed xpi from Mozilla so that it works in Firefox 43 + +* Tue Nov 3 2015 Chris Smart <csmart@kororaproject.org>- 1.3.2-1 +- Initial build |