File webcord.spec of Package webcord

Name:           webcord
Version:        4.11.1
Release:        0
Summary:        WebCord – Discord web client in Electron
License:        MIT
URL:            https://github.com/SpacingBat3/WebCord
Group:          Productivity/Networking/InstantMessenger
ExclusiveArch:  x86_64

Source0:        webcord-latest.rpm

%description
WebCord is a Discord web app wrapper built with Electron, focused on privacy and customization.

%prep
# nothing to prep

%build
# nothing to build, we are just repackaging

%install
mkdir -p %{buildroot}
cd %{buildroot}
rpm2cpio %{SOURCE0} | cpio -idmv

%files
%license /usr/lib/webcord/LICENSE
%license /usr/lib/webcord/LICENSES.chromium.html
%doc /usr/share/doc/webcord

/usr/bin/webcord
/usr/lib/webcord/
/usr/share/applications/webcord.desktop
/usr/share/pixmaps/webcord.png

#
# THIS IS THE FIX:
# You must add these lines back to claim the .build-id files.
#
%dir /usr/lib/.build-id
/usr/lib/.build-id/*

%changelog
* Wed Oct 29 2025 itachi_re <itachi_re@protonmail.com> - 1.0
- Repackaged WebCord release for openSUSE
openSUSE Build Service is sponsored by