summaryrefslogtreecommitdiff
path: root/waterfox-ublock-origin
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2018-09-16 00:29:27 +0000
committerB Stack <bgstack15@gmail.com>2018-09-16 00:29:27 +0000
commit06c2a09edcb5cd71519fe13fb3047f2a2bdb47d0 (patch)
tree1661bae9f608448fed9832ca8aaa91891a2a9daa /waterfox-ublock-origin
parentMerge branch 'add-ublock' into 'master' (diff)
parentadd waterfox-ublock-origin and fix palemoon-ub (diff)
downloadstackrpms-06c2a09edcb5cd71519fe13fb3047f2a2bdb47d0.tar.gz
stackrpms-06c2a09edcb5cd71519fe13fb3047f2a2bdb47d0.tar.bz2
stackrpms-06c2a09edcb5cd71519fe13fb3047f2a2bdb47d0.zip
Merge branch 'add-waterfox' into 'master'
Add waterfox and its ublock-origin See merge request bgstack15/stackrpms!8
Diffstat (limited to 'waterfox-ublock-origin')
-rw-r--r--waterfox-ublock-origin/waterfox-ublock-origin.spec61
1 files changed, 61 insertions, 0 deletions
diff --git a/waterfox-ublock-origin/waterfox-ublock-origin.spec b/waterfox-ublock-origin/waterfox-ublock-origin.spec
new file mode 100644
index 0000000..906e963
--- /dev/null
+++ b/waterfox-ublock-origin/waterfox-ublock-origin.spec
@@ -0,0 +1,61 @@
+# waterfox globals
+%global moz_extensions %{_datadir}/%{app_name}/extensions
+%global app_name waterfox
+%global app_id \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
+
+Name: %{app_name}-ublock-origin
+Version: 1.16.4.4
+Release: 2
+Summary: uBlock Origin installed to system Waterfox extensions directory
+
+Group: Applications/Internet
+License: GPLv3+ and LGPLv3 and MIT and OFL
+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
+BuildArch: noarch
+
+Requires: mozilla-filesystem
+Requires: %{app_name}-filesystem
+
+%description
+The "legacy" release of uBlock Origin (NPAPI) for tradional Mozilla-style
+web browsers. This is packaged for %{app_name}.
+
+More than just an ad blocker, uBlock Origin provides the ability to block
+at will and easy defaults based on various common lists, such as EasyList,
+EasyPrivacy, and Peter Lowe's ad/tracking/malware servers.
+
+%prep
+#%setup -q -c
+
+%build
+
+%install
+# 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}/%{app_id}
+install -Dp -m0644 %{SOURCE0} %{buildroot}%{moz_extensions}/%{app_id}/${newfilename}
+
+rm -rf install.rdf
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%{moz_extensions}/*/*.xpi
+
+%changelog
+* Sat Sep 15 2018 B Stack <bgstack15@gmail.com> - 1.16.4.4-2
+- Customize for stackrpms
+
+* Fri Jul 20 2018 Phantom X <megaphantomx at bol dot com dot br> - 1.16.4.4-1
+- 1.16.4.4
+
+* Wed Jun 13 2018 Phantom X <megaphantomx at bol dot com dot br> - 1.16.4.1-1
+- Initial spec
bgstack15