/[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 1844467 - (hide annotations) (download)
Tue Apr 5 04:55:35 2022 UTC (13 months, 3 weeks ago) by umeabot
File size: 3135 byte(s)
Mageia 9 Mass Rebuild
1 julien 1469196 Name: ckb-next
2 julien 1704483 Version: 0.4.4
3 umeabot 1844467 Release: %mkrel 3
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 1469202 %{_mandir}/man1/*
61     %{_udevrulesdir}/*.rules
62 daviddavid 1725477 %{_libdir}/cmake/ckb-next/
63 julien 1469202
64 julien 1469196 %prep
65 ovitters 1579752 %setup -q
66 daviddavid 1617995 %autopatch -p1
67 julien 1469196
68     %build
69 julien 1469311 # We force systemd since autodetection fail inside the buildsystem
70 julien 1469202 %cmake -DCMAKE_BUILD_TYPE=Release \
71 julien 1469311 -DFORCE_INIT_SYSTEM=systemd \
72 julien 1469202 -DSAFE_INSTALL=OFF \
73     -DSAFE_UNINSTALL=OFF \
74     -DCMAKE_INSTALL_PREFIX=%{_prefix} \
75 daviddavid 1618812 -DCMAKE_INSTALL_LIBEXECDIR=libexec \
76 julien 1469202 -DDISABLE_UPDATER=1 \
77     -DUDEV_RULE_DIRECTORY=%{_udevrulesdir}
78    
79 wally 1473951 %cmake_build
80 julien 1469196
81     %install
82 wally 1473951 %cmake_install
83    
84 julien 1469202 %__install -Dpm 0644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml
85     %__install -Dpm 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/ckb-next.1
86     %__install -Dpm 0644 %{SOURCE3} %{buildroot}/%{_presetdir}/99-ckb-next.preset
87     %__install -Dpm 0644 %{SOURCE4} README.install.urpmi
88 daviddavid 1725477
89     %check
90 julien 1469202 appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml
91 julien 1469196
92     %post
93 julien 1469202 %_post_service %{name}-daemon
94 julien 1469196
95     %preun
96 julien 1469202 %_preun_service %{name}-daemon
97 julien 1469196
98     %postun
99 julien 1469202 %systemd_postun_with_restart %{name}-daemon

  ViewVC Help
Powered by ViewVC 1.1.28