%global debug_package %{nil} %global _missing_build_ids_terminate_build 0 Name: opendeck Version: 2.8.2 Release: 3%{?dist} Summary: Cross-platform stream deck controller software License: GPL-3.0-or-later URL: https://github.com/nekename/OpenDeck # Select the correct source 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 # REQUIRED for the udev macro BuildRequires: systemd-rpm-macros # Tools to extract the upstream RPM BuildRequires: rpm-build BuildRequires: cpio # Runtime dependencies Requires: webkit2gtk4.1 Requires: libappindicator-gtk3 Requires: librsvg2 Requires: openssl Requires: udev Requires: hicolor-icon-theme ExclusiveArch: x86_64 aarch64 %description OpenDeck is a desktop application for using stream controller devices like the Elgato Stream Deck on Linux. %prep # Extract the upstream RPM into the current directory %setup -c -T rpm2cpio %{SOURCE0} | cpio -dimv %build # No build step needed, binaries are pre-compiled %install # 1. Create the directory structure in the buildroot mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_libdir}/opendeck mkdir -p %{buildroot}%{_udevrulesdir} # (Optional) Create these just in case upstream adds them later mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/icons # 2. Copy the files from the extracted source to the buildroot # Copy the binary # We use 'cp -a' to preserve permissions cp -a usr/bin/opendeck %{buildroot}%{_bindir}/opendeck # Copy the library folder (plugins, etc.) # Note: Upstream uses /usr/lib, but Fedora uses /usr/lib64. # We install to %{_libdir} which handles this automatically. cp -a usr/lib/opendeck/* %{buildroot}%{_libdir}/opendeck/ # Copy udev rules # Your screenshot shows they are in /etc/udev/rules.d/ inside the source RPM cp -a etc/udev/rules.d/* %{buildroot}%{_udevrulesdir}/ %files # The binary %{_bindir}/opendeck # The library folder %{_libdir}/opendeck/ # The udev rules %{_udevrulesdir}/*.rules %changelog * Fri Jan 30 2026 Robbware - 2.8.2-1 - Initial package for COPR using upstream binary