Name: bitwarden-rs-web-bin Version: 2.19.0b Release: 1%{?dist} Summary: Bitwarden web vault with patches for bitwarden-rs (upstream build) License: GPL-3.0-only URL: https://github.com/dani-garcia/bw_web_builds Provides: bitwarden-rs-web = %{version} Conflicts: bitwarden-rs-web Source0: https://github.com/dani-garcia/bw_web_builds/releases/download/v%{version}/bw_web_v%{version}.tar.gz Requires: bitwarden-rs %description This is the Bitwarden web vault with patches applied to make it work with bitwarden-rs. Upstream built, just packaged. %prep %install tar xf %{SOURCE0} install -d %{buildroot}/usr/share/bitwarden-rs mv web-vault %{buildroot}/usr/share/bitwarden-rs/web-vault %files /usr/share/bitwarden-rs/web-vault %pre getent group bitwarden-rs > /dev/null || groupadd --system bitwarden-rs getent passwd bitwarden-rs > /dev/null || useradd -Mrg bitwarden-rs -d /usr/share/bitwarden-rs bitwarden-rs %post chown -R bitwarden-rs /usr/share/bitwarden-rs/web-vault