summaryrefslogtreecommitdiff
path: root/palemoon-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 /palemoon-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 'palemoon-ublock-origin')
-rw-r--r--palemoon-ublock-origin/palemoon-ublock-origin.spec33
1 files changed, 17 insertions, 16 deletions
diff --git a/palemoon-ublock-origin/palemoon-ublock-origin.spec b/palemoon-ublock-origin/palemoon-ublock-origin.spec
index c621edc..95a04e6 100644
--- a/palemoon-ublock-origin/palemoon-ublock-origin.spec
+++ b/palemoon-ublock-origin/palemoon-ublock-origin.spec
@@ -1,9 +1,11 @@
-#palemoon globals
+# palemoon globals
%global moz_extensions %{_libdir}/palemoon/browser/extensions
+%global app_name palemoon
+#%%global app_id
-Name: palemoon-ublock-origin
+Name: %{app_name}-ublock-origin
Version: 1.16.4.4
-Release: 1
+Release: 2
Summary: uBlock Origin installed to the system Pale Moon extensions directory
Group: Applications/Internet
@@ -12,33 +14,32 @@ 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
+#Requires: mozilla-filesystem
+#Requires: %%{app_name}-filesystem
+
%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.
+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
-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}
+install -Dp -m0644 %{SOURCE0} %{buildroot}%{moz_extensions}/${newfilename}
rm -rf install.rdf
@@ -50,8 +51,8 @@ rm -rf %{buildroot}
%{moz_extensions}/*.xpi
%changelog
-* Thu Sep 13 2018 B Stack <bgstack15@gmail.com> 1.16.4.4-1
-- Update version and customize to palemoon
+* Sat Sep 15 2018 B Stack <bgstack15@gmail.com> 1.16.4.4-2
+- Customize for stackrpms
* Wed Aug 2 2017 Ian Firns <firnsy@kororaproject.org>- 1.13.8-1
- Update to 1.13.8 release
bgstack15