Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22a941eba5 | ||
|
|
bdf4e1872e | ||
|
|
705848ac35 |
4 changed files with 48 additions and 46 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -2,3 +2,5 @@
|
|||
/ckb-next-0.4.0.tar.gz
|
||||
/ckb-next-0.4.1.tar.gz
|
||||
/ckb-next-0.4.2.tar.gz
|
||||
/ckb-next-0.4.3.tar.gz
|
||||
/ckb-next-0.4.4.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/src/daemon/devnode.h b/src/daemon/devnode.h
|
||||
index a0b3a93..349e778 100644
|
||||
--- a/src/daemon/devnode.h
|
||||
+++ b/src/daemon/devnode.h
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "usb.h"
|
||||
|
||||
/// Device path base ("/dev/input/ckb" or "/var/run/ckb")
|
||||
-const char *const devpath;
|
||||
+extern const char *const devpath;
|
||||
|
||||
/// Group ID for the control nodes. -1 to give read/write access to everybody
|
||||
extern long gid;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
Name: ckb-next
|
||||
Version: 0.4.2
|
||||
Release: 3%{?dist}
|
||||
Version: 0.4.4
|
||||
Release: 1%{?dist}
|
||||
Summary: Unofficial driver for Corsair RGB keyboards
|
||||
|
||||
# ckb-next is GPLv2
|
||||
|
|
@ -15,17 +15,23 @@ Source1: ckb-next.appdata.xml
|
|||
Source2: ckb-next.1
|
||||
Source3: 99-ckb-next.preset
|
||||
|
||||
Patch0: ckb-next-0.4.2--missing-extern-qualifiers.patch
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libappindicator-devel
|
||||
BuildRequires: make
|
||||
BuildRequires: libappstream-glib
|
||||
BuildRequires: qt5-linguist
|
||||
|
||||
BuildRequires: dbusmenu-qt5-devel
|
||||
BuildRequires: libappindicator-devel
|
||||
BuildRequires: libgudev-devel
|
||||
BuildRequires: libxcb-devel
|
||||
BuildRequires: pulseaudio-libs-devel
|
||||
BuildRequires: qt5-qtbase-devel >= 5.2.0
|
||||
BuildRequires: qt5-qtx11extras-devel
|
||||
BuildRequires: quazip-qt5-devel >= 0.7.3
|
||||
BuildRequires: xcb-util-devel
|
||||
BuildRequires: xcb-util-wm-devel
|
||||
BuildRequires: zlib-devel
|
||||
|
||||
BuildRequires: systemd-devel
|
||||
|
|
@ -39,6 +45,9 @@ Provides: bundled(kissfft)
|
|||
# ckb-next, as the name suggests, is a re-activation and continuation of "ckb"
|
||||
Obsoletes: ckb
|
||||
|
||||
# Force an out-of-source build (default in F33+)
|
||||
%undefine __cmake_in_source_build
|
||||
|
||||
|
||||
%description
|
||||
ckb-next is an open-source driver for Corsair keyboards and mice. It aims to
|
||||
|
|
@ -49,7 +58,6 @@ supports much of the same functionality, including full RGB animations.
|
|||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
# Remove the bundled quazip library
|
||||
rm -rf src/libs/quazip
|
||||
|
|
@ -57,47 +65,41 @@ rm -rf src/libs/quazip
|
|||
# Fedora uses /usr/libexec for daemons
|
||||
sed -e '/^ExecStart/cExecStart=%{_libexecdir}/ckb-next-daemon' -i linux/systemd/ckb-next-daemon.service.in
|
||||
|
||||
# Fedora has merged /lib into /usr/lib
|
||||
sed -e 's|"/lib/udev/rules.d"|"%{_udevrulesdir}"|g' -i CMakeLists.txt
|
||||
|
||||
|
||||
%build
|
||||
%cmake -H. -Bbuild \
|
||||
%cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||
-DCMAKE_INSTALL_LIBEXECDIR=libexec \
|
||||
-DDISABLE_UPDATER=1 \
|
||||
-DFORCE_INIT_SYSTEM=systemd \
|
||||
-DSAFE_INSTALL=OFF \
|
||||
-DSAFE_UNINSTALL=OFF \
|
||||
-DWITH_SHIPPED_QUAZIP=OFF \
|
||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||
-DCMAKE_INSTALL_LIBEXECDIR=libexec \
|
||||
-DDISABLE_UPDATER=1
|
||||
%cmake --build build --target all -- -j build
|
||||
|
||||
pushd build
|
||||
%make_build
|
||||
popd
|
||||
./
|
||||
%cmake_build
|
||||
|
||||
# Color freeze fix
|
||||
sed -e '/^Exec=/cExec=env QT_QPA_PLATFORMTHEME=qt5ct %{_bindir}/ckb-next' -i build/src/gui/ckb-next.desktop
|
||||
sed -e '/^Exec=/cExec=env QT_QPA_PLATFORMTHEME=qt5ct %{_bindir}/ckb-next' -i %{_vpath_builddir}/src/gui/ckb-next.desktop
|
||||
|
||||
|
||||
%install
|
||||
install -Dp -m 755 build/bin/ckb-next %{buildroot}%{_bindir}/ckb-next
|
||||
install -Dp -m 755 build/bin/ckb-next-daemon %{buildroot}%{_libexecdir}/ckb-next-daemon
|
||||
%cmake_install
|
||||
|
||||
install -d -m 755 %{buildroot}%{_libexecdir}/ckb-next-animations
|
||||
for ANIM in $(find src/animations/ -mindepth 1 -maxdepth 1 -type d -printf '%%f '); do
|
||||
install -p -m 755 "build/bin/${ANIM}" "%{buildroot}%{_libexecdir}/ckb-next-animations/${ANIM}"
|
||||
done
|
||||
|
||||
install -Dp -m 0644 %{SOURCE3} %{buildroot}/%{_presetdir}/99-ckb-next.preset
|
||||
install -Dp -m 644 linux/udev/99-ckb-next-daemon.rules %{buildroot}%{_udevrulesdir}/99-ckb-next-daemon.rules
|
||||
install -Dp -m 644 linux/systemd/ckb-next-daemon.service.in %{buildroot}%{_unitdir}/ckb-next-daemon.service
|
||||
|
||||
install -Dp -m 644 build/src/gui/ckb-next.png %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/ckb-next.png
|
||||
|
||||
desktop-file-install --dir=%{buildroot}%{_datadir}/applications/ build/src/gui/ckb-next.desktop
|
||||
# Move the daemon from /usr/bin/ to /usr/libexec
|
||||
mv %{buildroot}%{_bindir}/ckb-next-daemon %{buildroot}%{_libexecdir}/ckb-next-daemon
|
||||
|
||||
install -Dp -m 0644 %{SOURCE3} %{buildroot}%{_presetdir}/99-ckb-next.preset
|
||||
install -Dp -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/metainfo/ckb-next.appdata.xml
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/ckb-next.appdata.xml
|
||||
install -Dp -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/ckb-next.1
|
||||
|
||||
install -Dp -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/ckb-next.1
|
||||
|
||||
%check
|
||||
desktop-file-validate %{buildroot}%{_datadir}/applications/ckb-next.desktop
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/ckb-next.appdata.xml
|
||||
|
||||
|
||||
%post
|
||||
|
|
@ -122,11 +124,14 @@ udevadm control --reload-rules 2>&1 > /dev/null || :
|
|||
%license LICENSE
|
||||
%doc CHANGELOG.md FIRMWARE README.md
|
||||
%{_bindir}/ckb-next
|
||||
%{_bindir}/ckb-next-dev-detect
|
||||
%{_libexecdir}/ckb-next-daemon
|
||||
%{_libexecdir}/ckb-next-animations/
|
||||
%{_libdir}/cmake/ckb-next/
|
||||
%{_datadir}/applications/ckb-next.desktop
|
||||
%{_datadir}/metainfo/ckb-next.appdata.xml
|
||||
%{_datadir}/icons/hicolor/**/apps/ckb-next.png
|
||||
%{_datadir}/icons/hicolor/**/apps/ckb-next-monochrome.png
|
||||
%{_mandir}/man1/ckb-next.1*
|
||||
%{_presetdir}/99-ckb-next.preset
|
||||
%{_udevrulesdir}/*.rules
|
||||
|
|
@ -134,6 +139,14 @@ udevadm control --reload-rules 2>&1 > /dev/null || :
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu Mar 18 2021 Artur Frenszek-Iwicki <fedora@svgames.pl> - 0.4.4-1
|
||||
- Update to v0.4.4
|
||||
|
||||
* Sun Dec 20 2020 Artur Frenszek-Iwicki <fedora@svgames.pl> - 0.4.3-1
|
||||
- Update to v0.4.3
|
||||
- Remove Patch0 (missing "extern" qualifiers - fixed upstream)
|
||||
- Simplify the install section (rely on %%cmake_install)
|
||||
|
||||
* Tue Jan 28 2020 Artur Iwicki <fedora@svgames.pl> - 0.4.2-3
|
||||
- Add a patch to fix build failures
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (ckb-next-0.4.2.tar.gz) = 4c80101e935a4d5137b0fd6aaf7d97889913af0bbb8e3097e035e2420043d6525094c1e3f7b5676e8c50328454251ff3260f6aa9b81ec583a2e8136333ee6af8
|
||||
SHA512 (ckb-next-0.4.4.tar.gz) = b03d301a6b984957b5a3047769f25311c479f7992c59222b0ce9314b3204dac2d937c26997b97ec2ee1fdc79e3208c76a57a5c603dc1cd99ffb39fd426f58385
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue