/[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 1582727 - (hide annotations) (download)
Sun May 10 15:22:32 2020 UTC (3 years, 10 months ago) by julien
File size: 3053 byte(s)
- fix build for GCC10 (patch from fedora)
- don't obsolete a package which has never been in mageia


1 julien 1469196 Name: ckb-next
2 julien 1469202 Version: 0.4.2
3 julien 1582727 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 julien 1582727 Patch1: ckb-next-0.4.2--missing-extern-qualifiers.patch
20 julien 1469202
21 julien 1469196 BuildRequires: cmake
22     BuildRequires: cmake(Qt5Core) >= 5.3
23     BuildRequires: cmake(Qt5Gui) >= 5.3
24     BuildRequires: cmake(Qt5Network) >= 5.3
25     BuildRequires: cmake(Qt5Widgets) >= 5.3
26     BuildRequires: quazip-devel
27 julien 1469202 BuildRequires: pkgconfig(openssl)
28     BuildRequires: pkgconfig(gudev-1.0)
29     BuildRequires: pkgconfig(appindicator-0.1)
30     BuildRequires: pkgconfig(systemd)
31     BuildRequires: pkgconfig(libpulse)
32     BuildRequires: pkgconfig(zlib)
33 julien 1469196 BuildRequires: desktop-file-utils
34     BuildRequires: appstream-util
35     BuildRequires: ImageMagick
36    
37 julien 1469202 Requires(post): rpm-helper >= %{rpmhelper_required_version}
38     Requires(preun): rpm-helper >= %{rpmhelper_required_version}
39     Requires(postun): rpm-helper >= %{rpmhelper_required_version}
40    
41 julien 1469196 %description
42     ckb-next is an open-source driver for Corsair keyboards and mice. It aims to
43     bring the features of their proprietary CUE software to the Linux and Mac
44     operating systems. This project is currently a work in progress, but it already
45     supports much of the same functionality, including full RGB animations.
46    
47 julien 1469202 %files
48     %license LICENSE
49     %doc CHANGELOG.md FIRMWARE README.md README.install.urpmi
50     %{_bindir}/*
51     %{_libexecdir}/%{name}-*
52     %{_unitdir}/ckb-next-daemon.service
53     %{_presetdir}/99-ckb-next.preset
54     %{_datadir}/applications/ckb-next.desktop
55     %{_datadir}/appdata/ckb-next.appdata.xml
56     %{_iconsdir}/hicolor/*/apps/ckb-next.png
57     %{_mandir}/man1/*
58     %{_udevrulesdir}/*.rules
59     %{_libdir}/cmake/ckb-next
60    
61 julien 1469196 %prep
62 ovitters 1579752 %setup -q
63 julien 1469202 %autopatch -p0
64 julien 1469196
65     %build
66 julien 1469311 # We force systemd since autodetection fail inside the buildsystem
67 julien 1469202 %cmake -DCMAKE_BUILD_TYPE=Release \
68 julien 1469311 -DFORCE_INIT_SYSTEM=systemd \
69 julien 1469202 -DSAFE_INSTALL=OFF \
70     -DSAFE_UNINSTALL=OFF \
71     -DCMAKE_INSTALL_PREFIX=%{_prefix} \
72     -DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
73     -DDISABLE_UPDATER=1 \
74     -DUDEV_RULE_DIRECTORY=%{_udevrulesdir}
75    
76 wally 1473951 %cmake_build
77 julien 1469196
78     %install
79 wally 1473951 %cmake_install
80    
81 julien 1469202 %__install -Dpm 0644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml
82     %__install -Dpm 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/ckb-next.1
83     %__install -Dpm 0644 %{SOURCE3} %{buildroot}/%{_presetdir}/99-ckb-next.preset
84     %__install -Dpm 0644 %{SOURCE4} README.install.urpmi
85     appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml
86 julien 1469196
87     %post
88 julien 1469202 %_post_service %{name}-daemon
89 julien 1469196
90     %preun
91 julien 1469202 %_preun_service %{name}-daemon
92 julien 1469196
93     %postun
94 julien 1469202 %systemd_postun_with_restart %{name}-daemon

  ViewVC Help
Powered by ViewVC 1.1.30