%global moz_extensions %{_datadir}/mozilla/extensions %global firefox_app_id \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\} %global src_ext_id \{3d7eb24f-2740-49df-8937-200b1cc08f8a\} %global inst_dir %{moz_extensions}/%{firefox_app_id}/%{src_ext_id} Name: mozilla-flashblock Version: 1.5.14.2 Release: 2%{?dist}.2 Summary: Flash blocking extension for Mozilla Firefox Group: Applications/Internet License: MPL 1.1 or GPL 2.0 or LGPL 2.1 URL: https://addons.mozilla.org/en/firefox/addon/flashblock/ Source0: http://releases.mozilla.org/pub/mozilla.org/addons/433/flashblock-%{version}-fx.xpi #Source0: https://addons.mozilla.org/firefox/downloads/latest/433/addon-433-latest.xpi BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch #Requires: firefox BuildRequires: sed %description Extension for Firefox which blocks all flash content by default, and replaces with a black box. To play, simply click the on the play button. %prep %setup -q -c sed -i 's/4.0b8pre/5.*/g' install.rdf %build rm -rf %{buildroot} install -Dp -m 644 install.rdf %{buildroot}%{inst_dir}/install.rdf install -Dp -m 644 chrome.manifest %{buildroot}%{inst_dir}/chrome.manifest install -Dp -m 644 chrome/flashblock.jar %{buildroot}%{inst_dir}/chrome/flashblock.jar install -Dp -m 644 defaults/preferences/flashblock.js %{buildroot}%{inst_dir}/defaults/preferences/flashblock.js %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{inst_dir} %changelog * Sat Mar 18 2011 Chris Smart - 1.5.14.2-1 - Initial port.