File vaultwarden-web-vault.spec of Package vaultwarden-web-vault

#
# spec file for package vaultwarden-web-vault
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%define pkg_name vaultwarden
Name:           %{pkg_name}-web-vault
Version:        2025.9.1
Release:        0
Summary:        Web Vault for Vaultwarden
License:        GPL-3.0-only
URL:            https://github.com/dani-garcia/bw_web_builds
Source0:        https://github.com/dani-garcia/bw_web_builds/releases/download/v%{version}/bw_web_v%{version}.tar.gz#/bw_web_builds-v%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  tar
Requires:       %{pkg_name} >= 1.28.0
BuildArch:      noarch

%description
Bitwarden web vault with patches to make it work with Vaultwarden.

%prep
tar -xf %{SOURCE0}

%build

%install
install -m 755 -d %{buildroot}%{_datadir}/%{pkg_name}
rm -f web-vault/.nojekyll
cp -dR web-vault %{buildroot}%{_datadir}/%{pkg_name}/
%fdupes %{buildroot}%{_prefix}

%files
%dir %{_datadir}/%{pkg_name}/
%dir %{_datadir}/%{pkg_name}/web-vault/
%{_datadir}/%{pkg_name}/web-vault/404.html
%{_datadir}/%{pkg_name}/web-vault/app/
%{_datadir}/%{pkg_name}/web-vault/connectors/
%{_datadir}/%{pkg_name}/web-vault/fonts/
%{_datadir}/%{pkg_name}/web-vault/images/
%{_datadir}/%{pkg_name}/web-vault/locales/
%{_datadir}/%{pkg_name}/web-vault/scripts/
%{_datadir}/%{pkg_name}/web-vault/*.css
%{_datadir}/%{pkg_name}/web-vault/*.css.map
%{_datadir}/%{pkg_name}/web-vault/*.js
%{_datadir}/%{pkg_name}/web-vault/*.js.map
%{_datadir}/%{pkg_name}/web-vault/index.html
%{_datadir}/%{pkg_name}/web-vault/favicon.ico
%{_datadir}/%{pkg_name}/web-vault/browserconfig.xml
%{_datadir}/%{pkg_name}/web-vault/duo-redirect-connector.html
%{_datadir}/%{pkg_name}/web-vault/redirect-connector.html
%{_datadir}/%{pkg_name}/web-vault/sso-connector.html
%{_datadir}/%{pkg_name}/web-vault/webauthn-connector.html
%{_datadir}/%{pkg_name}/web-vault/webauthn-fallback-connector.html
%{_datadir}/%{pkg_name}/web-vault/webauthn-mobile-connector.html
%{_datadir}/%{pkg_name}/web-vault/app-id.json
%{_datadir}/%{pkg_name}/web-vault/manifest.json
%{_datadir}/%{pkg_name}/web-vault/version.json
%{_datadir}/%{pkg_name}/web-vault/vw-version.json
%{_datadir}/%{pkg_name}/web-vault/*.json
%{_datadir}/%{pkg_name}/web-vault/*.module.wasm

%changelog
openSUSE Build Service is sponsored by