%global commit 54dd13e36d65c21263cf5b0f4a70c230a77b26bc %global debug_package %{nil} %global _build_id_links none Name: libssc Version: 0.4.4 Release: 3.git54dd13e.sp11%{?dist} Summary: Library and CLI for the sensors of the Qualcomm Snapdragon Sensor Core License: GPL-3.0-or-later URL: https://codeberg.org/DylanVanAssche/libssc Source0: libssc-%{commit}.tar.gz # The project's fixes to the synchronous API (payload/sensors/libssc/; docs/sensors.md, Known issues): the wait # blocks instead of spinning, each request owns its report handler, the subclasses reset theirs on open and close. Patch0: 0001-common-block-in-the-synchronous-wait-instead-of-spinning.patch Patch1: 0002-sensor-keep-each-request-s-report-handler-in-its-own-context.patch Patch2: 0003-sensors-reset-the-report-handler-on-open-and-close.patch ExclusiveArch: aarch64 BuildRequires: gcc BuildRequires: meson >= 1.4.0 BuildRequires: ninja-build BuildRequires: pkgconf-pkg-config BuildRequires: pkgconfig(glib-2.0) >= 2.56 BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(qmi-glib) >= 1.33.4 BuildRequires: pkgconfig(libprotobuf-c) # protoc plus the protoc-gen-c plugin generate the message code BuildRequires: protobuf-compiler BuildRequires: protobuf-c-compiler # The QMI mocking server for the test suite is declared unconditionally in meson (python module) BuildRequires: python3-devel %description libssc exposes the sensors managed by the Qualcomm Snapdragon Sensor Core, the sensor framework running on the ADSP or SLPI of Qualcomm SoCs since 2018, as a GLib library: QMI over QRTR to the DSP, protobuf-encoded requests. ssccli reads one sensor from the command line (--sensor accelerometer|gyroscope|magnetometer| light|compass|proximity). Upstream commit %{commit} plus the project's three patches to the synchronous API. iio-sensor-proxy 3.9 builds its SSC drivers against this library. %package devel Summary: Development files for libssc Requires: %{name}%{?_isa} = %{version}-%{release} Requires: pkgconfig(qmi-glib) Requires: pkgconfig(gio-2.0) %description devel Headers and pkg-config file for building against libssc. %prep %autosetup -p1 -n libssc-%{commit} %build %meson %meson_build %install %meson_install # The QMI mocking server exists for the test suite, which needs a QRTR bus; not shipped. rm -rf %{buildroot}%{python3_sitelib}/ssc_server %{buildroot}%{_libexecdir}/installed-tests \ %{buildroot}%{_datadir}/installed-tests %files %license LICENSE %doc README.md CHANGELOG.md %{_libdir}/libssc.so.2* %{_bindir}/ssccli %files devel %{_includedir}/libssc/ %{_libdir}/libssc.so %{_libdir}/pkgconfig/libssc.pc %changelog * Wed Oct 07 2026 SP11 build - 0.4.4-3.git54dd13e.sp11 - Synchronous API: the wait blocks on the main context instead of spinning (iio-sensor-proxy at 92 %% of a core); each request keeps its own report handler, so two requests in flight on one sensor no longer disconnect each other's handler and leave a freed context connected (the proxy's hang in open_sync and its SIGSEGV in report_received); the sensor subclasses reset their handler on open and close and drop the client reference they leaked * Sat Sep 19 2026 SP11 build - 0.4.4-2.git54dd13e.sp11 - Package upstream libssc for the Surface Pro 11 sensors stack (Fedora has no package)