From 58363347fbf3a213c28a974da8dced148a8ce743 Mon Sep 17 00:00:00 2001 From: Anna Simmons Date: Thu, 21 May 2026 23:22:24 -0500 Subject: [PATCH] Add fx-autoconfig (#12472) * add: fx-autoconfig * Remove unnecessary comment * Add arches line to hcl so it only builds once --- anda/misc/fx-autoconfig/anda.hcl | 6 ++++ anda/misc/fx-autoconfig/fx-autoconfig.spec | 39 ++++++++++++++++++++++ anda/misc/fx-autoconfig/update.rhai | 5 +++ 3 files changed, 50 insertions(+) create mode 100644 anda/misc/fx-autoconfig/anda.hcl create mode 100644 anda/misc/fx-autoconfig/fx-autoconfig.spec create mode 100644 anda/misc/fx-autoconfig/update.rhai diff --git a/anda/misc/fx-autoconfig/anda.hcl b/anda/misc/fx-autoconfig/anda.hcl new file mode 100644 index 0000000000..d76c74f4d9 --- /dev/null +++ b/anda/misc/fx-autoconfig/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "fx-autoconfig.spec" + } +} diff --git a/anda/misc/fx-autoconfig/fx-autoconfig.spec b/anda/misc/fx-autoconfig/fx-autoconfig.spec new file mode 100644 index 0000000000..2df1ea1ae2 --- /dev/null +++ b/anda/misc/fx-autoconfig/fx-autoconfig.spec @@ -0,0 +1,39 @@ +%global commit d469a80f12e286c0e937d8b93c01dfc2d55dca8f +%global commit_date 20260504 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: fx-autoconfig +Version: 0~%{commit_date}git.%{shortcommit} +Release: 1%{?dist} +Summary: Firefox userChrome.js manager +Packager: Anna Simmons + +License: MPL-2.0 +URL: https://github.com/MrOtherGuy/fx-autoconfig +Source0: https://github.com/MrOtherGuy/fx-autoconfig/archive/%commit.tar.gz +Requires: firefox +BuildArch: noarch + +%description +%{summary}. + +%prep +%autosetup -n fx-autoconfig-%commit + +%build + +%install +mkdir -p %{buildroot}%{_libdir}/firefox + +install -Dm644 program/config.js %{buildroot}%{_libdir}/firefox/ +cp -pr program/defaults %{buildroot}%{_libdir}/firefox/defaults + +%files +%license LICENSE +%doc readme.md +%{_libdir}/firefox/config.js +%{_libdir}/firefox/defaults/ + +%changelog +* Thu May 21 2026 Anna Simmons +- Initial package build diff --git a/anda/misc/fx-autoconfig/update.rhai b/anda/misc/fx-autoconfig/update.rhai new file mode 100644 index 0000000000..af3101ce9c --- /dev/null +++ b/anda/misc/fx-autoconfig/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("MrOtherGuy/fx-autoconfig")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}