/[packages]/cauldron/ckb-next/current/SPECS/ckb-next.spec
ViewVC logotype

Annotation of /cauldron/ckb-next/current/SPECS/ckb-next.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1896519 - (hide annotations) (download)
Wed Oct 12 10:35:56 2022 UTC (3 months, 3 weeks ago) by papoteur
File size: 3175 byte(s)
Rebuild for openldap-devel
1 julien 1469196 Name: ckb-next
2 julien 1860694 Version: 0.5.0
3 papoteur 1896519 Release: %mkrel 2
4 julien 1469196 Summary: Corsair RGB keyboard driver for Linux and OS X
5 julien 1469202 Group: System/Configuration
6     #bundled kissfft library is BSD
7     License: GPLv2 and BSD
8    
9 julien 1469196 URL: https://github.com/ckb-next/ckb-next
10 julien 1469202 Source0: https://github.com/ckb-next/ckb-next/archive/v%{version}/%{name}-%{version}.tar.gz
11 julien 1469196
12     # Upstream provides none of the following files
13     Source1: ckb-next.appdata.xml
14     Source2: ckb-next.1
15     Source3: 99-ckb-next.preset
16 julien 1469202 Source4: README.install.urpmi
17 julien 1469196
18 julien 1469202 Patch0: ckb-next-0.4.2-fix-daemon-path.patch
19    
20 julien 1661007
21 julien 1469196 BuildRequires: cmake
22 julien 1661007 BuildRequires: cmake(Qt5Core) >= 5.5.1
23     BuildRequires: cmake(Qt5DBus) >= 5.5.1
24     BuildRequires: cmake(Qt5Gui) >= 5.5.1
25     BuildRequires: cmake(Qt5Network) >= 5.5.1
26     BuildRequires: cmake(Qt5Widgets) >= 5.5.1
27 daviddavid 1725477 BuildRequires: cmake(Qt5X11Extras) >= 5.5.1
28     BuildRequires: cmake(Qt5LinguistTools) >= 5.5.1
29     BuildRequires: cmake(QuaZip-Qt5)
30 daviddavid 1617995 BuildRequires: pkgconfig(dbusmenu-qt5)
31 julien 1469202 BuildRequires: pkgconfig(openssl)
32     BuildRequires: pkgconfig(gudev-1.0)
33 danf 1779284 BuildRequires: pkgconfig(libsystemd)
34 julien 1469202 BuildRequires: pkgconfig(libpulse)
35     BuildRequires: pkgconfig(zlib)
36 julien 1469196 BuildRequires: desktop-file-utils
37     BuildRequires: appstream-util
38     BuildRequires: ImageMagick
39    
40 julien 1469202 Requires(post): rpm-helper >= %{rpmhelper_required_version}
41     Requires(preun): rpm-helper >= %{rpmhelper_required_version}
42     Requires(postun): rpm-helper >= %{rpmhelper_required_version}
43    
44 julien 1469196 %description
45     ckb-next is an open-source driver for Corsair keyboards and mice. It aims to
46     bring the features of their proprietary CUE software to the Linux and Mac
47     operating systems. This project is currently a work in progress, but it already
48     supports much of the same functionality, including full RGB animations.
49    
50 julien 1469202 %files
51     %license LICENSE
52     %doc CHANGELOG.md FIRMWARE README.md README.install.urpmi
53     %{_bindir}/*
54     %{_libexecdir}/%{name}-*
55     %{_unitdir}/ckb-next-daemon.service
56     %{_presetdir}/99-ckb-next.preset
57     %{_datadir}/applications/ckb-next.desktop
58     %{_datadir}/appdata/ckb-next.appdata.xml
59 julien 1661007 %{_iconsdir}/hicolor/*/apps/ckb-next*
60 julien 1860694 %{_iconsdir}/hicolor/*/status/ckb-next*
61 julien 1469202 %{_mandir}/man1/*
62     %{_udevrulesdir}/*.rules
63 daviddavid 1725477 %{_libdir}/cmake/ckb-next/
64 julien 1469202
65 julien 1469196 %prep
66 ovitters 1579752 %setup -q
67 daviddavid 1617995 %autopatch -p1
68 julien 1469196
69     %build
70 julien 1469311 # We force systemd since autodetection fail inside the buildsystem
71 julien 1469202 %cmake -DCMAKE_BUILD_TYPE=Release \
72 julien 1469311 -DFORCE_INIT_SYSTEM=systemd \
73 julien 1469202 -DSAFE_INSTALL=OFF \
74     -DSAFE_UNINSTALL=OFF \
75     -DCMAKE_INSTALL_PREFIX=%{_prefix} \
76 daviddavid 1618812 -DCMAKE_INSTALL_LIBEXECDIR=libexec \
77 julien 1469202 -DDISABLE_UPDATER=1 \
78     -DUDEV_RULE_DIRECTORY=%{_udevrulesdir}
79    
80 wally 1473951 %cmake_build
81 julien 1469196
82     %install
83 wally 1473951 %cmake_install
84    
85 julien 1469202 %__install -Dpm 0644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml
86     %__install -Dpm 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/ckb-next.1
87     %__install -Dpm 0644 %{SOURCE3} %{buildroot}/%{_presetdir}/99-ckb-next.preset
88     %__install -Dpm 0644 %{SOURCE4} README.install.urpmi
89 daviddavid 1725477
90     %check
91 julien 1469202 appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml
92 julien 1469196
93     %post
94 julien 1469202 %_post_service %{name}-daemon
95 julien 1469196
96     %preun
97 julien 1469202 %_preun_service %{name}-daemon
98 julien 1469196
99     %postun
100 julien 1469202 %systemd_postun_with_restart %{name}-daemon

  ViewVC Help
Powered by ViewVC 1.1.28