diff --git a/anda/tools/HeadsetControl-nightly/CMAKE_INSTALL_LIBDIR.patch b/anda/tools/HeadsetControl-nightly/CMAKE_INSTALL_LIBDIR.patch new file mode 100644 index 0000000000..115f4cc54b --- /dev/null +++ b/anda/tools/HeadsetControl-nightly/CMAKE_INSTALL_LIBDIR.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 2e9d6f8..75f8cf9 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -292,7 +292,7 @@ if(PROJECT_IS_TOP_LEVEL) + # ------------------------------------------------------------------------------ + + install(TARGETS headsetcontrol DESTINATION bin) +- install(TARGETS headsetcontrol_lib DESTINATION lib) ++ install(TARGETS headsetcontrol_lib DESTINATION ${CMAKE_INSTALL_LIBDIR}) + + # Install shared library if built + if(BUILD_SHARED_LIBRARY) diff --git a/anda/tools/HeadsetControl-nightly/HeadsetControl-nightly.spec b/anda/tools/HeadsetControl-nightly/HeadsetControl-nightly.spec index ab19b25584..2663ac3e0f 100644 --- a/anda/tools/HeadsetControl-nightly/HeadsetControl-nightly.spec +++ b/anda/tools/HeadsetControl-nightly/HeadsetControl-nightly.spec @@ -10,22 +10,32 @@ Release: 1%{?dist} Summary: A tool to control certain aspects of USB-connected headsets on Linux URL: https://github.com/Sapd/HeadsetControl Source: %{url}/archive/%{commit}.tar.gz -License: GPL-3.0 +Patch0: CMAKE_INSTALL_LIBDIR.patch +License: GPL-3.0-or-later Provides: headsetcontrol-nightly Conflicts: headsetcontrol -BuildRequires: cmake gcc hidapi-devel +BuildRequires: cmake gcc gcc-c++ hidapi-devel %description A tool to control certain aspects of USB-connected headsets on Linux. Currently, support is provided for adjusting sidetone, getting battery state, controlling LEDs, and setting the inactive time. +%package devel +%pkg_devel_files + +%package static +%pkg_static_files + %prep -%autosetup -n HeadsetControl-%{commit} +%autosetup -n HeadsetControl-%{commit} -p1 + +%conf +%cmake \ + -DCMAKE_INSTALL_LIBDIR=%{_lib} %build -%cmake %cmake_build %install @@ -38,5 +48,8 @@ state, controlling LEDs, and setting the inactive time. %{_udevrulesdir}/70-headsets.rules %changelog +* Wed May 13 2026 Owen Zimmerman +- Add devel and static subpackages, add patch, fix license + * Wed Nov 26 2025 metcya - package HeadsetControl