# Omarchy Quattro - elsewhen (world clock plugin for the Omarchy shell) # Upstream: https://github.com/omacom/elsewhen (QML/JS/Python, noarch) # Repack of the upstream tag archive, mirroring the Arch PKGBUILD's explicit # runtime allow-list. There is no build step: the package *is* the plugin tree # the shell loads from its first-party plugin directory, # /usr/share/omarchy/shell/plugins (see upstream/docs/omarchy-shell.md). Name: elsewhen Version: 1.0.0 Release: 2%{?dist} Summary: World clock plugin for the Omarchy shell License: MIT URL: https://github.com/omacom/elsewhen Source0: %{url}/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch Requires: quickshell Requires: python3 %description Elsewhen is the world clock plugin for the Omarchy shell, with a spinnable globe. It ships as a plugin tree under /usr/share/omarchy/shell/plugins/, the shell's first-party plugin directory, and is discovered automatically. The plugin shells out to python3 for its facts feed. %prep %autosetup -n %{name}-%{version} %install # Explicit allow-list (same as upstream's PKGBUILD): tests/, .github/ and the # rest of the source tree never reach the package. An unmatched glob is left # literal and fails the install, which is the right outcome for a release tree # that is missing its QML or JS. # # The path must sit under shell/plugins/: the shell scans OMARCHY_PATH/shell/plugins # for first-party plugins and ~/.config/omarchy/plugins for third-party ones, so # an install under OMARCHY_PATH/plugins alone is never discovered. plugin=%{buildroot}%{_datadir}/omarchy/shell/plugins/omacom.elsewhen install -d "$plugin" for f in manifest.json cities.json world.json worldclock-data.py *.qml *.js; do install -m644 "$f" "$plugin/$f" done %check # The shell loads the entry point the manifest declares. A tree missing either # would install cleanly and never load, so fail here instead. test -f manifest.json grep -Eq '"id"[[:space:]]*:[[:space:]]*"omacom\.elsewhen"' manifest.json grep -Eq '"barWidget"[[:space:]]*:[[:space:]]*"Panel\.qml"' manifest.json test -f Panel.qml %files %license LICENSE %doc README.md %{_datadir}/omarchy/shell/plugins/omacom.elsewhen/ %changelog * Tue Sep 22 2026 whelanh - 1.0.0-2 - Install the plugin under shell/plugins so the shell discovers it; the previous plugins/ path was never scanned (no World Clock on the bar) * Sun Sep 20 2026 whelanh - 1.0.0-1 - Initial Fedora package: world clock plugin from upstream v1.0.0