/[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 1469202 - (hide annotations) (download)
Fri Dec 20 21:03:52 2019 UTC (3 years, 1 month ago) by julien
File size: 2927 byte(s)
- update to version 0.4.2
- cleanup and simplify specfile to be more in line with mga policy
- add patch0 to fix daemon path instead
- add message to inform of the need of manually starting the daemon


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

  ViewVC Help
Powered by ViewVC 1.1.28