e501d1f
%global moz_extensions %{_datadir}/mozilla/extensions
e501d1f
e501d1f
%global firefox_app_id \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
e501d1f
%global src_ext_id https-everywhere@eff.org
e501d1f
%global firefox_inst_dir %{moz_extensions}/%{firefox_app_id}/%{src_ext_id}
e501d1f
e501d1f
%global seamonkey_app_id \{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}
e501d1f
%global seamonkey_inst_dir %{moz_extensions}/%{seamonkey_app_id}
e501d1f
e501d1f
Name:           mozilla-https-everywhere
e501d1f
Version:        3.0.0
8d7f547
Release:        2%{?dist}
e501d1f
Summary:        HTTPS/HSTS enforcement extension for Mozilla Firefox and SeaMonkey
e501d1f
e501d1f
Group:          Applications/Internet
e501d1f
License:        GPLv2+
e501d1f
URL:            https://eff.org/https-everywhere
e501d1f
# A git repo is available at git://git.torproject.org/https-everywhere.git
e501d1f
Source0:        https://www.eff.org/files/https-everywhere-%{version}.xpi
e501d1f
Patch0:         appManaged.patch
e501d1f
e501d1f
e501d1f
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e501d1f
e501d1f
BuildRequires:  dos2unix
e501d1f
%if 0%{?rhel}
ac36dfc
Requires:       firefox >= 3.5
e501d1f
%else
e501d1f
Requires:       mozilla-filesystem
e501d1f
%endif
e501d1f
BuildArch:      noarch
e501d1f
e501d1f
e501d1f
%description
e501d1f
HTTPS Everywhere is a Firefox extension produced as a collaboration between
e501d1f
The Tor Project and the Electronic Frontier Foundation. It encrypts your
e501d1f
communications with a number of major websites.
e501d1f
e501d1f
Many sites on the web offer some limited support for encryption over HTTPS,
e501d1f
but make it difficult to use. For instance, they may default to unencrypted
e501d1f
HTTP, or fill encrypted pages with links that go back to the unencrypted site.
e501d1f
e501d1f
The HTTPS Everywhere extension fixes these problems by rewriting all requests
e501d1f
to these sites to HTTPS.
e501d1f
e501d1f
e501d1f
%prep
e501d1f
%setup -q -c
e501d1f
dos2unix -f LICENSE.txt
e501d1f
%patch0 -p 1
e501d1f
e501d1f
%build
e501d1f
e501d1f
e501d1f
%install
e501d1f
rm -rf %{buildroot}
e501d1f
e501d1f
# top level files
e501d1f
install -Dp -m 644 chrome.manifest %{buildroot}%{firefox_inst_dir}/chrome.manifest
e501d1f
install -Dp -m 644 install.rdf %{buildroot}%{firefox_inst_dir}/install.rdf
e501d1f
install -Dp -m 644 Changelog %{buildroot}%{firefox_inst_dir}/Changelog
e501d1f
install -Dp -m 644 LICENSE.txt %{buildroot}%{firefox_inst_dir}/LICENSE.txt
e501d1f
e501d1f
# chrome/content
e501d1f
install -dm 755 %{buildroot}%{firefox_inst_dir}/chrome/content
e501d1f
install -D -m  644 chrome/content/{about.xul,fetch-source.js,fetch-source.xul,meta-preferences.xul,observatory-popup.xul,observatory-preferences.xul,observatory-warning.xul,observatory-xul.js,preferences.css,preferences.js,preferences.xul,toolbar_button.js,toolbar_button.xul} %{buildroot}%{firefox_inst_dir}/chrome/content/
e501d1f
e501d1f
# chrome/content/code
e501d1f
install -dm 755 %{buildroot}%{firefox_inst_dir}/chrome/content/code
886fcce
for f in chrome/content/code/*; do
e501d1f
install -Dpm 644 ${f} \
e501d1f
    %{buildroot}%{firefox_inst_dir}/${f}
e501d1f
done
e501d1f
e501d1f
# chrome/content/rules
e501d1f
install -dm 755 %{buildroot}%{firefox_inst_dir}/chrome/content/rules
e501d1f
for f in chrome/content/rules/*; do
e501d1f
install -Dpm 644 ${f} \
e501d1f
    %{buildroot}%{firefox_inst_dir}/${f}
e501d1f
done
e501d1f
e501d1f
# chrome/locale and everything in it
e501d1f
install -dm 755 %{buildroot}/%{firefox_inst_dir}/chrome/locale
e501d1f
for f in chrome/locale/*; do
e501d1f
	install -dm 755 ${f} \
e501d1f
		%{buildroot}%{firefox_inst_dir}/${f}
e501d1f
	for g in ${f}/*; do
e501d1f
		install -Dpm 644 ${g} \
e501d1f
			%{buildroot}%{firefox_inst_dir}/${g}
e501d1f
	done
e501d1f
done
e501d1f
e501d1f
# chrome/skin
e501d1f
install -dm 755 %{buildroot}/%{firefox_inst_dir}/chrome/skin
e501d1f
for f in chrome/skin/*; do
e501d1f
install -Dpm 644 ${f} \
e501d1f
    %{buildroot}%{firefox_inst_dir}/${f}
e501d1f
done
e501d1f
e501d1f
# components/
e501d1f
install -dm 755 %{buildroot}/%{firefox_inst_dir}/components
e501d1f
for f in components/*; do
e501d1f
install -Dpm 644 ${f} \
e501d1f
    %{buildroot}%{firefox_inst_dir}/${f}
e501d1f
done
e501d1f
e501d1f
# defaults/
e501d1f
install -dm 755 %{buildroot}/%{firefox_inst_dir}/defaults
e501d1f
install -dm 755 %{buildroot}/%{firefox_inst_dir}/defaults/preferences
e501d1f
for f in defaults/preferences/*; do
e501d1f
install -Dpm 644 ${f} \
e501d1f
    %{buildroot}%{firefox_inst_dir}/${f}
e501d1f
done
e501d1f
e501d1f
# symlink from seamonkey extension to firefox extension
e501d1f
mkdir -p %{buildroot}%{seamonkey_inst_dir}
e501d1f
ln -s %{firefox_inst_dir} %{buildroot}%{seamonkey_inst_dir}
e501d1f
e501d1f
%clean
e501d1f
rm -rf %{buildroot}
e501d1f
e501d1f
e501d1f
%files
e501d1f
%defattr(-,root,root,-)
e501d1f
%doc LICENSE.txt
e501d1f
%{firefox_inst_dir}
e501d1f
%{seamonkey_inst_dir}
e501d1f
e501d1f
e501d1f
%changelog
8d7f547
* Fri Oct 12 2012 Russell Golden <niveusluna@niveusluna.org> - 3.0.0-2
8d7f547
- Replace "firefox" in EPEL builds with "firefox >= 3.5" for EL
8d7f547
    users who think updates are for sissies and/or voiding support
8d7f547
    contracts with proprietary vendors. They can't use this if their
8d7f547
    Firefox install is older than 3.5 anyway, so what's the harm?
8d7f547
e501d1f
* Tue Oct 09 2012 Russell Golden <niveusluna@niveusluna.org> - 3.0.0-1
e501d1f
  - Since version 2.x:
e501d1f
    - 1,455 new active rulesets
e501d1f
    - UI improvements: 
e501d1f
      -- right-click to view ruleset source in the config window
e501d1f
      -- translate some untranslated menus
e501d1f
      -- better icons in a few places (breaking/redirecting rules,
e501d1f
        context button)
e501d1f
    - Numerous improvements to the SSL Observatory internals, including cached
e501d1f
      submissions on hostile networks, better Tor and Convergence integration,
e501d1f
      and a new setting to control self-signed cert submission
e501d1f
    - New translations: Basque, Czech, Danish, French, Greek, Hungarian,
e501d1f
                        Italian, Korean, Malaysian, Polish, Slovak, Turkish,
e501d1f
                        Traditional Chinese
e501d1f
  - Relative to 3.0development.8:
e501d1f
    - Only promote the Decentralized SSL Observatory to 5% of non-Tor users
e501d1f
    - Update the SSL Observatory whitelist of common cert chains
e501d1f
    - Fixes, mostly in the CDN/media playback department: 
e501d1f
             Akamai/CNN, GO.com/ABC, AWS/Amazon Zeitgeist MP3 player,
e501d1f
             AWS/Spiegel.tv, Technology Review, Cloudfront/Tunein,
e501d1f
             Akamai/Discovery Channel, Beyond Security, OCaml, Gentoo,
e501d1f
             Nokia, Widgetbox.com, Squarespace
e501d1f
             https://trac.torproject.org/projects/tor/ticket/4199
e501d1f
             https://trac.torproject.org/projects/tor/ticket/6871
e501d1f
             https://trac.torproject.org/projects/tor/ticket/6992
e501d1f
             https://trac.torproject.org/projects/tor/ticket/7000
e501d1f
             https://trac.torproject.org/projects/tor/ticket/7020
e501d1f
             https://mail1.eff.org/pipermail/https-everywhere-rules/2012-October/001324.html
e501d1f
    - Disable buggy: Web.de, AJC.com, Feross, Bestofmedia
e501d1f
    - Remove a lot of off-by-default rulesets from the code, since they have
e501d1f
      some costs in terms of startup speed and RAM usage
e501d1f
e501d1f
* Thu Sep 27 2012 Russell Golden <niveusluna@niveusluna.org> - 2.2.3-1
e501d1f
- Workaround for breakage in Amazon Look Inside the Book (via Cloudfront)
e501d1f
  -- https://trac.torproject.org/projects/tor/ticket/6848
e501d1f
- Fix logout for AOL users
e501d1f
- Other fixes: PassThePopcorn, WhatCD, Antispam.de, RFCeditor,
e501d1f
  -- Weatherspark / GoogleMaps
e501d1f
- Disable broken: SVT.se
e501d1f
e501d1f
* Thu Sep 06 2012 Russell Golden <niveusluna@niveusluna.org> - 2.2.2-1
e501d1f
- Fix a bug that was preventing settings from persisting:
e501d1f
    https://trac.torproject.org/projects/tor/ticket/6653
e501d1f
- Fixes and improvements: Lenovo, YahooNew, Pirate Party, OpenDNS, Wordpress
e501d1f
    https://trac.torproject.org/projects/tor/ticket/6604
e501d1f
    https://mail1.eff.org/pipermail/https-everywhere-rules/2012-August/001267.html
e501d1f
- Disable broken rulesets: FAZ, Playboy, Mapquest, Imgur, F-Secure
e501d1f
e501d1f
* Fri Aug 17 2012 Russell Golden <niveusluna@niveusluna.org> - 2.2.1-1
e501d1f
- Update to upstream 2.2.1. Hopefully this one will actually work.
e501d1f
e501d1f
* Fri Aug 17 2012 Russell Golden <niveusluna@niveusluna.org> - 2.1-5
e501d1f
- Add appManaged flag to prevent update in user profile directories
e501d1f
- prompted by release of badly broken 2.2 upstream
e501d1f
e501d1f
* Fri Aug 17 2012 Russell Golden <niveusluna@niveusluna.org> - 2.2-2
e501d1f
- Prevent ruleset bugs from crashing the UI
e501d1f
  -- https://trac.torproject.org/projects/tor/ticket/6280
e501d1f
- Fix the enable/disable button in Firefox 14
e501d1f
  -- https://trac.torproject.org/projects/tor/ticket/6212
e501d1f
- Fix a nasty bug in the optional "Search www.google.com" ruleset:
e501d1f
  -- https://gitweb.torproject.org/https-everywhere.git/commitdiff/50ca41a1e189ef8383781f803e51ec7a06688a3b
e501d1f
- Disable buggy/broken: ZDNet, Globe and Mail, Blip.tv, Governo Portugês,
e501d1f
  -- Alton Towers, McAfee :( :( :(
e501d1f
- Fixes: Yandex, Wikipedia, PirateParty, JBoss, Gentoo
e501d1f
- Hopefully the last 2.x release before 3.0 stable
e501d1f
e501d1f
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-4
e501d1f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e501d1f
e501d1f
* Mon Jul 02 2012 Russell Golden <niveusluna@niveusluna.org> - 2.1-3
e501d1f
- Change Requires to require firefox on all RHEL versions
e501d1f
e501d1f
* Sun Jun 24 2012 Russell Golden <niveusluna@niveusluna.org> - 2.1-2
e501d1f
- Fix context menu breakage when URIs lack a host
e501d1f
- Fixes: CiteULike, MozillaMessaging, Yandex, Demonoid, Pirate Party,
e501d1f
  --  Gentoo, NYTimes, Microsoft, Wikipedia, Lenovo
e501d1f
  --  https://mail1.eff.org/pipermail/https-everywhere-rules/2012-June/001189.html
e501d1f
  --  https://trac.torproject.org/projects/tor/ticket/6091
e501d1f
  --  https://mail1.eff.org/pipermail/https-everywhere-rules/2012-June/001190.html
e501d1f
  --  https://mail1.eff.org/pipermail/https-everywhere-rules/2012-May/001186.html
e501d1f
  --  https://mail1.eff.org/pipermail/https-everywhere/2012-May/001433.html
e501d1f
- Disable broken: MarketWatch, Disqus, Magento, Lavasoft, Project Syndicate,
e501d1f
  -- Typepad/Say Media
e501d1f
  --  https://trac.torproject.org/projects/tor/ticket/5899
e501d1f
  --  https://trac.torproject.org/projects/tor/ticket/5496
e501d1f
e501d1f
* Tue May 01 2012 Russell Golden <niveusluna@niveusluna.org> - 2.0.3-2
e501d1f
- Add file that I missed in the last build.
e501d1f
e501d1f
* Sat Apr 28 2012 Russell Golden <niveusluna@niveusluna.org> - 2.0.3-1
e501d1f
- Fix a downgrade attack that might allow attackers to deny HTTPS
e501d1f
    Everywhere protection for cookies on some domains.
e501d1f
    https://trac.torproject.org/projects/tor/ticket/5676
e501d1f
- Minor redirection mechanism fixes
e501d1f
- Fixes: WordPress, Yandex, OpenDNS, Via.me/AWS
e501d1f
- Improvements: Mozilla
e501d1f
- Disable broken: ReadWriteWeb
e501d1f
e501d1f
* Fri Apr 20 2012 Russell Golden <niveusluna@niveusluna.org> - 2.0.2-1
e501d1f
- Fix a weird wrong DOM-origin bug that occurred while redirects were in
e501d1f
  --  progress (this might have security implications, although we are unsure
e501d1f
  --  if it was exploitable).
e501d1f
  --  https://trac.torproject.org/projects/tor/ticket/5477
e501d1f
- By default, use https://google.co.cctld instead of
e501d1f
  --  encrypted.google.com
e501d1f
- Add an optional ruleset to use https://www.google.com
e501d1f
  -- instead of encrypted.google.com, too
e501d1f
- Ruleset fixes: Debian, Kohls, Malwarebytes, Yandex, Wikipedia, Mises.org,
e501d1f
  -- OpenDNS, Wizards of the Coast, Lenovo, Barnes and Noble
e501d1f
  --  https://trac.torproject.org/projects/tor/ticket/5509
e501d1f
  --  https://trac.torproject.org/projects/tor/ticket/5491
e501d1f
  --  https://trac.torproject.org/projects/tor/ticket/5303
e501d1f
- Stumble across more horrible security holes in the Verizon website:
e501d1f
  --  https://mail1.eff.org/pipermail/https-everywhere-rules/2012-February/001003.html
e501d1f
- Disable the Gentoo ruleset on non-CAcert platforms
e501d1f
- Disable buggy rulesets: IBM, Scribd, Wunderground :( :( :(
e501d1f
  --  https://trac.torproject.org/projects/tor/ticket/5344
e501d1f
  --  https://trac.torproject.org/projects/tor/ticket/5435
e501d1f
  --  https://trac.torproject.org/projects/tor/ticket/5630
e501d1f
e501d1f
* Wed Feb 29 2012 Russell Golden <niveusluna@niveusluna.org> - 2.0.1-1
e501d1f
- Sync to upstream 2.0.x branch
e501d1f
- Too many changes to all list here. None affect the end user experience.
e501d1f
    Being a Mozilla extension, it'll auto-update anyway.
e501d1f
e501d1f
* Wed Jan 11 2012 Russell Golden <niveusluna@niveusluna.org> - 1.2.2-1
e501d1f
- Google Cache is back!
e501d1f
- Fixes: Wikipedia, Identi.ca, Verizon, CCC.de, UserScripts, Yandex
e501d1f
- Improvements: EFF
e501d1f
- Disable broken: NSF.gov, WHO.int
e501d1f
e501d1f
* Wed Nov 16 2011 Russell Golden <niveusluna@niveusluna.org> - 1.2.1-1
e501d1f
- Google Cache is broken, remove it from GoogleServices :( :( :(
e501d1f
- Fix for the Google Image Search homepage
e501d1f
- Exclude help.duckduckgo.com:
e501d1f
--    https://trac.torproject.org/projects/tor/ticket/4399
e501d1f
- Disable Yahoo! Mail:
e501d1f
--    https://trac.torproject.org/projects/tor/ticket/4441
e501d1f
- Installable on Firefox 10
e501d1f
e501d1f
* Tue Nov 15 2011 Russell Golden <niveusluna@niveusluna.org> - 1.2-1
e501d1f
- Fixes: WordPress, Statcounter, Java, Bahn.de, SICS.se
e501d1f
- Improvements: use fancy new HTTPS Wikipedia
e501d1f
- Disable broken: OpenUniversity, TV.com, Random.org, kb.CERT
e501d1f
e501d1f
* Thu Oct 20 2011 Russell Golden <niveusluna@niveusluna.org> - 1.1-1
e501d1f
- Further tweaks to internals, will hopefully fix a number of weird issues:
e501d1f
--      https://trac.torproject.org/projects/tor/ticket/4194
e501d1f
--      https://trac.torproject.org/projects/tor/ticket/4149
e501d1f
--      https://mail1.eff.org/pipermail/https-everywhere/2011-October/001208.html
e501d1f
- YouTube is enabled by default!
e501d1f
- Fixes: Yandex, Statcounter, Polldaddy, SBB.ch
e501d1f
- Improvements: Facebook+
e501d1f
- Disable broken: Bloglines, EPEAT
e501d1f
e501d1f
* Sat Oct 8 2011 Russell Golden <niveusluna@niveusluna.org> - 1.0.3-2
e501d1f
- Changelog added for current version
e501d1f
e501d1f
* Fri Sep 16 2011 Russell Golden <niveusluna@niveusluna.org> - 1.0.1-1
e501d1f
- Initial packaging for Fedora
e501d1f