Name: phoenix
Version: 20241216
Release: 1%{?dist}
Summary: Phoenix is a suite of configurations & advanced modifications for Mozilla Firefox, designed to put the user first - with a focus on privacy, security, freedom, & usability.
License: GPL-3.0-or-later+
URL: https://phoenix.celenity.dev
Source0: https://codeberg.org/celenity/Phoenix/raw/commit/57ab54066121013d4f431836c0a87f54f13f5296/archives/phoenix.zip
BuildArch: noarch

BuildRequires: unzip

%description
Phoenix is a suite of configurations & advanced modifications for Mozilla Firefox, designed to put the user first - with a focus on privacy, security, freedom, & usability.

https://phoenix.celenity.dev

%prep
mkdir -p %{_tmppath}/phoenix
unzip -o %{SOURCE0} -d %{_tmppath}/phoenix

%install
mkdir -p %{buildroot}/etc/firefox/defaults/pref
mkdir -p %{buildroot}/etc/firefox/phoenix/configs
mkdir -p %{buildroot}/etc/firefox/phoenix/configs/ui-fix
mkdir -p %{buildroot}/etc/firefox/phoenix/resources
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/dev
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/discord
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/hardened
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/hardened-no-sync
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/no-sync
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/twitter
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/ui-fix
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/dev
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/discord
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/hardened
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/hardened-no-sync
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/no-sync
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/twitter
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/youtube
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/ui-fix-base
mkdir -p %{buildroot}/etc/firefox/phoenix/userjs/youtube
mkdir -p %{buildroot}/etc/firefox/policies
mkdir -p %{buildroot}/etc/profile.d
mkdir -p %{buildroot}/usr/lib64/firefox
mkdir -p %{buildroot}/usr/share/doc/phoenix

install -m 644 %{_tmppath}/phoenix/filter.pac %{buildroot}/etc/firefox/phoenix/resources/
install -m 644 %{_tmppath}/phoenix/configs/dev.cfg %{buildroot}/etc/firefox/phoenix/configs/
install -m 644 %{_tmppath}/phoenix/configs/discord.cfg %{buildroot}/etc/firefox/phoenix/configs/
install -m 644 %{_tmppath}/phoenix/configs/ui-fix/dev.cfg %{buildroot}/etc/firefox/phoenix/configs/ui-fix/
install -m 644 %{_tmppath}/phoenix/configs/ui-fix/discord.cfg %{buildroot}/etc/firefox/phoenix/configs/ui-fix/
install -m 644 %{_tmppath}/phoenix/configs/ui-fix/hardened.cfg %{buildroot}/etc/firefox/phoenix/configs/ui-fix/
install -m 644 %{_tmppath}/phoenix/configs/ui-fix/hardened-no-sync.cfg %{buildroot}/etc/firefox/phoenix/configs/ui-fix/
install -m 644 %{_tmppath}/phoenix/configs/ui-fix/no-sync.cfg %{buildroot}/etc/firefox/phoenix/configs/ui-fix/
install -m 644 %{_tmppath}/phoenix/configs/ui-fix/twitter.cfg %{buildroot}/etc/firefox/phoenix/configs/ui-fix/
install -m 644 %{_tmppath}/phoenix/configs/ui-fix/youtube.cfg %{buildroot}/etc/firefox/phoenix/configs/ui-fix/
install -m 644 %{_tmppath}/phoenix/configs/hardened.cfg %{buildroot}/etc/firefox/phoenix/configs/
install -m 644 %{_tmppath}/phoenix/configs/hardened-no-sync.cfg %{buildroot}/etc/firefox/phoenix/configs/
install -m 644 %{_tmppath}/phoenix/configs/no-sync.cfg %{buildroot}/etc/firefox/phoenix/configs/
install -m 644 %{_tmppath}/phoenix/configs/twitter.cfg %{buildroot}/etc/firefox/phoenix/configs/
install -m 644 %{_tmppath}/phoenix/configs/ui-fix.cfg %{buildroot}/etc/firefox/phoenix/configs/
install -m 644 %{_tmppath}/phoenix/configs/youtube.cfg %{buildroot}/etc/firefox/phoenix/configs/
install -m 644 %{_tmppath}/phoenix/defaults/pref/phoenix.js %{buildroot}/etc/firefox/defaults/pref/
install -m 644 %{_tmppath}/phoenix/etc/profile.d/phoenix-env-overrides.sh %{buildroot}/etc/profile.d/
install -m 644 %{_tmppath}/phoenix/phoenix.cfg %{buildroot}/usr/lib64/firefox/
install -m 644 %{_tmppath}/phoenix/policies.json %{buildroot}/etc/firefox/policies/
install -m 644 %{_tmppath}/phoenix/userjs/linux/dev/user.js %{buildroot}/etc/firefox/phoenix/userjs/dev/
install -m 644 %{_tmppath}/phoenix/userjs/linux/discord/user.js %{buildroot}/etc/firefox/phoenix/userjs/discord/
install -m 644 %{_tmppath}/phoenix/userjs/linux/hardened/user.js %{buildroot}/etc/firefox/phoenix/userjs/hardened/
install -m 644 %{_tmppath}/phoenix/userjs/linux/hardened-no-sync/user.js %{buildroot}/etc/firefox/phoenix/userjs/hardened-no-sync/
install -m 644 %{_tmppath}/phoenix/userjs/linux/no-sync/user.js %{buildroot}/etc/firefox/phoenix/userjs/no-sync/
install -m 644 %{_tmppath}/phoenix/userjs/linux/twitter/user.js %{buildroot}/etc/firefox/phoenix/userjs/twitter/
install -m 644 %{_tmppath}/phoenix/userjs/linux/ui-fix/dev/user.js %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/dev/
install -m 644 %{_tmppath}/phoenix/userjs/linux/ui-fix/discord/user.js %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/discord/
install -m 644 %{_tmppath}/phoenix/userjs/linux/ui-fix/hardened/user.js %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/hardened/
install -m 644 %{_tmppath}/phoenix/userjs/linux/ui-fix/hardened-no-sync/user.js %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/hardened-no-sync/
install -m 644 %{_tmppath}/phoenix/userjs/linux/ui-fix/no-sync/user.js %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/no-sync/
install -m 644 %{_tmppath}/phoenix/userjs/linux/ui-fix/twitter/user.js %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/twitter/
install -m 644 %{_tmppath}/phoenix/userjs/linux/ui-fix/youtube/user.js %{buildroot}/etc/firefox/phoenix/userjs/ui-fix/youtube/
install -m 644 %{_tmppath}/phoenix/userjs/linux/ui-fix-base/user.js %{buildroot}/etc/firefox/phoenix/userjs/ui-fix-base/
install -m 644 %{_tmppath}/phoenix/userjs/linux/youtube/user.js %{buildroot}/etc/firefox/phoenix/userjs/youtube/
install -m 644 %{_tmppath}/phoenix/README.md %{buildroot}/usr/share/doc/phoenix/

%files
/etc/firefox/defaults/pref/phoenix.js
/etc/firefox/phoenix/configs/dev.cfg
/etc/firefox/phoenix/configs/discord.cfg
/etc/firefox/phoenix/configs/ui-fix/dev.cfg
/etc/firefox/phoenix/configs/ui-fix/discord.cfg
/etc/firefox/phoenix/configs/ui-fix/hardened.cfg
/etc/firefox/phoenix/configs/ui-fix/hardened-no-sync.cfg
/etc/firefox/phoenix/configs/ui-fix/no-sync.cfg
/etc/firefox/phoenix/configs/ui-fix/twitter.cfg
/etc/firefox/phoenix/configs/ui-fix/youtube.cfg
/etc/firefox/phoenix/configs/hardened.cfg
/etc/firefox/phoenix/configs/hardened-no-sync.cfg
/etc/firefox/phoenix/configs/no-sync.cfg
/etc/firefox/phoenix/configs/twitter.cfg
/etc/firefox/phoenix/configs/ui-fix.cfg
/etc/firefox/phoenix/configs/youtube.cfg
/etc/firefox/phoenix/resources/filter.pac
/etc/firefox/phoenix/userjs/dev/user.js
/etc/firefox/phoenix/userjs/discord/user.js
/etc/firefox/phoenix/userjs/hardened/user.js
/etc/firefox/phoenix/userjs/hardened-no-sync/user.js
/etc/firefox/phoenix/userjs/no-sync/user.js
/etc/firefox/phoenix/userjs/twitter/user.js
/etc/firefox/phoenix/userjs/ui-fix/dev/user.js
/etc/firefox/phoenix/userjs/ui-fix/discord/user.js
/etc/firefox/phoenix/userjs/ui-fix/hardened/user.js
/etc/firefox/phoenix/userjs/ui-fix/hardened-no-sync/user.js
/etc/firefox/phoenix/userjs/ui-fix/no-sync/user.js
/etc/firefox/phoenix/userjs/ui-fix/twitter/user.js
/etc/firefox/phoenix/userjs/ui-fix/youtube/user.js
/etc/firefox/phoenix/userjs/ui-fix-base/user.js
/etc/firefox/phoenix/userjs/youtube/user.js
/etc/firefox/policies/policies.json
/etc/profile.d/phoenix-env-overrides.sh
/usr/lib64/firefox/phoenix.cfg
/usr/share/doc/phoenix/README.md

%changelog
* Mon Dec 16 2024 celenity <celenity@celenity.dev> - 20241216-1
- Welcome to the next generation of Phoenix.