%global moz_extensions %{_datadir}/mozilla/extensions %global firefox_app_id \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\} %global src_ext_id foxyproxy@eric.h.jung %global firefox_inst_dir %{moz_extensions}/%{firefox_app_id} Name: mozilla-foxyproxy Version: 9.2 Release: %{autorelease} Summary: Easy to use advanced Proxy Management tool for everyone. License: GPL-2.0-or-later URL: https://getfoxyproxy.org/ Source0: https://addons.mozilla.org/firefox/downloads/file/4472757/foxyproxy_standard-%{version}.xpi Source1: mozilla-foxyproxy.metainfo.xml Requires: mozilla-filesystem BuildArch: noarch # GNOME Software Center not present on EL < 7 %if 0%{?fedora} || 0%{?rhel} >= 7 BuildRequires: libappstream-glib %endif %description FoxyProxy is an open-source, advanced proxy management tool that completely replaces Firefox's limited proxying capabilities. %prep %setup -q -c %build %install install -Dpm644 %{SOURCE0} %{buildroot}%{firefox_inst_dir}/%{src_ext_id}.xpi install -Dpm644 %{SOURCE1} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.metainfo.xml %files %{firefox_inst_dir}/%{src_ext_id}.xpi # GNOME Software Center metadata %if 0%{?fedora} || 0%{?rhel} >= 7 %{_metainfodir}/%{name}.metainfo.xml %endif %changelog %autochangelog