%global debug_package %{nil} URL: https://github.com/MCC45TR/uke-linux-hardware-support Source0: uke-front-color-1.0.2.tar.xz ExclusiveArch: aarch64 BuildRequires: gcc-c++ make systemd-rpm-macros Name: uke-front-color Version: 1.0.2 Release: 14.fc46 License: MIT Summary: Native raw front-color snapshot publisher for Uke Requires: uke-ssc-fileservice >= 2026.09.21-8 Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %description -n uke-front-color An explicitly activated native SSC client publishes bounded raw front-color snapshots for local readers. Units, calibration and DSP clock mapping remain unverified. Original SensorProxy continues to provide ambient light. No Python, factory data, firmware or per-device identifiers are included. %prep %setup -q ( mkdir -p "%{_builddir}/uke-front-color-1.0.2/work/uke-front-color" cd '%{_builddir}/uke-front-color-1.0.2/work/uke-front-color' rm -rf 'uke-front-color-0.1.0' /usr/bin/rpmuncompress -x '%{_builddir}/uke-front-color-1.0.2/inputs/uke-front-color/uke-front-color-0.1.0.tar.gz' STATUS=$? if [ $STATUS -ne 0 ]; then exit $STATUS fi cd 'uke-front-color-0.1.0' /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . ) %build ( cd "%{_builddir}/uke-front-color-1.0.2/work/uke-front-color/uke-front-color-0.1.0" CFLAGS="${CFLAGS:--O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer }" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:--O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer }" ; export CXXFLAGS ; FFLAGS="${FFLAGS:--O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules }" ; export FFLAGS ; FCFLAGS="${FCFLAGS:--O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules }" ; export FCFLAGS ; VALAFLAGS="${VALAFLAGS:--g}" ; export VALAFLAGS ; RUSTFLAGS="${RUSTFLAGS:--Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn}" ; export RUSTFLAGS ; LDFLAGS="${LDFLAGS:--Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes }" ; export LDFLAGS ; LT_SYS_LIBRARY_PATH="${LT_SYS_LIBRARY_PATH:-/usr/lib64:}" ; export LT_SYS_LIBRARY_PATH ; CC="${CC:-gcc}" ; export CC ; CXX="${CXX:-g++}" ; export CXX /usr/bin/make -O -j${RPM_BUILD_NCPUS} V=1 VERBOSE=1 build/uke-front-color ) %install ( cd "%{_builddir}/uke-front-color-1.0.2/work/uke-front-color/uke-front-color-0.1.0" install -Dm755 build/uke-front-color %{buildroot}/usr/libexec/uke-front-color install -Dm644 packaging/systemd/uke-front-color.service %{buildroot}/usr/lib/systemd/system/uke-front-color.service install -Dm644 packaging/systemd/90-uke-front-color.preset %{buildroot}/usr/lib/systemd/system-preset/90-uke-front-color.preset ) %check ( cd "%{_builddir}/uke-front-color-1.0.2/work/uke-front-color/uke-front-color-0.1.0" /usr/bin/make -O -j${RPM_BUILD_NCPUS} V=1 VERBOSE=1 test-front-color ) %post -n uke-front-color if [ $1 -eq 1 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then # Initial installation /usr/lib/systemd/systemd-update-helper install-system-units uke-front-color.service || : fi %preun -n uke-front-color if [ $1 -eq 0 ] && [ -x "/usr/lib/systemd/systemd-update-helper" ]; then # Package removal, not upgrade /usr/lib/systemd/systemd-update-helper remove-system-units uke-front-color.service || : fi %postun -n uke-front-color %files -n uke-front-color %license work/uke-front-color/uke-front-color-0.1.0/LICENSE %doc work/uke-front-color/uke-front-color-0.1.0/docs/FRONT-COLOR.md /usr/libexec/uke-front-color /usr/lib/systemd/system/uke-front-color.service /usr/lib/systemd/system-preset/90-uke-front-color.preset %changelog * Thu Oct 29 2026 Senemos Maintainers <75160848+MCC45TR@users.noreply.github.com> - 1.0.2-14.fc46 - Build this component independently from its reviewed source recipe.