%include %{_rpmconfigdir}/macros.mozilla %global _mozilla_extension_id \{73a6fe31-595d-460b-a920-fcc0f8843232\} Name: mozilla-noscript Version: 2.1.4 Release: 1%{?dist} Summary: JavaScript white list extension for Mozilla browser Group: Applications/Internet License: GPLv2+ URL: http://noscript.net/ # Source is a .xpi file, there is no public VCS or a tarball Source0: https://secure.informaction.com/download/releases/noscript-%{version}.xpi BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: mozilla-build BuildRequires: dos2unix %if 0%{?rhel} == 5 Requires: firefox %else Requires: mozilla-filesystem %endif BuildArch: noarch Requires: firefox-noscript Requires: seamonkey-noscript %description The NoScript Firefox extension provides extra protection for Firefox. It allows JavaScript, Java, Flash and other plug-ins to be executed only by trusted web sites of your choice (e.g. your online bank) and additionally provides Anti-XSS protection. %package common Summary: Common files for Mozilla extension noscript %description common The NoScript Firefox extension provides extra protection for Firefox. It allows JavaScript, Java, Flash and other plug-ins to be executed only by trusted web sites of your choice (e.g. your online bank) and additionally provides Anti-XSS protection. This package contains common files. %package -n firefox-noscript Summary: JavaScript white list extension for Mozilla Firefox Requires: %{name}-common = %{version}-%{release} %description -n firefox-noscript The NoScript Firefox extension provides extra protection for Firefox. It allows JavaScript, Java, Flash and other plug-ins to be executed only by trusted web sites of your choice (e.g. your online bank) and additionally provides Anti-XSS protection. %package -n seamonkey-noscript Summary: JavaScript white list extension for Mozilla Seamonkey Requires: %{name}-common = %{version}-%{release} %description -n seamonkey-noscript The NoScript Seamonkey extension provides extra protection for Seamonkey. It allows JavaScript, Java, Flash and other plug-ins to be executed only by trusted web sites of your choice (e.g. your online bank) and additionally provides Anti-XSS protection. %prep %setup -q -c # don't use default whitelisting sed -i 's/pref("noscript.default", "[a-z :.]*/pref("noscript.default", "about:blank about:credits/g' defaults/preferences/noscript.js dos2unix -f GPL.txt dos2unix NoScript_License.txt %build %install rm -rf %{buildroot} %xpi_unpack -f %{SOURCE0} %xpi_symlink -a %{firefox_app_id} %xpi_symlink -a %{seamonkey_app_id} %clean rm -rf %{buildroot} %files common %defattr(-,root,root,-) %doc GPL.txt NoScript_License.txt mozilla.cfg %{_mozilla_common_extdir}/%{name}/ %files -n firefox-noscript %defattr(-,root,root,-) %{_firefox_extdir}/%{_mozilla_extension_id}/ %files -n seamonkey-noscript %defattr(-,root,root,-) %{_seamonkey_extdir}/%{_mozilla_extension_id}/ %changelog * Tue Oct 11 2011 Thomas Spura - 2.1.4-2 - change macros to new draft and suppose the macros are defined in macros.mozilla * Fri Sep 30 2011 Thomas Spura - 2.1.4-1 - update to new version (#712331) * Fri Aug 5 2011 Thomas Spura - 2.1.1-2 - change the macros to match MozillaExtensionsDraft * Fri Jun 3 2011 Thomas Spura - 2.1.1-1 - update to new version (#691356) - renew patch * Thu Mar 10 2011 Thomas Spura - 2.0.9.9-1 - update to new version (#667389) - renew patch * Tue Feb 08 2011 Fedora Release Engineering - 2.0.9.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jan 3 2011 Thomas Spura - 2.0.9.2-1 - update to new version - renew patch * Mon Oct 18 2010 Thomas Spura - 2.0.5.1-1 - update to new version * Mon Oct 18 2010 Thomas Spura - 2.0.3.5-1 - update to new version - renew patch * Thu Aug 19 2010 Thomas Spura - 2.0.2.1-2 - require firefox and not mozilla-filesystem on el5 * Wed Aug 18 2010 Thomas Spura - 2.0.2.1-1 - update to new version * Fri Jul 30 2010 Thomas Spura - 2.0-1 - update to new version * Sun Jul 18 2010 Thomas Spura - 1.10-1 - new version - renew preferences patch * Wed Jun 30 2010 Thomas Spura - 1.9.9.97-1 - new version * Sat Jun 12 2010 Thomas Spura - 1.9.9.87-1 - new version * Fri May 28 2010 Thomas Spura - 1.9.9.81-1 - new version * Mon May 24 2010 Thomas Spura - 1.9.9.79-1 - new version * Sun May 16 2010 Thomas Spura - 1.9.9.74-1 - new version - renew patch * Thu Apr 22 2010 Thomas Spura - 1.9.9.69-1 - new version * Mon Apr 19 2010 Thomas Spura - 1.9.9.66-1 - new version * Sat Apr 3 2010 Thomas Spura - 1.9.9.60-1 - new version * Fri Mar 19 2010 Thomas Spura - 1.9.9.57-1 - update to new version - force dos2unix on 'binary' GPL.txt - renew patch * Sat Feb 27 2010 Thomas Spura - 1.9.9.50-1 - update to new version - fix some spelling errors * Sun Feb 7 2010 Thomas Spura - 1.9.9.45-1 - update to new version * Sat Jan 23 2010 Thomas Spura - 1.9.9.39-1 - update to new version * Sat Jan 16 2010 Thomas Spura - 1.9.9.35-4 - install with -p * Fri Jan 15 2010 Thomas Spura - 1.9.9.35-3 - also install seamonkey app_id (Thomas Moschny) * Fri Jan 15 2010 Thomas Spura - 1.9.9.35-2 - remove R: firefox, this plugin also works for seamonky and so on it's up to the user, what to use (Thomas Moschny) * Fri Jan 15 2010 Thomas Spura - 1.9.9.35-1 - update to new version - %%global vs %%define - install in %%{_datadir} -> noarch - delete changelog - R: mozilla-filesystem for owning %%{_datadir}/mozilla/extensions * Sun Jul 19 2009 Andreas Thienemann - 1.9.6-1 - Initial package