Name: lightpack Version: 5.11.2.31 Release: 1%{?dist} Summary: Hardware implementation of the backlight License: GPL-3.0-or-later URL: https://github.com/psieg/Lightpack Source0: %{url}/archive/refs/tags/5.11.2.31.tar.gz BuildRequires: gcc BuildRequires: pkgconfig BuildRequires: pkgconfig(Qt5) BuildRequires: qtchooser BuildRequires: pkgconfig(Qt5Designer) BuildRequires: pkgconfig(Qt5SerialPort) BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(fftw3) BuildRequires: gnome-shell-extension-appindicator BuildRequires: desktop-file-utils Requires: udev %description Lightpack is a fully open-source and simple hardware implementation of the backlight for any computer. It's a USB content-driven ambient lighting system. Prismatik is an open-source software we buid to control Lightpack devices. It grabs the screen, analyzes the picture, calculates resulting colors, and provides soft and gentle lighting with a Lightpack device. Moreover, you can handle other devices with Prismatik such as Adalight, Ardulight, or even Alienware LightFX system. %prep %autosetup -n Lightpack-%{version} #Fix bin name in desktop-file sed -i 's|prismatik|Prismatik|' Software/dist_linux/package_template/usr/share/applications/prismatik.desktop %build pushd Software %{qmake_qt5} -r %make_build popd %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_udevrulesdir} mkdir -p %{buildroot}%{_datadir}/icons/hicolor/22x22/apps mkdir -p %{buildroot}%{_datadir}/pixmaps/ install -p -m 755 Software/bin/Prismatik %{buildroot}%{_bindir}/Prismatik install -p -m 644 93-lightpack.rules %{buildroot}%{_udevrulesdir}/93-lightpack.rules install -p -m 644 Software/dist_linux/package_template/usr/share/icons/hicolor/22x22/apps/prismatik-on.png \ %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/prismatik-on.png install -p -m 644 Software/dist_linux/package_template/usr/share/pixmaps/Prismatik.png \ %{buildroot}%{_datadir}/pixmaps/Prismatik.png desktop-file-install Software/dist_linux/package_template/usr/share/applications/prismatik.desktop %files %license LICENSE %doc README.md %{_bindir}/Prismatik %{_datadir}/applications/prismatik.desktop %{_datadir}/icons/hicolor/22x22/apps/prismatik-on.png %{_datadir}/pixmaps/Prismatik.png %{_udevrulesdir}/93-lightpack.rules %changelog * Thu Jan 19 2023 Vasiliy Glazov 5.11.2.31-1 - Initial packaging