1 |
Name: ckb-next |
Name: ckb-next |
2 |
Version: 0.4.2 |
Version: 0.5.0 |
3 |
Release: 1 |
Release: %mkrel 2 |
4 |
Summary: Corsair RGB keyboard driver for Linux and OS X |
Summary: Corsair RGB keyboard driver for Linux and OS X |
5 |
Group: System/Configuration |
Group: System/Configuration |
6 |
#bundled kissfft library is BSD |
#bundled kissfft library is BSD |
17 |
|
|
18 |
Patch0: ckb-next-0.4.2-fix-daemon-path.patch |
Patch0: ckb-next-0.4.2-fix-daemon-path.patch |
19 |
|
|
20 |
|
|
21 |
BuildRequires: cmake |
BuildRequires: cmake |
22 |
BuildRequires: cmake(Qt5Core) >= 5.3 |
BuildRequires: cmake(Qt5Core) >= 5.5.1 |
23 |
BuildRequires: cmake(Qt5Gui) >= 5.3 |
BuildRequires: cmake(Qt5DBus) >= 5.5.1 |
24 |
BuildRequires: cmake(Qt5Network) >= 5.3 |
BuildRequires: cmake(Qt5Gui) >= 5.5.1 |
25 |
BuildRequires: cmake(Qt5Widgets) >= 5.3 |
BuildRequires: cmake(Qt5Network) >= 5.5.1 |
26 |
BuildRequires: quazip-devel |
BuildRequires: cmake(Qt5Widgets) >= 5.5.1 |
27 |
|
BuildRequires: cmake(Qt5X11Extras) >= 5.5.1 |
28 |
|
BuildRequires: cmake(Qt5LinguistTools) >= 5.5.1 |
29 |
|
BuildRequires: cmake(QuaZip-Qt5) |
30 |
|
BuildRequires: pkgconfig(dbusmenu-qt5) |
31 |
BuildRequires: pkgconfig(openssl) |
BuildRequires: pkgconfig(openssl) |
32 |
BuildRequires: pkgconfig(gudev-1.0) |
BuildRequires: pkgconfig(gudev-1.0) |
33 |
BuildRequires: pkgconfig(appindicator-0.1) |
BuildRequires: pkgconfig(libsystemd) |
|
BuildRequires: pkgconfig(systemd) |
|
34 |
BuildRequires: pkgconfig(libpulse) |
BuildRequires: pkgconfig(libpulse) |
35 |
BuildRequires: pkgconfig(zlib) |
BuildRequires: pkgconfig(zlib) |
36 |
BuildRequires: desktop-file-utils |
BuildRequires: desktop-file-utils |
37 |
BuildRequires: appstream-util |
BuildRequires: appstream-util |
38 |
BuildRequires: ImageMagick |
BuildRequires: ImageMagick |
39 |
|
|
|
Obsoletes: ckb |
|
|
|
|
40 |
Requires(post): rpm-helper >= %{rpmhelper_required_version} |
Requires(post): rpm-helper >= %{rpmhelper_required_version} |
41 |
Requires(preun): rpm-helper >= %{rpmhelper_required_version} |
Requires(preun): rpm-helper >= %{rpmhelper_required_version} |
42 |
Requires(postun): rpm-helper >= %{rpmhelper_required_version} |
Requires(postun): rpm-helper >= %{rpmhelper_required_version} |
56 |
%{_presetdir}/99-ckb-next.preset |
%{_presetdir}/99-ckb-next.preset |
57 |
%{_datadir}/applications/ckb-next.desktop |
%{_datadir}/applications/ckb-next.desktop |
58 |
%{_datadir}/appdata/ckb-next.appdata.xml |
%{_datadir}/appdata/ckb-next.appdata.xml |
59 |
%{_iconsdir}/hicolor/*/apps/ckb-next.png |
%{_iconsdir}/hicolor/*/apps/ckb-next* |
60 |
|
%{_iconsdir}/hicolor/*/status/ckb-next* |
61 |
%{_mandir}/man1/* |
%{_mandir}/man1/* |
62 |
%{_udevrulesdir}/*.rules |
%{_udevrulesdir}/*.rules |
63 |
%{_libdir}/cmake/ckb-next |
%{_libdir}/cmake/ckb-next/ |
64 |
|
|
65 |
%prep |
%prep |
66 |
%setup -q -n %{name}-%{version} |
%setup -q |
67 |
%autopatch -p0 |
%autopatch -p1 |
68 |
|
|
69 |
%build |
%build |
70 |
|
# We force systemd since autodetection fail inside the buildsystem |
71 |
%cmake -DCMAKE_BUILD_TYPE=Release \ |
%cmake -DCMAKE_BUILD_TYPE=Release \ |
72 |
|
-DFORCE_INIT_SYSTEM=systemd \ |
73 |
-DSAFE_INSTALL=OFF \ |
-DSAFE_INSTALL=OFF \ |
74 |
-DSAFE_UNINSTALL=OFF \ |
-DSAFE_UNINSTALL=OFF \ |
75 |
-DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
-DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
76 |
-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \ |
-DCMAKE_INSTALL_LIBEXECDIR=libexec \ |
77 |
-DDISABLE_UPDATER=1 \ |
-DDISABLE_UPDATER=1 \ |
78 |
-DUDEV_RULE_DIRECTORY=%{_udevrulesdir} |
-DUDEV_RULE_DIRECTORY=%{_udevrulesdir} |
79 |
|
|
80 |
%make_build |
%cmake_build |
81 |
|
|
82 |
%install |
%install |
83 |
%make_install -C build |
%cmake_install |
84 |
|
|
85 |
%__install -Dpm 0644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml |
%__install -Dpm 0644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml |
86 |
%__install -Dpm 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/ckb-next.1 |
%__install -Dpm 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/ckb-next.1 |
87 |
%__install -Dpm 0644 %{SOURCE3} %{buildroot}/%{_presetdir}/99-ckb-next.preset |
%__install -Dpm 0644 %{SOURCE3} %{buildroot}/%{_presetdir}/99-ckb-next.preset |
88 |
%__install -Dpm 0644 %{SOURCE4} README.install.urpmi |
%__install -Dpm 0644 %{SOURCE4} README.install.urpmi |
89 |
|
|
90 |
|
%check |
91 |
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml |
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml |
92 |
|
|
93 |
%post |
%post |