%global debug_package %{nil} %global _missing_build_ids_terminate_build 0 Name: opendeck Version: 2.8.2 Release: 1%{?dist} Summary: Cross-platform stream deck controller software License: GPL-3.0-or-later URL: https://github.com/nekename/OpenDeck # Logic to pick the correct upstream RPM based on architecture %ifarch x86_64 Source0: %{url}/releases/download/v%{version}/%{name}-%{version}-1.x86_64.rpm %endif %ifarch aarch64 Source0: %{url}/releases/download/v%{version}/%{name}-%{version}-1.aarch64.rpm %endif # Build requirements to extract the RPM BuildRequires: rpm-build BuildRequires: cpio # Runtime dependencies (Based on upstream and Fedora equivalents) Requires: webkit2gtk4.1 Requires: libappindicator-gtk3 Requires: librsvg2 Requires: openssl Requires: udev ExclusiveArch: x86_64 aarch64 %description OpenDeck is a desktop application for using stream controller devices like the Elgato Stream Deck on Linux. It supports original Stream Deck plugins and offers a cross-platform alternative to the official software. %prep # Create a directory for the source and extract the upstream RPM into it %setup -c -T rpm2cpio %{SOURCE0} | cpio -dimv %build # Nothing to build, we are using pre-compiled binaries %install # Copy all extracted files to the buildroot mkdir -p %{buildroot}/usr cp -a usr/* %{buildroot}/usr/ # Ensure udev rules are in the correct place (Fedora prefers /usr/lib/udev/rules.d) # If upstream put them in /etc, move them (adjust based on inspection) if [ -d etc/udev ]; then mkdir -p %{buildroot}%{_udevrulesdir} cp -a etc/udev/rules.d/* %{buildroot}%{_udevrulesdir}/ fi %files # List all files to be included %{_bindir}/opendeck %{_datadir}/applications/*.desktop %{_datadir}/icons/hicolor/* %{_udevrulesdir}/*.rules # Include other directories if they exist in the upstream RPM (check content) # Usually /usr/share/opendeck or similar: %{_datadir}/opendeck/ %changelog * Fri Jan 30 2026 Robbware - 2.8.2-1 - Initial package for COPR using upstream binary