File obs-websocket.spec of Package obs-websocket
# Maintainer: <aggraef at gmail.com>
%undefine _debugsource_packages
Name: obs-websocket
Version: 4.9.1
Release: 1%{?dist}
Summary: WebSocket API for OBS Studio
URL: https://github.com/obsproject/obs-websocket
License: GPLv2+
Source0: https://github.com/obsproject/obs-websocket/releases/download/4.9.1/obs-websocket_4.9.1-1_amd64.deb
BuildRequires: bsdtar
%description
obs-websocket is a plugin for OBS Studio which provides remote control of OBS
Studio through the JavaScript WebSocket API.
NOTE: This is an older version which still supports the original protocol,
which is incompatible with obs-websocket 5.0.0.
%prep
%build
rm -rf %{name}-%{version}
mkdir -p %{name}-%{version}/root
cd %{name}-%{version}
ar xf %{SOURCE0}
bsdtar -xf data.tar.xz -C root
rm -rf root/usr/lib/x86_64-linux-gnu
mv root/usr/lib root/usr/lib64
%install
rm -rf $RPM_BUILD_ROOT
cp -r %{name}-%{version}/root %{buildroot}
%files
/usr/lib64/obs-plugins
/usr/share/obs/obs-plugins
%changelog
* Mon Aug 1 2022 Albert Graef <aggraef@gmail.com>
- Initial release