blob: 09e01ae5e800b6e9d7f6eca55c2b57f942cb31df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# palemoon globals
%global app_name palemoon
%global moz_extensions %{_libdir}/%{app_name}/browser/extensions
#%%global app_id
Name: %{app_name}-ublock-origin
Version: 1.16.4.18
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-for-firefox-legacy/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}
install -Dp -m0644 %{SOURCE0} %{buildroot}%{moz_extensions}/${newfilename}
rm -rf install.rdf
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{moz_extensions}/*.xpi
%changelog
* Tue Feb 18 2020 B Stack <bgstack15@gmail.com> - 1.16.4.18-1
- Update
* Mon Jan 27 2020 B Stack <bgstack15@gmail.com> - 1.16.4.16-1
- Update
- Upstream changed locations
* Tue Jan 14 2020 B Stack <bgstack15@gmail.com> - 1.16.4.14-1
- Update
* Wed Dec 18 2019 B Stack <bgstack15@gmail.com> - 1.16.4.12-1
- Update
* Mon Nov 11 2019 B Stack <bgstack15@gmail.com> - 1.16.4.11-1
- Update
* 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
* 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
|