%global debug_package %{nil} Name: linux-hello Version: 0.1.1 Release: 1%{?dist} Summary: Windows Hello-style facial authentication for Linux using OpenCV and PAM License: Apache-2.0 AND MIT URL: https://github.com/kennycoder/linux-hello Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: cargo BuildRequires: rust BuildRequires: gcc-c++ BuildRequires: make BuildRequires: pkgconfig BuildRequires: opencv-devel BuildRequires: pam-devel BuildRequires: polkit-devel BuildRequires: clang-devel BuildRequires: cmake BuildRequires: extra-cmake-modules BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qtdeclarative-devel BuildRequires: kf6-kcoreaddons-devel BuildRequires: kf6-kcmutils-devel BuildRequires: kf6-ki18n-devel BuildRequires: gettext BuildRequires: systemd-rpm-macros Requires: authselect Requires: polkit Requires: hicolor-icon-theme Requires: kf6-kcmutils Requires: kf6-kirigami Requires: kf6-kirigami-addons Suggests: plasma-systemsettings %description Linux Hello brings facial recognition authentication to Linux desktops using standard webcams and infrared cameras, providing a Windows Hello-like experience for sudo, login managers, and lock screens. %prep %autosetup -n %{name}-%{version} %build %make_build build REQUIRE_KCM=1 %install %make_install PREFIX=/usr %post %systemd_post linux-hello.service %preun %systemd_preun linux-hello.service if [ $1 -eq 0 ]; then # Package removal: rollback PAM changes if configured via authselect if [ -x %{_bindir}/linux-hello ]; then %{_bindir}/linux-hello disable 2>/dev/null || true fi fi %postun %systemd_postun_with_restart linux-hello.service %files %license LICENSE %doc README.md %{_bindir}/linux-hello %{_bindir}/linux-hellod %{_bindir}/linux-hello-gui %{_libdir}/security/pam_linux_hello.so %{_libdir}/qt6/plugins/plasma/kcms/systemsettings/kcm_linuxhello.so %{_datadir}/applications/linux-hello-gui.desktop %{_datadir}/applications/kcm_linuxhello.desktop %{_datadir}/icons/hicolor/scalable/apps/linux-hello.svg %{_datadir}/polkit-1/actions/org.linuxhello.pkexec.policy %{_datadir}/linux-hello/ %{_unitdir}/linux-hello.service %dir %{_localstatedir}/lib/linux-hello %dir %{_localstatedir}/lib/linux-hello/models %changelog * Tue Nov 10 2026 Max Enelund - 0.1.1-1 - Initial Copr package based on upstream spec * Sun Oct 25 2026 Nikolai - 0.1.0-1 - Initial RPM release