File prismatik.spec of Package prismatik
#
# spec file for package prismatik
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define lrelease_qt5 %{_bindir}/lrelease-qt5
Name: prismatik
Version: 5.11.2.31
Release: 0
Summary: Is a fully simple hardware implementation of the backlight for any computer
License: GPL-3.0-only
URL: https://github.com/psieg/Lightpack
Source: %{name}-%{version}.tar.gz
BuildRequires: libqt5-linguist
BuildRequires: libqt5-qtbase-common-devel
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5SerialPort)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(fftw3)
%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 -p1
%build
pushd Software
%{lrelease_qt5} Lightpack.pro
%qmake5 -r
%make_build
%install
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
mkdir -p %{buildroot}%{_datadir}
install -D -m 0644 ./Software/dist_linux/package_template/etc/udev/rules.d/93-lightpack.rules %{buildroot}%{_prefix}/lib/udev/rules.d/93-lightpack.rules
install -D -m 0755 ./Software/bin/Prismatik %{buildroot}%{_bindir}/prismatik
cp -afr ./Software/dist_linux/package_template/usr/share/{applications,icons,pixmaps} %{buildroot}%{_datadir}/
%suse_update_desktop_file -r prismatik Settings HardwareSettings
%fdupes %{buildroot}/%{_prefix}
%files
%{_bindir}/prismatik
%{_sysconfdir}/udev
%{_prefix}/lib/udev/rules.d/93-lightpack.rules
%{_datadir}/applications/*.desktop
%{_datadir}/icons/Prismatik.png
%{_datadir}/icons/hicolor
%{_datadir}/icons/hicolor/*/*/prismatik-on.png
%{_datadir}/pixmaps/Prismatik.png
%changelog