File mobile-config-firefox.spec of Package mobile-config-firefox
#
# spec file for package mobile-config-firefox
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define firefox_ver 112
Name: mobile-config-firefox
Version: 4.3.2
Release: 0
Summary: Mobile configuration for Firefox
License: GPL-3.0-only
URL: https://gitlab.com/postmarketOS/mobile-config-firefox
Source0: mobile-config-firefox-%{version}.tar.xz
BuildRequires: make
Requires: MozillaFirefox >= %{firefox_ver}
#If the Provides is not given, default branding overrides the mobile config
Provides: MozillaFirefox-branding >= %{firefox_ver}
%description
An attempt at creating a distro-independent mobile
and privacy friendly configuration for Firefox.
%prep
%autosetup -p1 -n mobile-config-firefox-%{version}/
%build
%install
%make_install DISTRO=openSUSE FIREFOX_DIR=%{_libdir}/firefox
%files
%license LICENSE
%doc README.md
%dir %{_sysconfdir}/firefox
%dir %{_sysconfdir}/firefox/policies
%config %{_sysconfdir}/firefox/policies/policies.json
%dir %{_sysconfdir}/mobile-config-firefox
%config %{_sysconfdir}/mobile-config-firefox/userContent.files
%config %{_sysconfdir}/mobile-config-firefox/userChrome.files
%dir %{_sysconfdir}/mobile-config-firefox/userChrome/
%config %{_sysconfdir}/mobile-config-firefox/userChrome/*
%dir %{_sysconfdir}/mobile-config-firefox/userContent/
%config %{_sysconfdir}/mobile-config-firefox/userContent/*
%dir %{_sysconfdir}/mobile-config-firefox/common/
%config %{_sysconfdir}/mobile-config-firefox/common/header.css
%dir %{_libdir}/firefox
%dir %{_libdir}/firefox/defaults
%dir %{_libdir}/firefox/defaults/pref
%{_libdir}/firefox/defaults/pref/mobile-config-prefs.js
%{_libdir}/firefox/mobile-config-autoconfig.js
%{_datadir}/metainfo/org.postmarketos.mobile_config_firefox.metainfo.xml
%changelog