b59a10d
%global moz_extensions %{_datadir}/mozilla/extensions
b59a10d
b59a10d
%global firefox_app_id \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
b59a10d
%global src_ext_id https-everywhere@eff.org
a942ead
%global firefox_inst_dir %{moz_extensions}/%{firefox_app_id}/%{src_ext_id}
b59a10d
b59a10d
%global seamonkey_app_id \{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}
a942ead
%global seamonkey_inst_dir %{moz_extensions}/%{seamonkey_app_id}
b59a10d
b59a10d
Name:           mozilla-https-everywhere
9ff8bdc
Version:        2.2
682780e
Release:        2%{?dist}
b59a10d
Summary:        HTTPS/HSTS enforcement extension for Mozilla Firefox and SeaMonkey
b59a10d
b59a10d
Group:          Applications/Internet
b59a10d
License:        GPLv2+
b59a10d
URL:            https://eff.org/https-everywhere
b59a10d
# A git repo is available at git://git.torproject.org/https-everywhere.git
b59a10d
Source0:        https://www.eff.org/files/https-everywhere-%{version}.xpi
b59a10d
b59a10d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b59a10d
b59a10d
BuildRequires:  dos2unix
21ffe19
%if 0%{?rhel}
b59a10d
Requires:       firefox
b59a10d
%else
b59a10d
Requires:       mozilla-filesystem
b59a10d
%endif
b59a10d
BuildArch:      noarch
b59a10d
b59a10d
b59a10d
%description
b59a10d
HTTPS Everywhere is a Firefox extension produced as a collaboration between
b59a10d
The Tor Project and the Electronic Frontier Foundation. It encrypts your
b59a10d
communications with a number of major websites.
b59a10d
b59a10d
Many sites on the web offer some limited support for encryption over HTTPS,
b59a10d
but make it difficult to use. For instance, they may default to unencrypted
b59a10d
HTTP, or fill encrypted pages with links that go back to the unencrypted site.
b59a10d
b59a10d
The HTTPS Everywhere extension fixes these problems by rewriting all requests
b59a10d
to these sites to HTTPS.
b59a10d
b59a10d
b59a10d
%prep
b59a10d
%setup -q -c
b59a10d
dos2unix -f LICENSE.txt
b59a10d
b59a10d
%build
b59a10d
b59a10d
b59a10d
%install
b59a10d
rm -rf %{buildroot}
a942ead
install -Dp -m 644 chrome.manifest %{buildroot}%{firefox_inst_dir}/chrome.manifest
a942ead
install -Dp -m 644 install.rdf %{buildroot}%{firefox_inst_dir}/install.rdf
a942ead
install -Dp -m 644 Changelog %{buildroot}%{firefox_inst_dir}/Changelog
b809a4e
install -Dp -m 644 LICENSE.txt %{buildroot}%{firefox_inst_dir}/LICENSE.txt
a942ead
install -Dp -m 644 components/https-everywhere.js %{buildroot}%{firefox_inst_dir}/components/https-everywhere.js
b809a4e
install -Dp -m 644 components/ssl-observatory.js %{buildroot}%{firefox_inst_dir}/components/ssl-observatory.js
a942ead
install -Dp -m 644 chrome/content/about.xul %{buildroot}%{firefox_inst_dir}/chrome/content/about.xul
b809a4e
install -Dp -m 644 chrome/content/meta-preferences.xul %{buildroot}%{firefox_inst_dir}/chrome/content/meta-preferences.xul
b809a4e
install -Dp -m 644 chrome/content/observatory-popup.xul %{buildroot}%{firefox_inst_dir}/chrome/content/observatory-popup.xul
b809a4e
install -Dp -m 644 chrome/content/observatory-preferences.xul %{buildroot}%{firefox_inst_dir}/chrome/content/observatory-preferences.xul
b809a4e
install -Dp -m 644 chrome/content/observatory-warning.xul %{buildroot}%{firefox_inst_dir}/chrome/content/observatory-warning.xul
b809a4e
install -Dp -m 644 chrome/content/observatory-xul.js %{buildroot}%{firefox_inst_dir}/chrome/content/observatory-xul.js
a942ead
install -Dp -m 644 chrome/content/preferences.css %{buildroot}%{firefox_inst_dir}/chrome/content/preferences.css
a942ead
install -Dp -m 644 chrome/content/preferences.js %{buildroot}%{firefox_inst_dir}/chrome/content/preferences.js
a942ead
install -Dp -m 644 chrome/content/preferences.xul %{buildroot}%{firefox_inst_dir}/chrome/content/preferences.xul
a942ead
install -Dp -m 644 chrome/content/toolbar_button.js %{buildroot}%{firefox_inst_dir}/chrome/content/toolbar_button.js
a942ead
install -Dp -m 644 chrome/content/toolbar_button.xul %{buildroot}%{firefox_inst_dir}/chrome/content/toolbar_button.xul
a942ead
install -Dp -m 644 chrome/content/code/ApplicableList.js %{buildroot}%{firefox_inst_dir}/chrome/content/code/ApplicableList.js
Russell Golden 4a853b2
install -Dp -m 644 chrome/content/code/ChannelReplacement.js %{buildroot}%{firefox_inst_dir}/chrome/content/code/ChannelReplacement.js
a942ead
install -Dp -m 644 chrome/content/code/Cookie.js %{buildroot}%{firefox_inst_dir}/chrome/content/code/Cookie.js
a942ead
install -Dp -m 644 chrome/content/code/HTTPS.js %{buildroot}%{firefox_inst_dir}/chrome/content/code/HTTPS.js
a942ead
install -Dp -m 644 chrome/content/code/HTTPSRules.js %{buildroot}%{firefox_inst_dir}/chrome/content/code/HTTPSRules.js
a942ead
install -Dp -m 644 chrome/content/code/IOUtil.js %{buildroot}%{firefox_inst_dir}/chrome/content/code/IOUtil.js
b809a4e
install -Dp -m 644 chrome/content/code/Root-CAs.js %{buildroot}%{firefox_inst_dir}/chrome/content/code/Root-CAs.js
b809a4e
install -Dp -m 644 chrome/content/code/sha256.js %{buildroot}%{firefox_inst_dir}/chrome/content/code/sha256.js
a942ead
install -Dp -m 644 chrome/content/code/STS.js %{buildroot}%{firefox_inst_dir}/chrome/content/code/STS.js
a942ead
install -Dp -m 644 chrome/content/code/Thread.js %{buildroot}%{firefox_inst_dir}/chrome/content/code/Thread.js
b809a4e
install -Dp -m 644 chrome/content/code/X509ChainWhitelist.js %{buildroot}%{firefox_inst_dir}/chrome/content/code/X509ChainWhitelist.js
a942ead
install -Dp -m 644 chrome/content/rules/00README %{buildroot}%{firefox_inst_dir}/chrome/content/rules/00README
a942ead
install -Dp -m 644 chrome/content/rules/default.rulesets %{buildroot}%{firefox_inst_dir}/chrome/content/rules/default.rulesets
a942ead
install -Dp -m 644 chrome/locale/en/https-everywhere.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/en/https-everywhere.dtd
b809a4e
install -Dp -m 644 chrome/locale/en/https-everywhere.properties %{buildroot}%{firefox_inst_dir}/chrome/locale/en/https-everywhere.properties
b809a4e
install -Dp -m 644 chrome/locale/en/ssl-observatory.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/en/ssl-observatory.dtd
b809a4e
install -Dp -m 644 chrome/locale/ar/https-everywhere.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/ar/https-everywhere.dtd
b809a4e
install -Dp -m 644 chrome/locale/ar/https-everywhere.properties %{buildroot}%{firefox_inst_dir}/chrome/locale/ar/https-everywhere.properties
b809a4e
install -Dp -m 644 chrome/locale/ar/ssl-observatory.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/ar/ssl-observatory.dtd
b809a4e
install -Dp -m 644 chrome/locale/de/https-everywhere.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/de/https-everywhere.dtd
b809a4e
install -Dp -m 644 chrome/locale/de/https-everywhere.properties %{buildroot}%{firefox_inst_dir}/chrome/locale/de/https-everywhere.properties
b809a4e
install -Dp -m 644 chrome/locale/de/ssl-observatory.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/de/ssl-observatory.dtd
b809a4e
install -Dp -m 644 chrome/locale/es/https-everywhere.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/es/https-everywhere.dtd
b809a4e
install -Dp -m 644 chrome/locale/es/https-everywhere.properties %{buildroot}%{firefox_inst_dir}/chrome/locale/es/https-everywhere.properties
b809a4e
install -Dp -m 644 chrome/locale/es/ssl-observatory.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/es/ssl-observatory.dtd
b809a4e
install -Dp -m 644 chrome/locale/fa/https-everywhere.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/fa/https-everywhere.dtd
b809a4e
install -Dp -m 644 chrome/locale/fa/https-everywhere.properties %{buildroot}%{firefox_inst_dir}/chrome/locale/fa/https-everywhere.properties
b809a4e
install -Dp -m 644 chrome/locale/fa/ssl-observatory.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/fa/ssl-observatory.dtd
b809a4e
install -Dp -m 644 chrome/locale/lt/https-everywhere.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/lt/https-everywhere.dtd
b809a4e
install -Dp -m 644 chrome/locale/lt/https-everywhere.properties %{buildroot}%{firefox_inst_dir}/chrome/locale/lt/https-everywhere.properties
b809a4e
install -Dp -m 644 chrome/locale/lt/ssl-observatory.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/lt/ssl-observatory.dtd
b809a4e
install -Dp -m 644 chrome/locale/lv/https-everywhere.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/lv/https-everywhere.dtd
b809a4e
install -Dp -m 644 chrome/locale/lv/https-everywhere.properties %{buildroot}%{firefox_inst_dir}/chrome/locale/lv/https-everywhere.properties
b809a4e
install -Dp -m 644 chrome/locale/lv/ssl-observatory.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/lv/ssl-observatory.dtd
b809a4e
install -Dp -m 644 chrome/locale/nl/https-everywhere.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/nl/https-everywhere.dtd
b809a4e
install -Dp -m 644 chrome/locale/nl/https-everywhere.properties %{buildroot}%{firefox_inst_dir}/chrome/locale/nl/https-everywhere.properties
b809a4e
install -Dp -m 644 chrome/locale/nl/ssl-observatory.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/nl/ssl-observatory.dtd
b809a4e
install -Dp -m 644 chrome/locale/pt/https-everywhere.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/pt/https-everywhere.dtd
b809a4e
install -Dp -m 644 chrome/locale/pt/https-everywhere.properties %{buildroot}%{firefox_inst_dir}/chrome/locale/pt/https-everywhere.properties
b809a4e
install -Dp -m 644 chrome/locale/pt/ssl-observatory.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/pt/ssl-observatory.dtd
b809a4e
install -Dp -m 644 chrome/locale/ru/https-everywhere.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/ru/https-everywhere.dtd
b809a4e
install -Dp -m 644 chrome/locale/ru/https-everywhere.properties %{buildroot}%{firefox_inst_dir}/chrome/locale/ru/https-everywhere.properties
b809a4e
install -Dp -m 644 chrome/locale/ru/ssl-observatory.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/ru/ssl-observatory.dtd
b809a4e
install -Dp -m 644 chrome/locale/sv/https-everywhere.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/sv/https-everywhere.dtd
b809a4e
install -Dp -m 644 chrome/locale/sv/https-everywhere.properties %{buildroot}%{firefox_inst_dir}/chrome/locale/sv/https-everywhere.properties
b809a4e
install -Dp -m 644 chrome/locale/sv/ssl-observatory.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/sv/ssl-observatory.dtd
b809a4e
install -Dp -m 644 chrome/locale/zh-CN/https-everywhere.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/zh-CN/https-everywhere.dtd
b809a4e
install -Dp -m 644 chrome/locale/zh-CN/https-everywhere.properties %{buildroot}%{firefox_inst_dir}/chrome/locale/zh-CN/https-everywhere.properties
b809a4e
install -Dp -m 644 chrome/locale/zh-CN/ssl-observatory.dtd %{buildroot}%{firefox_inst_dir}/chrome/locale/zh-CN/ssl-observatory.dtd
a942ead
install -Dp -m 644 chrome/skin/cross.png %{buildroot}%{firefox_inst_dir}/chrome/skin/cross.png
a942ead
install -Dp -m 644 chrome/skin/https-everywhere-16.png %{buildroot}%{firefox_inst_dir}/chrome/skin/https-everywhere-16.png
a942ead
install -Dp -m 644 chrome/skin/https-everywhere-24.png %{buildroot}%{firefox_inst_dir}/chrome/skin/https-everywhere-24.png
a942ead
install -Dp -m 644 chrome/skin/https-everywhere-half-24.png %{buildroot}%{firefox_inst_dir}/chrome/skin/https-everywhere-half-24.png
a942ead
install -Dp -m 644 chrome/skin/https-everywhere.css %{buildroot}%{firefox_inst_dir}/chrome/skin/https-everywhere.css
a942ead
install -Dp -m 644 chrome/skin/https-everywhere.png %{buildroot}%{firefox_inst_dir}/chrome/skin/https-everywhere.png
b809a4e
install -Dp -m 644 chrome/skin/ssl-observatory-messy.jpg %{buildroot}%{firefox_inst_dir}/chrome/skin/ssl-observatory-messy.jpg
a942ead
install -Dp -m 644 chrome/skin/tick-moot.png %{buildroot}%{firefox_inst_dir}/chrome/skin/tick-moot.png
a942ead
install -Dp -m 644 chrome/skin/tick-red.png %{buildroot}%{firefox_inst_dir}/chrome/skin/tick-red.png
a942ead
install -Dp -m 644 chrome/skin/tick.png %{buildroot}%{firefox_inst_dir}/chrome/skin/tick.png
b809a4e
install -Dp -m 644 defaults/preferences/preferences.js %{buildroot}%{firefox_inst_dir}/defaults/preferences/preferences.js
b59a10d
b59a10d
# symlink from seamonkey extension to firefox extension
a942ead
mkdir -p %{buildroot}%{seamonkey_inst_dir}
a942ead
ln -s %{firefox_inst_dir} %{buildroot}%{seamonkey_inst_dir}
b59a10d
b59a10d
%clean
b59a10d
rm -rf %{buildroot}
b59a10d
b59a10d
b59a10d
%files
b59a10d
%defattr(-,root,root,-)
b59a10d
%doc LICENSE.txt
a942ead
%{firefox_inst_dir}
a942ead
%{seamonkey_inst_dir}
b59a10d
b59a10d
b59a10d
%changelog
682780e
* Fri Aug 17 2012 Russell Golden <niveusluna@niveusluna.org> - 2.2-2
682780e
- Prevent ruleset bugs from crashing the UI
682780e
  -- https://trac.torproject.org/projects/tor/ticket/6280
682780e
- Fix the enable/disable button in Firefox 14
682780e
  -- https://trac.torproject.org/projects/tor/ticket/6212
682780e
- Fix a nasty bug in the optional "Search www.google.com" ruleset:
682780e
  -- https://gitweb.torproject.org/https-everywhere.git/commitdiff/50ca41a1e189ef8383781f803e51ec7a06688a3b
682780e
- Disable buggy/broken: ZDNet, Globe and Mail, Blip.tv, Governo Portugês,
682780e
  -- Alton Towers, McAfee :( :( :(
682780e
- Fixes: Yandex, Wikipedia, PirateParty, JBoss, Gentoo
682780e
- Hopefully the last 2.x release before 3.0 stable
682780e
608f1d2
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-4
608f1d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
608f1d2
21ffe19
* Mon Jul 02 2012 Russell Golden <niveusluna@niveusluna.org> - 2.1-3
21ffe19
- Change Requires to require firefox on all RHEL versions
21ffe19
c1bdb82
* Sun Jun 24 2012 Russell Golden <niveusluna@niveusluna.org> - 2.1-2
c1bdb82
- Fix context menu breakage when URIs lack a host
c1bdb82
- Fixes: CiteULike, MozillaMessaging, Yandex, Demonoid, Pirate Party,
c1bdb82
  --  Gentoo, NYTimes, Microsoft, Wikipedia, Lenovo
c1bdb82
  --  https://mail1.eff.org/pipermail/https-everywhere-rules/2012-June/001189.html
c1bdb82
  --  https://trac.torproject.org/projects/tor/ticket/6091
c1bdb82
  --  https://mail1.eff.org/pipermail/https-everywhere-rules/2012-June/001190.html
c1bdb82
  --  https://mail1.eff.org/pipermail/https-everywhere-rules/2012-May/001186.html
c1bdb82
  --  https://mail1.eff.org/pipermail/https-everywhere/2012-May/001433.html
c1bdb82
- Disable broken: MarketWatch, Disqus, Magento, Lavasoft, Project Syndicate,
c1bdb82
  -- Typepad/Say Media
c1bdb82
  --  https://trac.torproject.org/projects/tor/ticket/5899
c1bdb82
  --  https://trac.torproject.org/projects/tor/ticket/5496
c1bdb82
Russell Golden 4a853b2
* Tue May 01 2012 Russell Golden <niveusluna@niveusluna.org> - 2.0.3-2
Russell Golden 4a853b2
- Add file that I missed in the last build.
Russell Golden 4a853b2
Russell Golden b7516a1
* Sat Apr 28 2012 Russell Golden <niveusluna@niveusluna.org> - 2.0.3-1
Russell Golden b7516a1
- Fix a downgrade attack that might allow attackers to deny HTTPS
Russell Golden b7516a1
    Everywhere protection for cookies on some domains.
Russell Golden b7516a1
    https://trac.torproject.org/projects/tor/ticket/5676
Russell Golden b7516a1
- Minor redirection mechanism fixes
Russell Golden b7516a1
- Fixes: WordPress, Yandex, OpenDNS, Via.me/AWS
Russell Golden b7516a1
- Improvements: Mozilla
Russell Golden b7516a1
- Disable broken: ReadWriteWeb
Russell Golden b7516a1
Russell Golden b9745c0
* Fri Apr 20 2012 Russell Golden <niveusluna@niveusluna.org> - 2.0.2-1
Russell Golden b9745c0
- Fix a weird wrong DOM-origin bug that occurred while redirects were in
Russell Golden b9745c0
  --  progress (this might have security implications, although we are unsure
Russell Golden b9745c0
  --  if it was exploitable).
Russell Golden b9745c0
  --  https://trac.torproject.org/projects/tor/ticket/5477
Russell Golden b9745c0
- By default, use https://google.co.cctld instead of
Russell Golden b9745c0
  --  encrypted.google.com
Russell Golden b9745c0
- Add an optional ruleset to use https://www.google.com
Russell Golden b9745c0
  -- instead of encrypted.google.com, too
Russell Golden b9745c0
- Ruleset fixes: Debian, Kohls, Malwarebytes, Yandex, Wikipedia, Mises.org,
Russell Golden b9745c0
  -- OpenDNS, Wizards of the Coast, Lenovo, Barnes and Noble
Russell Golden b9745c0
  --  https://trac.torproject.org/projects/tor/ticket/5509
Russell Golden b9745c0
  --  https://trac.torproject.org/projects/tor/ticket/5491
Russell Golden b9745c0
  --  https://trac.torproject.org/projects/tor/ticket/5303
Russell Golden b9745c0
- Stumble across more horrible security holes in the Verizon website:
Russell Golden b9745c0
  --  https://mail1.eff.org/pipermail/https-everywhere-rules/2012-February/001003.html
Russell Golden b9745c0
- Disable the Gentoo ruleset on non-CAcert platforms
Russell Golden b9745c0
- Disable buggy rulesets: IBM, Scribd, Wunderground :( :( :(
Russell Golden b9745c0
  --  https://trac.torproject.org/projects/tor/ticket/5344
Russell Golden b9745c0
  --  https://trac.torproject.org/projects/tor/ticket/5435
Russell Golden b9745c0
  --  https://trac.torproject.org/projects/tor/ticket/5630
Russell Golden b9745c0
b809a4e
* Wed Feb 29 2012 Russell Golden <niveusluna@niveusluna.org> - 2.0.1-1
b809a4e
- Sync to upstream 2.0.x branch
b809a4e
- Too many changes to all list here. None affect the end user experience.
b809a4e
    Being a Mozilla extension, it'll auto-update anyway.
b809a4e
2b18ea2
* Wed Jan 11 2012 Russell Golden <niveusluna@niveusluna.org> - 1.2.2-1
2b18ea2
- Google Cache is back!
2b18ea2
- Fixes: Wikipedia, Identi.ca, Verizon, CCC.de, UserScripts, Yandex
2b18ea2
- Improvements: EFF
2b18ea2
- Disable broken: NSF.gov, WHO.int
2b18ea2
2748cd4
* Wed Nov 16 2011 Russell Golden <niveusluna@niveusluna.org> - 1.2.1-1
2748cd4
- Google Cache is broken, remove it from GoogleServices :( :( :(
2748cd4
- Fix for the Google Image Search homepage
2748cd4
- Exclude help.duckduckgo.com:
2748cd4
--    https://trac.torproject.org/projects/tor/ticket/4399
2748cd4
- Disable Yahoo! Mail:
2748cd4
--    https://trac.torproject.org/projects/tor/ticket/4441
2748cd4
- Installable on Firefox 10
2748cd4
f7d2da1
* Tue Nov 15 2011 Russell Golden <niveusluna@niveusluna.org> - 1.2-1
f7d2da1
- Fixes: WordPress, Statcounter, Java, Bahn.de, SICS.se
f7d2da1
- Improvements: use fancy new HTTPS Wikipedia
f7d2da1
- Disable broken: OpenUniversity, TV.com, Random.org, kb.CERT
f7d2da1
a942ead
* Thu Oct 20 2011 Russell Golden <niveusluna@niveusluna.org> - 1.1-1
a942ead
- Further tweaks to internals, will hopefully fix a number of weird issues:
a942ead
--      https://trac.torproject.org/projects/tor/ticket/4194
a942ead
--      https://trac.torproject.org/projects/tor/ticket/4149
a942ead
--      https://mail1.eff.org/pipermail/https-everywhere/2011-October/001208.html
a942ead
- YouTube is enabled by default!
a942ead
- Fixes: Yandex, Statcounter, Polldaddy, SBB.ch
a942ead
- Improvements: Facebook+
a942ead
- Disable broken: Bloglines, EPEAT
a942ead
b59a10d
* Sat Oct 8 2011 Russell Golden <niveusluna@niveusluna.org> - 1.0.3-2
b59a10d
- Changelog added for current version
b59a10d
b59a10d
* Fri Sep 16 2011 Russell Golden <niveusluna@niveusluna.org> - 1.0.1-1
b59a10d
- Initial packaging for Fedora
b59a10d