From c3b30622d734ba9f0ac1d6ca39b6e6c44f15160d Mon Sep 17 00:00:00 2001 From: Artur Iwicki Date: Sat, 9 Mar 2019 09:46:06 +0100 Subject: [PATCH 01/35] Update to upstream release 0.4.0 --- .gitignore | 1 + ckb-next.spec | 11 +++++++---- sources | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 657340c..1f60dfb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /ckb-next-0.3.2.tar.gz +/ckb-next-0.4.0.tar.gz diff --git a/ckb-next.spec b/ckb-next.spec index d173efe..9e5a006 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next -Version: 0.3.2 -Release: 4%{?dist} +Version: 0.4.0 +Release: 1%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -79,12 +79,12 @@ 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 install -d -m 755 %{buildroot}%{_libexecdir}/ckb-next-animations -for ANIM in gradient heat mviz pinwheel rain random ripple wave; do +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-daemon.rules %{buildroot}%{_udevrulesdir}/99-ckb-daemon.rules +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 @@ -131,6 +131,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Sat Mar 09 2019 Artur Iwicki - 0.4.0-1 +- Update to latest upstream release + * Sat Feb 16 2019 Artur Iwicki - 0.3.2-4 - Use "install -p" (preserve timestamps) - Do not use the bundled quazip library diff --git a/sources b/sources index 3a255fb..2fe23b1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ckb-next-0.3.2.tar.gz) = 880ffe92345190fc40de393ff1319fc4ef9b45915254a0f0819c5614e7dbc69d0cde80952c1a26aeb8d86ed1c5e439d8a108e426ac5585129be1da51c0330ab8 +SHA512 (ckb-next-0.4.0.tar.gz) = 81058d1e31e7328dac1b3a83cb443b9d9f29593e872d189766c1dfe8b502965fd9ea7a962423e94d5053c99d8dd8c50bd98638c11631a2ca586fb9ade700284f From 0337211d93e27dfb7915558612ef37f5bb45c66a Mon Sep 17 00:00:00 2001 From: Artur Iwicki Date: Sat, 9 Mar 2019 09:56:37 +0100 Subject: [PATCH 02/35] Update to upstream release 0.4.0 --- .gitignore | 1 + ckb-next.spec | 11 +++++++---- sources | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 657340c..1f60dfb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /ckb-next-0.3.2.tar.gz +/ckb-next-0.4.0.tar.gz diff --git a/ckb-next.spec b/ckb-next.spec index d173efe..9e5a006 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next -Version: 0.3.2 -Release: 4%{?dist} +Version: 0.4.0 +Release: 1%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -79,12 +79,12 @@ 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 install -d -m 755 %{buildroot}%{_libexecdir}/ckb-next-animations -for ANIM in gradient heat mviz pinwheel rain random ripple wave; do +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-daemon.rules %{buildroot}%{_udevrulesdir}/99-ckb-daemon.rules +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 @@ -131,6 +131,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Sat Mar 09 2019 Artur Iwicki - 0.4.0-1 +- Update to latest upstream release + * Sat Feb 16 2019 Artur Iwicki - 0.3.2-4 - Use "install -p" (preserve timestamps) - Do not use the bundled quazip library diff --git a/sources b/sources index 3a255fb..2fe23b1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ckb-next-0.3.2.tar.gz) = 880ffe92345190fc40de393ff1319fc4ef9b45915254a0f0819c5614e7dbc69d0cde80952c1a26aeb8d86ed1c5e439d8a108e426ac5585129be1da51c0330ab8 +SHA512 (ckb-next-0.4.0.tar.gz) = 81058d1e31e7328dac1b3a83cb443b9d9f29593e872d189766c1dfe8b502965fd9ea7a962423e94d5053c99d8dd8c50bd98638c11631a2ca586fb9ade700284f From 949a18925bed37e144af9635ea5b3e072a6d8f5f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jul 2019 20:18:14 +0000 Subject: [PATCH 03/35] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index 9e5a006..3cbfa89 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.4.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -131,6 +131,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Wed Jul 24 2019 Fedora Release Engineering - 0.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Sat Mar 09 2019 Artur Iwicki - 0.4.0-1 - Update to latest upstream release From edbb12a220fdd4d96799b684270f82a4ed721663 Mon Sep 17 00:00:00 2001 From: Artur Iwicki Date: Tue, 27 Aug 2019 22:50:42 +0200 Subject: [PATCH 04/35] Update to upstream release v.0.4.1 --- .gitignore | 1 + ckb-next.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1f60dfb..e55c85c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /ckb-next-0.3.2.tar.gz /ckb-next-0.4.0.tar.gz +/ckb-next-0.4.1.tar.gz diff --git a/ckb-next.spec b/ckb-next.spec index 3cbfa89..e5b9533 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next -Version: 0.4.0 -Release: 2%{?dist} +Version: 0.4.1 +Release: 1%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -131,6 +131,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Tue Aug 27 2019 Artur Iwicki - 0.4.1-1 +- Update to latest upstream release + * Wed Jul 24 2019 Fedora Release Engineering - 0.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 2fe23b1..8312b62 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ckb-next-0.4.0.tar.gz) = 81058d1e31e7328dac1b3a83cb443b9d9f29593e872d189766c1dfe8b502965fd9ea7a962423e94d5053c99d8dd8c50bd98638c11631a2ca586fb9ade700284f +SHA512 (ckb-next-0.4.1.tar.gz) = 294a29146978c722fdfbb9c2581ed3fc492b2ffead0de8c434bfe90e6aff6e61748517c0f98ae0d8747e7a95684cf22badf778b35358dbaa8acbc18a25ade993 From ec50f0e3d075e78bab0f6c5a6d6210e069758169 Mon Sep 17 00:00:00 2001 From: Artur Iwicki Date: Tue, 8 Oct 2019 19:41:42 +0200 Subject: [PATCH 05/35] Update to latest upstream release (v.0.4.2) --- .gitignore | 1 + ckb-next.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e55c85c..f78ec94 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /ckb-next-0.3.2.tar.gz /ckb-next-0.4.0.tar.gz /ckb-next-0.4.1.tar.gz +/ckb-next-0.4.2.tar.gz diff --git a/ckb-next.spec b/ckb-next.spec index e5b9533..f938bda 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,5 +1,5 @@ Name: ckb-next -Version: 0.4.1 +Version: 0.4.2 Release: 1%{?dist} Summary: Unofficial driver for Corsair RGB keyboards @@ -131,6 +131,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Tue Oct 08 2019 Artur Iwicki - 0.4.2-1 +- Update to latest upstream release + * Tue Aug 27 2019 Artur Iwicki - 0.4.1-1 - Update to latest upstream release diff --git a/sources b/sources index 8312b62..c67c379 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ckb-next-0.4.1.tar.gz) = 294a29146978c722fdfbb9c2581ed3fc492b2ffead0de8c434bfe90e6aff6e61748517c0f98ae0d8747e7a95684cf22badf778b35358dbaa8acbc18a25ade993 +SHA512 (ckb-next-0.4.2.tar.gz) = 4c80101e935a4d5137b0fd6aaf7d97889913af0bbb8e3097e035e2420043d6525094c1e3f7b5676e8c50328454251ff3260f6aa9b81ec583a2e8136333ee6af8 From d762988a060325c488da87c73d9a97a766055543 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jan 2020 14:05:33 +0000 Subject: [PATCH 06/35] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index f938bda..d381b83 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.4.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -131,6 +131,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Tue Jan 28 2020 Fedora Release Engineering - 0.4.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Tue Oct 08 2019 Artur Iwicki - 0.4.2-1 - Update to latest upstream release From 2156e2a81f72e6bf17e892c31ea861c561e7338d Mon Sep 17 00:00:00 2001 From: Artur Iwicki Date: Tue, 28 Jan 2020 23:05:24 +0100 Subject: [PATCH 07/35] Add a patch to fix build failures --- ckb-next-0.4.2--missing-extern-qualifiers.patch | 13 +++++++++++++ ckb-next.spec | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 ckb-next-0.4.2--missing-extern-qualifiers.patch diff --git a/ckb-next-0.4.2--missing-extern-qualifiers.patch b/ckb-next-0.4.2--missing-extern-qualifiers.patch new file mode 100644 index 0000000..f4fb09a --- /dev/null +++ b/ckb-next-0.4.2--missing-extern-qualifiers.patch @@ -0,0 +1,13 @@ +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; diff --git a/ckb-next.spec b/ckb-next.spec index d381b83..2cb70f2 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.4.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -15,6 +15,8 @@ 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++ @@ -47,6 +49,7 @@ 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 @@ -131,6 +134,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Tue Jan 28 2020 Artur Iwicki - 0.4.2-3 +- Add a patch to fix build failures + * Tue Jan 28 2020 Fedora Release Engineering - 0.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From f31226f7796c7354956ff4f8208e0d0098102694 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 14:00:50 +0000 Subject: [PATCH 08/35] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index 2cb70f2..12c48cf 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.4.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -134,6 +134,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 0.4.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Tue Jan 28 2020 Artur Iwicki - 0.4.2-3 - Add a patch to fix build failures From 04831f6a20ae953fcd71c8513b13fdb2d9479e72 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 17 Dec 2020 03:33:30 +0000 Subject: [PATCH 09/35] Add BuildRequires: make https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot --- ckb-next.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/ckb-next.spec b/ckb-next.spec index 12c48cf..610620f 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -29,6 +29,7 @@ BuildRequires: quazip-qt5-devel >= 0.7.3 BuildRequires: zlib-devel BuildRequires: systemd-devel +BuildRequires: make %{?systemd_requires} Requires: qt5-qtbase >= 5.2.0 From a2dcda00f4ac10426b514e875a63a0f267da6089 Mon Sep 17 00:00:00 2001 From: Artur Frenszek-Iwicki Date: Sun, 20 Dec 2020 22:03:41 +0100 Subject: [PATCH 10/35] Update to v0.4.3 --- .gitignore | 1 + ...ext-0.4.2--missing-extern-qualifiers.patch | 13 ---- ckb-next.spec | 72 ++++++++++--------- sources | 2 +- 4 files changed, 41 insertions(+), 47 deletions(-) delete mode 100644 ckb-next-0.4.2--missing-extern-qualifiers.patch diff --git a/.gitignore b/.gitignore index f78ec94..d07e777 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /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 diff --git a/ckb-next-0.4.2--missing-extern-qualifiers.patch b/ckb-next-0.4.2--missing-extern-qualifiers.patch deleted file mode 100644 index f4fb09a..0000000 --- a/ckb-next-0.4.2--missing-extern-qualifiers.patch +++ /dev/null @@ -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; diff --git a/ckb-next.spec b/ckb-next.spec index 610620f..f0860c6 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next -Version: 0.4.2 -Release: 4%{?dist} +Version: 0.4.3 +Release: 1%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -15,21 +15,26 @@ 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 -BuildRequires: make %{?systemd_requires} Requires: qt5-qtbase >= 5.2.0 @@ -50,7 +55,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 @@ -58,47 +62,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 @@ -123,11 +121,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 @@ -135,6 +136,11 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Sun Dec 20 2020 Artur Frenszek-Iwicki - 0.4.3-1 +- Update to v0.4.3 +- Remove Patch0 (missing "extern" qualifiers - fixed upstream) +- Simplify the install section (rely on %%cmake_install) + * Mon Jul 27 2020 Fedora Release Engineering - 0.4.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index c67c379..ee2ce59 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ckb-next-0.4.2.tar.gz) = 4c80101e935a4d5137b0fd6aaf7d97889913af0bbb8e3097e035e2420043d6525094c1e3f7b5676e8c50328454251ff3260f6aa9b81ec583a2e8136333ee6af8 +SHA512 (ckb-next-0.4.3.tar.gz) = 6772812fb9608251f3a14efeb16960966be446462ab3f5b1bec896761aeae9e5f5cf9c07b21e509dbef057825c3017323f82f066519cb512ebe2fc6eea6ec217 From 995a027624b0a93752db34d9363ee60b1c9eaa83 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 02:00:36 +0000 Subject: [PATCH 11/35] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index f0860c6..8da5eaf 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.4.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -136,6 +136,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 0.4.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Sun Dec 20 2020 Artur Frenszek-Iwicki - 0.4.3-1 - Update to v0.4.3 - Remove Patch0 (missing "extern" qualifiers - fixed upstream) From 2168dfd667aadb7d4839139e9a35a352d1692020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 2 Mar 2021 16:14:06 +0100 Subject: [PATCH 12/35] Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. --- ckb-next.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index 8da5eaf..b9a87fb 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.4.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -136,6 +136,10 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 0.4.3-3 +- Rebuilt for updated systemd-rpm-macros + See https://pagure.io/fesco/issue/2583. + * Tue Jan 26 2021 Fedora Release Engineering - 0.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 5c85e43e59820b38bda65e08d123e9f5edd60254 Mon Sep 17 00:00:00 2001 From: Artur Frenszek-Iwicki Date: Thu, 18 Mar 2021 16:22:07 +0100 Subject: [PATCH 13/35] Update to v0.4.4 --- .gitignore | 1 + ckb-next.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d07e777..d5fb5f1 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /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 diff --git a/ckb-next.spec b/ckb-next.spec index b9a87fb..6d7f182 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next -Version: 0.4.3 -Release: 3%{?dist} +Version: 0.4.4 +Release: 1%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -136,6 +136,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Thu Mar 18 2021 Artur Frenszek-Iwicki - 0.4.4-1 +- Update to v0.4.4 + * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek - 0.4.3-3 - Rebuilt for updated systemd-rpm-macros See https://pagure.io/fesco/issue/2583. diff --git a/sources b/sources index ee2ce59..061508b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ckb-next-0.4.3.tar.gz) = 6772812fb9608251f3a14efeb16960966be446462ab3f5b1bec896761aeae9e5f5cf9c07b21e509dbef057825c3017323f82f066519cb512ebe2fc6eea6ec217 +SHA512 (ckb-next-0.4.4.tar.gz) = b03d301a6b984957b5a3047769f25311c479f7992c59222b0ce9314b3204dac2d937c26997b97ec2ee1fdc79e3208c76a57a5c603dc1cd99ffb39fd426f58385 From 451a9e222f5dacf4b326b2caf4b6b8c597c4f29f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 14:32:46 +0000 Subject: [PATCH 14/35] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering From 1b463e1c0354632ae027dcc445ec82cd44558a0e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 19:30:00 +0000 Subject: [PATCH 15/35] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index 6d7f182..c00c075 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.4.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -136,6 +136,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Wed Jul 21 2021 Fedora Release Engineering - 0.4.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Thu Mar 18 2021 Artur Frenszek-Iwicki - 0.4.4-1 - Update to v0.4.4 From acbac3d898cd4fe1a3d778236a5569414f086deb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Thu, 19 Aug 2021 12:39:10 +0200 Subject: [PATCH 16/35] Rebuild (quazip) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Björn Esser --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index c00c075..eb8a137 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.4.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -136,6 +136,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Thu Aug 19 2021 Björn Esser - 0.4.4-3 +- Rebuild (quazip) + * Wed Jul 21 2021 Fedora Release Engineering - 0.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 2c6f6686f034800bf64bdf1adabd8c30a0da5ace Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jan 2022 23:15:51 +0000 Subject: [PATCH 17/35] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index eb8a137..b4ef9a1 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.4.4 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -136,6 +136,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Wed Jan 19 2022 Fedora Release Engineering - 0.4.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Thu Aug 19 2021 Björn Esser - 0.4.4-3 - Rebuild (quazip) From 9654a6a478ae0d4e0b8ada9a5a810ebe86942026 Mon Sep 17 00:00:00 2001 From: Artur Frenszek-Iwicki Date: Wed, 20 Apr 2022 12:30:00 +0200 Subject: [PATCH 18/35] Fix FTBFS --- ckb-next.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ckb-next.spec b/ckb-next.spec index b4ef9a1..98adda8 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.4.4 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -76,7 +76,7 @@ sed -e 's|"/lib/udev/rules.d"|"%{_udevrulesdir}"|g' -i CMakeLists.txt -DSAFE_INSTALL=OFF \ -DSAFE_UNINSTALL=OFF \ -DWITH_SHIPPED_QUAZIP=OFF \ - ./ + %cmake_build # Color freeze fix @@ -136,6 +136,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Wed Apr 20 2022 Artur Frenszek-Iwicki - 0.4.4-5 +- Fix FTBFS + * Wed Jan 19 2022 Fedora Release Engineering - 0.4.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 0447afefdbc5a86772fb196ff368c9e7e3f1fe9e Mon Sep 17 00:00:00 2001 From: Artur Frenszek-Iwicki Date: Fri, 27 May 2022 13:02:34 +0200 Subject: [PATCH 19/35] Update to v0.5.0 --- .gitignore | 1 + ckb-next.spec | 17 ++++++++++------- sources | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index d5fb5f1..44110b9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /ckb-next-0.4.2.tar.gz /ckb-next-0.4.3.tar.gz /ckb-next-0.4.4.tar.gz +/ckb-next-0.5.0.tar.gz diff --git a/ckb-next.spec b/ckb-next.spec index 98adda8..292def9 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next -Version: 0.4.4 -Release: 5%{?dist} +Version: 0.5.0 +Release: 1%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -42,8 +42,9 @@ Requires: qt5ct Provides: bundled(kissfft) -# ckb-next, as the name suggests, is a re-activation and continuation of "ckb" -Obsoletes: ckb +# ckb-next, as the name suggests, is a re-activation and continuation of "ckb". +# The last released version of the original "ckb" was 0.2.7. +Obsoletes: ckb < 0.2.8-0 %description @@ -79,9 +80,6 @@ sed -e 's|"/lib/udev/rules.d"|"%{_udevrulesdir}"|g' -i CMakeLists.txt %cmake_build -# Color freeze fix -sed -e '/^Exec=/cExec=env QT_QPA_PLATFORMTHEME=qt5ct %{_bindir}/ckb-next' -i %{_vpath_builddir}/src/gui/ckb-next.desktop - %install %cmake_install @@ -129,6 +127,7 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %{_datadir}/metainfo/ckb-next.appdata.xml %{_datadir}/icons/hicolor/**/apps/ckb-next.png %{_datadir}/icons/hicolor/**/apps/ckb-next-monochrome.png +%{_datadir}/icons/hicolor/**/status/ckb-next_battery*.png %{_mandir}/man1/ckb-next.1* %{_presetdir}/99-ckb-next.preset %{_udevrulesdir}/*.rules @@ -136,6 +135,10 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Fri May 27 2022 Artur Frenszek-Iwicki - 0.5.0-1 +- Update to v0.5.0 +- Remove the Qt QPA fix from desktop file + * Wed Apr 20 2022 Artur Frenszek-Iwicki - 0.4.4-5 - Fix FTBFS diff --git a/sources b/sources index 061508b..1798b34 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ckb-next-0.4.4.tar.gz) = b03d301a6b984957b5a3047769f25311c479f7992c59222b0ce9314b3204dac2d937c26997b97ec2ee1fdc79e3208c76a57a5c603dc1cd99ffb39fd426f58385 +SHA512 (ckb-next-0.5.0.tar.gz) = d4e46466df4cdac7f4d4be05072592101780c94af261ec1b0bf6ec8bb1f97f892fb5da17dd91cf5f9b45fe128547cc7393c13e29843d6a7ae0de7a4688a5cdb1 From 09d3ddf8aed3509085aa09d3759a4290c393fa01 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 20 Jul 2022 22:59:00 +0000 Subject: [PATCH 20/35] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index 292def9..cd90e7a 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.5.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -135,6 +135,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Wed Jul 20 2022 Fedora Release Engineering - 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Fri May 27 2022 Artur Frenszek-Iwicki - 0.5.0-1 - Update to v0.5.0 - Remove the Qt QPA fix from desktop file From 40bcf81df3d278c5ad61818d0abff6527c971c83 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 18 Jan 2023 23:54:17 +0000 Subject: [PATCH 21/35] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index cd90e7a..e86d6ae 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.5.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2 @@ -135,6 +135,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Wed Jan 18 2023 Fedora Release Engineering - 0.5.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Wed Jul 20 2022 Fedora Release Engineering - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 25f65fcaaa2318805f62785cb947806079044929 Mon Sep 17 00:00:00 2001 From: Artur Frenszek-Iwicki Date: Tue, 2 May 2023 13:35:56 +0200 Subject: [PATCH 22/35] Add a patch to fix program aborting at launch --- ...-fix-buffer-overflow-abort-on-launch.patch | 28 ++++++++++ 0001-unbundle-kissfft.patch | 51 +++++++++++++++++++ ckb-next.spec | 35 ++++++++++--- 3 files changed, 106 insertions(+), 8 deletions(-) create mode 100644 0000-fix-buffer-overflow-abort-on-launch.patch create mode 100644 0001-unbundle-kissfft.patch diff --git a/0000-fix-buffer-overflow-abort-on-launch.patch b/0000-fix-buffer-overflow-abort-on-launch.patch new file mode 100644 index 0000000..0808ce5 --- /dev/null +++ b/0000-fix-buffer-overflow-abort-on-launch.patch @@ -0,0 +1,28 @@ +From c29a9f5e314ddb987b75cb05793ae1bf2bb9ae0c Mon Sep 17 00:00:00 2001 +From: Tasos Sahanidis +Date: Sat, 18 Mar 2023 16:13:51 +0200 +Subject: [PATCH] Fix buffer overflow detected with _FORTIFY_SOURCE + +Technically there's no buffer overflow taking place, but the size +argument passed to snprintf was incorrect. + +Closes #940 +--- + src/daemon/device_bragi.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/daemon/device_bragi.c b/src/daemon/device_bragi.c +index e0690d32..8de99570 100644 +--- a/src/daemon/device_bragi.c ++++ b/src/daemon/device_bragi.c +@@ -178,8 +178,8 @@ static int start_bragi_common(usbdevice* kb){ + } + + char str[PAIR_ID_SIZE*3+1] = {0}; +- for(uint32_t i = 0; i < PAIR_ID_SIZE; i++) +- snprintf(str + i * 3, sizeof(str), "%02hhx ", kb->wl_pairing_id[i]); ++ for(int i = 0; i < PAIR_ID_SIZE; i++) ++ snprintf(str + i * 3, sizeof(str) - i * 3, "%02hhx ", kb->wl_pairing_id[i]); + + ckb_info("ckb%d: Pairing id: %s", INDEX_OF(kb, keyboard), str); + diff --git a/0001-unbundle-kissfft.patch b/0001-unbundle-kissfft.patch new file mode 100644 index 0000000..436ed6b --- /dev/null +++ b/0001-unbundle-kissfft.patch @@ -0,0 +1,51 @@ +diff -r -U4 ckb-next-0.5.0--orig/src/animations/mviz/CMakeLists.txt ckb-next-0.5.0--patched/src/animations/mviz/CMakeLists.txt +--- ckb-next-0.5.0--orig/src/animations/mviz/CMakeLists.txt 2022-05-27 12:30:46.000000000 +0200 ++++ ckb-next-0.5.0--patched/src/animations/mviz/CMakeLists.txt 2023-05-02 13:32:28.810939157 +0200 +@@ -65,14 +65,18 @@ + + set(AUDIO_LIBRARIES "${PULSEAUDIOSIMPLE_LIBRARIES}") + endif () + ++add_library(kissfft STATIC IMPORTED) ++set_target_properties(kissfft PROPERTIES IMPORTED_LOCATION "${LIB_INSTALL_DIR}/libkiss_fft_float.a") ++add_library(kissfftr STATIC IMPORTED) ++set_target_properties(kissfftr PROPERTIES IMPORTED_LOCATION "${LIB_INSTALL_DIR}/libkiss_fftr_float.a") ++ + if (MACOS) + target_link_libraries( + mviz + PRIVATE + m +- KissFFT::KissFFT + ${CMAKE_PROJECT_NAME}::Animation + ${CORESERVICES_LIBRARY} + ${COREFOUNDATION_LIBRARY} + ${AUDIOUNIT_LIBRARY} +@@ -83,9 +87,10 @@ + target_link_libraries( + mviz + PRIVATE + m +- KissFFT::KissFFT ++ kissfft ++ kissfftr + ${CMAKE_PROJECT_NAME}::Animation + "${AUDIO_LIBRARIES}") + else() + message(WARNING "PortAudio link library has not been specified for this OS.") +diff -r -U4 ckb-next-0.5.0--orig/src/libs/CMakeLists.txt ckb-next-0.5.0--patched/src/libs/CMakeLists.txt +--- ckb-next-0.5.0--orig/src/libs/CMakeLists.txt 2022-05-27 12:30:46.000000000 +0200 ++++ ckb-next-0.5.0--patched/src/libs/CMakeLists.txt 2023-05-02 13:02:24.305285201 +0200 +@@ -24,12 +24,8 @@ + # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + # POSSIBILITY OF SUCH DAMAGE. + +-if (WITH_MVIZ) # otherwise doesn't make sense to include +- add_subdirectory(kissfft) +-endif () +- + if (WITH_GUI) + find_package(QuaZip) + if(NOT QuaZip_FOUND) + set(WITH_SHIPPED_QUAZIP ON) diff --git a/ckb-next.spec b/ckb-next.spec index e86d6ae..6aba4dd 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,11 +1,14 @@ Name: ckb-next Version: 0.5.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Unofficial driver for Corsair RGB keyboards -# ckb-next is GPLv2 -# The kissfft library (src/libs/kissfft) is BSD -License: GPLv2 and BSD +# ckb-next is GPLv2. +# +# The kissfft library (src/libs/kissfft) is BSD. +# This library is un-bundled by Patch1, but since it's statically linked, +# its license is still included here. +License: GPL-2.0-only and BSD-3-Clause URL: https://github.com/ckb-next/ckb-next Source0: %{URL}/archive/v%{version}/%{name}-%{version}.tar.gz @@ -15,6 +18,17 @@ Source1: ckb-next.appdata.xml Source2: ckb-next.1 Source3: 99-ckb-next.preset +# Fix the program aborting at launch because of a detected buffer overflow. +# Backport of upstream commit: +# https://github.com/ckb-next/ckb-next/commit/c29a9f5e314ddb987b75cb05793ae1bf2bb9ae0c +# See bug reports at: +# - https://bugzilla.redhat.com/show_bug.cgi?id=2192159 +# - https://github.com/ckb-next/ckb-next/issues/940 +Patch0: 0000-fix-buffer-overflow-abort-on-launch.patch + +# CMakeLists need to be adjusted to compile properly with un-bundled kissfft +Patch1: 0001-unbundle-kissfft.patch + BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: gcc-c++ @@ -23,6 +37,7 @@ BuildRequires: libappstream-glib BuildRequires: qt5-linguist BuildRequires: dbusmenu-qt5-devel +BuildRequires: kiss-fft-devel BuildRequires: libappindicator-devel BuildRequires: libgudev-devel BuildRequires: libxcb-devel @@ -40,8 +55,6 @@ BuildRequires: systemd-devel Requires: qt5-qtbase >= 5.2.0 Requires: qt5ct -Provides: bundled(kissfft) - # ckb-next, as the name suggests, is a re-activation and continuation of "ckb". # The last released version of the original "ckb" was 0.2.7. Obsoletes: ckb < 0.2.8-0 @@ -55,9 +68,10 @@ supports much of the same functionality, including full RGB animations. %prep -%setup -q +%autosetup -p1 -# Remove the bundled quazip library +# Remove the bundled libraries +rm -rf src/libs/kissfft rm -rf src/libs/quazip # Fedora uses /usr/libexec for daemons @@ -135,6 +149,11 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Tue May 02 2023 Artur Frenszek-Iwicki - 0.5.0-4 +- Add a patch to fix program aborting on launch +- Un-bundle kissfft +- Convert License tag to SPDX + * Wed Jan 18 2023 Fedora Release Engineering - 0.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 289e832189ad6a7f395d2ba66d10ddc6ae3216ec Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Fri, 5 May 2023 09:03:24 +0200 Subject: [PATCH 23/35] Rebuilt for quazip 1.4 --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index 6aba4dd..c653673 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.5.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2. @@ -149,6 +149,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Fri May 05 2023 Nicolas Chauvet - 0.5.0-5 +- Rebuilt for quazip 1.4 + * Tue May 02 2023 Artur Frenszek-Iwicki - 0.5.0-4 - Add a patch to fix program aborting on launch - Un-bundle kissfft From 0ce8aef954d41cbabcc7adb4f49511d2ab0a7554 Mon Sep 17 00:00:00 2001 From: Artur Frenszek-Iwicki Date: Sun, 25 Jun 2023 23:07:47 +0200 Subject: [PATCH 24/35] Update to v0.6.0 --- .gitignore | 1 + ...-fix-buffer-overflow-abort-on-launch.patch | 28 ------------------- 0001-unbundle-kissfft.patch | 22 +++++++-------- ckb-next.spec | 19 +++++-------- sources | 2 +- 5 files changed, 19 insertions(+), 53 deletions(-) delete mode 100644 0000-fix-buffer-overflow-abort-on-launch.patch diff --git a/.gitignore b/.gitignore index 44110b9..9177031 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /ckb-next-0.4.3.tar.gz /ckb-next-0.4.4.tar.gz /ckb-next-0.5.0.tar.gz +/ckb-next-0.6.0.tar.gz diff --git a/0000-fix-buffer-overflow-abort-on-launch.patch b/0000-fix-buffer-overflow-abort-on-launch.patch deleted file mode 100644 index 0808ce5..0000000 --- a/0000-fix-buffer-overflow-abort-on-launch.patch +++ /dev/null @@ -1,28 +0,0 @@ -From c29a9f5e314ddb987b75cb05793ae1bf2bb9ae0c Mon Sep 17 00:00:00 2001 -From: Tasos Sahanidis -Date: Sat, 18 Mar 2023 16:13:51 +0200 -Subject: [PATCH] Fix buffer overflow detected with _FORTIFY_SOURCE - -Technically there's no buffer overflow taking place, but the size -argument passed to snprintf was incorrect. - -Closes #940 ---- - src/daemon/device_bragi.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/daemon/device_bragi.c b/src/daemon/device_bragi.c -index e0690d32..8de99570 100644 ---- a/src/daemon/device_bragi.c -+++ b/src/daemon/device_bragi.c -@@ -178,8 +178,8 @@ static int start_bragi_common(usbdevice* kb){ - } - - char str[PAIR_ID_SIZE*3+1] = {0}; -- for(uint32_t i = 0; i < PAIR_ID_SIZE; i++) -- snprintf(str + i * 3, sizeof(str), "%02hhx ", kb->wl_pairing_id[i]); -+ for(int i = 0; i < PAIR_ID_SIZE; i++) -+ snprintf(str + i * 3, sizeof(str) - i * 3, "%02hhx ", kb->wl_pairing_id[i]); - - ckb_info("ckb%d: Pairing id: %s", INDEX_OF(kb, keyboard), str); - diff --git a/0001-unbundle-kissfft.patch b/0001-unbundle-kissfft.patch index 436ed6b..56f0254 100644 --- a/0001-unbundle-kissfft.patch +++ b/0001-unbundle-kissfft.patch @@ -1,9 +1,9 @@ -diff -r -U4 ckb-next-0.5.0--orig/src/animations/mviz/CMakeLists.txt ckb-next-0.5.0--patched/src/animations/mviz/CMakeLists.txt ---- ckb-next-0.5.0--orig/src/animations/mviz/CMakeLists.txt 2022-05-27 12:30:46.000000000 +0200 -+++ ckb-next-0.5.0--patched/src/animations/mviz/CMakeLists.txt 2023-05-02 13:32:28.810939157 +0200 +diff -r -U4 ckb-next-0.6.0--orig/src/animations/mviz/CMakeLists.txt ckb-next-0.6.0--patched/src/animations/mviz/CMakeLists.txt +--- ckb-next-0.6.0--orig/src/animations/mviz/CMakeLists.txt 2023-06-22 23:07:29.000000000 +0200 ++++ ckb-next-0.6.0--patched/src/animations/mviz/CMakeLists.txt 2023-06-25 22:59:31.481115661 +0200 @@ -65,14 +65,18 @@ - set(AUDIO_LIBRARIES "${PULSEAUDIOSIMPLE_LIBRARIES}") + set(AUDIO_LIBRARIES "${PULSEAUDIO_LIBRARIES}") endif () +add_library(kissfft STATIC IMPORTED) @@ -33,10 +33,10 @@ diff -r -U4 ckb-next-0.5.0--orig/src/animations/mviz/CMakeLists.txt ckb-next-0.5 "${AUDIO_LIBRARIES}") else() message(WARNING "PortAudio link library has not been specified for this OS.") -diff -r -U4 ckb-next-0.5.0--orig/src/libs/CMakeLists.txt ckb-next-0.5.0--patched/src/libs/CMakeLists.txt ---- ckb-next-0.5.0--orig/src/libs/CMakeLists.txt 2022-05-27 12:30:46.000000000 +0200 -+++ ckb-next-0.5.0--patched/src/libs/CMakeLists.txt 2023-05-02 13:02:24.305285201 +0200 -@@ -24,12 +24,8 @@ +diff -r -U4 ckb-next-0.6.0--orig/src/libs/CMakeLists.txt ckb-next-0.6.0--patched/src/libs/CMakeLists.txt +--- ckb-next-0.6.0--orig/src/libs/CMakeLists.txt 2023-06-22 23:07:29.000000000 +0200 ++++ ckb-next-0.6.0--patched/src/libs/CMakeLists.txt 2023-06-25 22:59:56.191319405 +0200 +@@ -24,10 +24,6 @@ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. @@ -45,7 +45,5 @@ diff -r -U4 ckb-next-0.5.0--orig/src/libs/CMakeLists.txt ckb-next-0.5.0--patched - add_subdirectory(kissfft) -endif () - - if (WITH_GUI) - find_package(QuaZip) - if(NOT QuaZip_FOUND) - set(WITH_SHIPPED_QUAZIP ON) + # ckb-next libraries + add_subdirectory(ckb-next) diff --git a/ckb-next.spec b/ckb-next.spec index c653673..a44fe3c 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next -Version: 0.5.0 -Release: 5%{?dist} +Version: 0.6.0 +Release: 1%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2. @@ -18,14 +18,6 @@ Source1: ckb-next.appdata.xml Source2: ckb-next.1 Source3: 99-ckb-next.preset -# Fix the program aborting at launch because of a detected buffer overflow. -# Backport of upstream commit: -# https://github.com/ckb-next/ckb-next/commit/c29a9f5e314ddb987b75cb05793ae1bf2bb9ae0c -# See bug reports at: -# - https://bugzilla.redhat.com/show_bug.cgi?id=2192159 -# - https://github.com/ckb-next/ckb-next/issues/940 -Patch0: 0000-fix-buffer-overflow-abort-on-launch.patch - # CMakeLists need to be adjusted to compile properly with un-bundled kissfft Patch1: 0001-unbundle-kissfft.patch @@ -72,7 +64,6 @@ supports much of the same functionality, including full RGB animations. # Remove the bundled libraries rm -rf src/libs/kissfft -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 @@ -90,7 +81,6 @@ sed -e 's|"/lib/udev/rules.d"|"%{_udevrulesdir}"|g' -i CMakeLists.txt -DFORCE_INIT_SYSTEM=systemd \ -DSAFE_INSTALL=OFF \ -DSAFE_UNINSTALL=OFF \ - -DWITH_SHIPPED_QUAZIP=OFF \ %cmake_build @@ -135,6 +125,7 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %{_bindir}/ckb-next %{_bindir}/ckb-next-dev-detect %{_libexecdir}/ckb-next-daemon +%{_libexecdir}/ckb-next-sinfo %{_libexecdir}/ckb-next-animations/ %{_libdir}/cmake/ckb-next/ %{_datadir}/applications/ckb-next.desktop @@ -149,6 +140,10 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Sun Jun 25 2023 Artur Frenszek-Iwicki - 0.6.0-1 +- Update to v0.6.0 +- Drop Patch0 (buffer overflow fix - backported from this release) + * Fri May 05 2023 Nicolas Chauvet - 0.5.0-5 - Rebuilt for quazip 1.4 diff --git a/sources b/sources index 1798b34..9fc37d7 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ckb-next-0.5.0.tar.gz) = d4e46466df4cdac7f4d4be05072592101780c94af261ec1b0bf6ec8bb1f97f892fb5da17dd91cf5f9b45fe128547cc7393c13e29843d6a7ae0de7a4688a5cdb1 +SHA512 (ckb-next-0.6.0.tar.gz) = 34236199d420b663bb71db9400622bb868a3a0b384b58d5da3f80d2bd7ec9586d4e4ac9caad0b047b8440dc4200e4dd6077f4e0d1edb5a75a1327bf9c9ba9392 From 8b877bd7ce82f72901ad0b80611dc4058a3c9129 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 15:42:39 +0000 Subject: [PATCH 25/35] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index a44fe3c..61890c7 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.6.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2. @@ -140,6 +140,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 0.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Sun Jun 25 2023 Artur Frenszek-Iwicki - 0.6.0-1 - Update to v0.6.0 - Drop Patch0 (buffer overflow fix - backported from this release) From a0bdf1add7adb3c32ae2e7c558999586baae3416 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 15:29:33 +0000 Subject: [PATCH 26/35] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index 61890c7..3c5000f 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.6.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2. @@ -140,6 +140,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 0.6.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jul 19 2023 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From cc3bc0e243055ac17c0776c5e92cc880abd4c715 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 23 Jan 2024 01:40:25 +0000 Subject: [PATCH 27/35] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index 3c5000f..7d1e6a0 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.6.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Unofficial driver for Corsair RGB keyboards # ckb-next is GPLv2. @@ -140,6 +140,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Tue Jan 23 2024 Fedora Release Engineering - 0.6.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 0.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 0f47c4f2b786df4057b7af00ccb945a355e249d0 Mon Sep 17 00:00:00 2001 From: Artur Frenszek-Iwicki Date: Tue, 23 Jan 2024 13:20:03 +0100 Subject: [PATCH 28/35] Replace kissfft static linking with dynamic --- 0001-unbundle-kissfft.patch | 11 ++++------- ckb-next.spec | 13 ++++++------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/0001-unbundle-kissfft.patch b/0001-unbundle-kissfft.patch index 56f0254..f561041 100644 --- a/0001-unbundle-kissfft.patch +++ b/0001-unbundle-kissfft.patch @@ -6,10 +6,7 @@ diff -r -U4 ckb-next-0.6.0--orig/src/animations/mviz/CMakeLists.txt ckb-next-0.6 set(AUDIO_LIBRARIES "${PULSEAUDIO_LIBRARIES}") endif () -+add_library(kissfft STATIC IMPORTED) -+set_target_properties(kissfft PROPERTIES IMPORTED_LOCATION "${LIB_INSTALL_DIR}/libkiss_fft_float.a") -+add_library(kissfftr STATIC IMPORTED) -+set_target_properties(kissfftr PROPERTIES IMPORTED_LOCATION "${LIB_INSTALL_DIR}/libkiss_fftr_float.a") ++find_package(kissfft REQUIRED) + if (MACOS) target_link_libraries( @@ -17,18 +14,18 @@ diff -r -U4 ckb-next-0.6.0--orig/src/animations/mviz/CMakeLists.txt ckb-next-0.6 PRIVATE m - KissFFT::KissFFT ++ kissfft::kissfft-float ${CMAKE_PROJECT_NAME}::Animation ${CORESERVICES_LIBRARY} ${COREFOUNDATION_LIBRARY} ${AUDIOUNIT_LIBRARY} -@@ -83,9 +87,10 @@ +@@ -83,9 +85,9 @@ target_link_libraries( mviz PRIVATE m - KissFFT::KissFFT -+ kissfft -+ kissfftr ++ kissfft::kissfft-float ${CMAKE_PROJECT_NAME}::Animation "${AUDIO_LIBRARIES}") else() diff --git a/ckb-next.spec b/ckb-next.spec index 7d1e6a0..94f08e0 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,14 +1,9 @@ Name: ckb-next Version: 0.6.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Unofficial driver for Corsair RGB keyboards -# ckb-next is GPLv2. -# -# The kissfft library (src/libs/kissfft) is BSD. -# This library is un-bundled by Patch1, but since it's statically linked, -# its license is still included here. -License: GPL-2.0-only and BSD-3-Clause +License: GPL-2.0-only URL: https://github.com/ckb-next/ckb-next Source0: %{URL}/archive/v%{version}/%{name}-%{version}.tar.gz @@ -140,6 +135,10 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Tue Jan 23 2024 Artur Frenszek-Iwicki - 0.6.0-5 +- Fix FTBFS +- Replace kissfft static linking with dynamic linking + * Tue Jan 23 2024 Fedora Release Engineering - 0.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From f87cfdefb40a01da003dfefbb78b25c6e26805ff Mon Sep 17 00:00:00 2001 From: Artur Frenszek-Iwicki Date: Tue, 23 Jan 2024 13:41:24 +0100 Subject: [PATCH 29/35] Fix malformed patch --- 0001-unbundle-kissfft.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/0001-unbundle-kissfft.patch b/0001-unbundle-kissfft.patch index f561041..9026743 100644 --- a/0001-unbundle-kissfft.patch +++ b/0001-unbundle-kissfft.patch @@ -1,7 +1,7 @@ diff -r -U4 ckb-next-0.6.0--orig/src/animations/mviz/CMakeLists.txt ckb-next-0.6.0--patched/src/animations/mviz/CMakeLists.txt --- ckb-next-0.6.0--orig/src/animations/mviz/CMakeLists.txt 2023-06-22 23:07:29.000000000 +0200 -+++ ckb-next-0.6.0--patched/src/animations/mviz/CMakeLists.txt 2023-06-25 22:59:31.481115661 +0200 -@@ -65,14 +65,18 @@ ++++ ckb-next-0.6.0--patched/src/animations/mviz/CMakeLists.txt 2024-01-23 13:15:01.273772139 +0100 +@@ -65,14 +65,16 @@ set(AUDIO_LIBRARIES "${PULSEAUDIO_LIBRARIES}") endif () From 27a53f6dd8a4934fab2a8d8ee3cbf1471a6dd7f8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 17 Jul 2024 19:21:26 +0000 Subject: [PATCH 30/35] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index 94f08e0..9a3bc27 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.6.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Unofficial driver for Corsair RGB keyboards License: GPL-2.0-only @@ -135,6 +135,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Wed Jul 17 2024 Fedora Release Engineering - 0.6.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Tue Jan 23 2024 Artur Frenszek-Iwicki - 0.6.0-5 - Fix FTBFS - Replace kissfft static linking with dynamic linking From c7b00ea0d4c6cd5689dd87aba51db6b52d50591f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 13:48:04 +0000 Subject: [PATCH 31/35] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index 9a3bc27..a0cf1d4 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.6.0 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Unofficial driver for Corsair RGB keyboards License: GPL-2.0-only @@ -135,6 +135,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 0.6.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Jul 17 2024 Fedora Release Engineering - 0.6.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From c52e8ad4d5bf283a0bcafa62c35cf04952a9765c Mon Sep 17 00:00:00 2001 From: Artur Frenszek-Iwicki Date: Sun, 9 Mar 2025 21:52:22 +0100 Subject: [PATCH 32/35] Update to v0.6.1, switch to Qt6 --- .gitignore | 1 + ckb-next.spec | 25 ++++++++++++++----------- sources | 2 +- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 9177031..0da8a46 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /ckb-next-0.4.4.tar.gz /ckb-next-0.5.0.tar.gz /ckb-next-0.6.0.tar.gz +/ckb-next-0.6.1.tar.gz diff --git a/ckb-next.spec b/ckb-next.spec index a0cf1d4..e73206f 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next -Version: 0.6.0 -Release: 7%{?dist} +Version: 0.6.1 +Release: 1%{?dist} Summary: Unofficial driver for Corsair RGB keyboards License: GPL-2.0-only @@ -21,26 +21,24 @@ BuildRequires: desktop-file-utils BuildRequires: gcc-c++ BuildRequires: make BuildRequires: libappstream-glib -BuildRequires: qt5-linguist -BuildRequires: dbusmenu-qt5-devel -BuildRequires: kiss-fft-devel +BuildRequires: cmake(kissfft) +BuildRequires: cmake(Qt6) +BuildRequires: cmake(Qt6LinguistTools) +BuildRequires: cmake(QuaZip-Qt6) +BuildRequires: cmake(zlib) + 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 %{?systemd_requires} -Requires: qt5-qtbase >= 5.2.0 -Requires: qt5ct +Requires: qt6-qtbase # ckb-next, as the name suggests, is a re-activation and continuation of "ckb". # The last released version of the original "ckb" was 0.2.7. @@ -76,6 +74,7 @@ sed -e 's|"/lib/udev/rules.d"|"%{_udevrulesdir}"|g' -i CMakeLists.txt -DFORCE_INIT_SYSTEM=systemd \ -DSAFE_INSTALL=OFF \ -DSAFE_UNINSTALL=OFF \ + -DPREFER_QT6=ON \ %cmake_build @@ -135,6 +134,10 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Sun Mar 09 2025 Artur Frenszek-Iwicki - 0.6.1-1 +- Update to v0.6.1 +- Switch to Qt6 + * Thu Jan 16 2025 Fedora Release Engineering - 0.6.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/sources b/sources index 9fc37d7..5210aba 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ckb-next-0.6.0.tar.gz) = 34236199d420b663bb71db9400622bb868a3a0b384b58d5da3f80d2bd7ec9586d4e4ac9caad0b047b8440dc4200e4dd6077f4e0d1edb5a75a1327bf9c9ba9392 +SHA512 (ckb-next-0.6.1.tar.gz) = 8f7f4eacd1cd3c255f5c57c277f255e30e6ed1ac7635c4aa7d52193bd63f997f6ba9489641c10be8fc8607045537a75816fa9d937585f3c072af6ed0e8240d7f From 0e5e7519115cb697da901f86e7249e3d28798992 Mon Sep 17 00:00:00 2001 From: Artur Frenszek-Iwicki Date: Mon, 17 Mar 2025 21:01:20 +0100 Subject: [PATCH 33/35] Update to v0.6.2 --- .gitignore | 1 + ckb-next.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0da8a46..331f8e0 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /ckb-next-0.5.0.tar.gz /ckb-next-0.6.0.tar.gz /ckb-next-0.6.1.tar.gz +/ckb-next-0.6.2.tar.gz diff --git a/ckb-next.spec b/ckb-next.spec index e73206f..61fa026 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,5 +1,5 @@ Name: ckb-next -Version: 0.6.1 +Version: 0.6.2 Release: 1%{?dist} Summary: Unofficial driver for Corsair RGB keyboards @@ -134,6 +134,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Mon Mar 17 2025 Artur Frenszek-Iwicki - 0.6.2-1 +- Update to v0.6.2 + * Sun Mar 09 2025 Artur Frenszek-Iwicki - 0.6.1-1 - Update to v0.6.1 - Switch to Qt6 diff --git a/sources b/sources index 5210aba..fbcb2dc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (ckb-next-0.6.1.tar.gz) = 8f7f4eacd1cd3c255f5c57c277f255e30e6ed1ac7635c4aa7d52193bd63f997f6ba9489641c10be8fc8607045537a75816fa9d937585f3c072af6ed0e8240d7f +SHA512 (ckb-next-0.6.2.tar.gz) = 21eb6fbb295501e1f30ea34e1361b595161db4c498afcc81efaa6ea7593ef4b04d9fb2966913af526e8151173c47b04b4bf199d7a901dcdc17ed6cd2262c5a20 From e3d005efe57b553873864c885f8e4d7b6823e7c4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 18:20:05 +0000 Subject: [PATCH 34/35] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- ckb-next.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index 61fa026..925d845 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.6.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Unofficial driver for Corsair RGB keyboards License: GPL-2.0-only @@ -134,6 +134,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 0.6.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Mon Mar 17 2025 Artur Frenszek-Iwicki - 0.6.2-1 - Update to v0.6.2 From 230a524a99abe5ca2da2d4efab1f0ff7175a7fee Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Mon, 10 Nov 2025 17:46:48 +0100 Subject: [PATCH 35/35] Allow to build with CMake 4.0 (rhbz#2380492) --- ckb-next.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ckb-next.spec b/ckb-next.spec index 925d845..aa18c5d 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,6 +1,6 @@ Name: ckb-next Version: 0.6.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Unofficial driver for Corsair RGB keyboards License: GPL-2.0-only @@ -66,6 +66,8 @@ sed -e 's|"/lib/udev/rules.d"|"%{_udevrulesdir}"|g' -i CMakeLists.txt %build +# TODO: Please submit an issue to upstream (rhbz#2380492) +export CMAKE_POLICY_VERSION_MINIMUM=3.5 %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ @@ -134,6 +136,9 @@ udevadm control --reload-rules 2>&1 > /dev/null || : %changelog +* Mon Nov 10 2025 Cristian Le - 0.6.2-3 +- Allow to build with CMake 4.0 (rhbz#2380492) + * Wed Jul 23 2025 Fedora Release Engineering - 0.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild