Name: ckb-next Version: 0.4.3 Release: %mkrel 1 Summary: Corsair RGB keyboard driver for Linux and OS X Group: System/Configuration #bundled kissfft library is BSD License: GPLv2 and BSD URL: https://github.com/ckb-next/ckb-next Source0: https://github.com/ckb-next/ckb-next/archive/v%{version}/%{name}-%{version}.tar.gz # Upstream provides none of the following files Source1: ckb-next.appdata.xml Source2: ckb-next.1 Source3: 99-ckb-next.preset Source4: README.install.urpmi Patch0: ckb-next-0.4.2-fix-daemon-path.patch BuildRequires: cmake BuildRequires: cmake(Qt5Core) >= 5.5.1 BuildRequires: cmake(Qt5DBus) >= 5.5.1 BuildRequires: cmake(Qt5Gui) >= 5.5.1 BuildRequires: cmake(Qt5Network) >= 5.5.1 BuildRequires: cmake(Qt5Widgets) >= 5.5.1 BuildRequires: cmake(Qt5X11Extras) >= 5.5.1 BuildRequires: cmake(Qt5LinguistTools) >= 5.5.1 BuildRequires: quazip-devel BuildRequires: pkgconfig(dbusmenu-qt5) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(gudev-1.0) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(libpulse) BuildRequires: pkgconfig(zlib) BuildRequires: desktop-file-utils BuildRequires: appstream-util BuildRequires: ImageMagick Requires(post): rpm-helper >= %{rpmhelper_required_version} Requires(preun): rpm-helper >= %{rpmhelper_required_version} Requires(postun): rpm-helper >= %{rpmhelper_required_version} %description ckb-next is an open-source driver for Corsair keyboards and mice. It aims to bring the features of their proprietary CUE software to the Linux and Mac operating systems. This project is currently a work in progress, but it already supports much of the same functionality, including full RGB animations. %files %license LICENSE %doc CHANGELOG.md FIRMWARE README.md README.install.urpmi %{_bindir}/* %{_libexecdir}/%{name}-* %{_unitdir}/ckb-next-daemon.service %{_presetdir}/99-ckb-next.preset %{_datadir}/applications/ckb-next.desktop %{_datadir}/appdata/ckb-next.appdata.xml %{_iconsdir}/hicolor/*/apps/ckb-next* %{_mandir}/man1/* %{_udevrulesdir}/*.rules %{_libdir}/cmake/ckb-next %prep %setup -q %autopatch -p1 %build # We force systemd since autodetection fail inside the buildsystem %cmake -DCMAKE_BUILD_TYPE=Release \ -DFORCE_INIT_SYSTEM=systemd \ -DSAFE_INSTALL=OFF \ -DSAFE_UNINSTALL=OFF \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_INSTALL_LIBEXECDIR=libexec \ -DDISABLE_UPDATER=1 \ -DUDEV_RULE_DIRECTORY=%{_udevrulesdir} %cmake_build %install %cmake_install %__install -Dpm 0644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml %__install -Dpm 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/ckb-next.1 %__install -Dpm 0644 %{SOURCE3} %{buildroot}/%{_presetdir}/99-ckb-next.preset %__install -Dpm 0644 %{SOURCE4} README.install.urpmi appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml %post %_post_service %{name}-daemon %preun %_preun_service %{name}-daemon %postun %systemd_postun_with_restart %{name}-daemon