/[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 1618812 - (hide annotations) (download)
Tue Aug 25 01:59:08 2020 UTC (3 years, 7 months ago) by daviddavid
File size: 3157 byte(s)
- fix wrong path in ckb-next to look for animations into /usr/libexec/ (mga#27192)

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

  ViewVC Help
Powered by ViewVC 1.1.30