# fish plugin installed into fish's vendor dirs — the same layout fisher # uses under ~/.config/fish: conf.d/*.fish run at shell startup, functions/ # and completions/ autoload on demand. A plugin is plain fish source: there # is nothing to build. Per-package: trim the vendor dirs the upstream # actually ships (unmatched %%files globs fail the build). Name: fish-sponge Version: 1.1.0 Release: 1%{?dist} Summary: Fish history filter: drop failed or short-lived commands BuildArch: noarch License: MIT URL: https://github.com/meaningful-ooo/sponge Source0: https://github.com/meaningful-ooo/sponge/archive/refs/tags/1.1.0.tar.gz BuildRequires: fish Requires: fish %description Fish history filter: drop failed or short-lived commands %prep %autosetup -n sponge-%{version} %build %install for d in conf.d functions completions; do [ -d "$d" ] || continue for f in "$d"/*.fish; do install -Dpm644 "$f" "%{buildroot}%{_datadir}/fish/vendor_${d}/$(basename "$f")" done done %check for f in conf.d/*.fish functions/*.fish completions/*.fish; do if [ -f "$f" ]; then fish -n "$f" fi done %files %license LICENSE %{_datadir}/fish/vendor_conf.d/*.fish %{_datadir}/fish/vendor_functions.d/*.fish %changelog * Sat Oct 17 2026 Caio Bruno - 1.1.0-1 - Initial package