diff --git a/anda/tools/yubikey-touch-detector/anda.hcl b/anda/tools/yubikey-touch-detector/anda.hcl new file mode 100644 index 0000000000..da4fb1c16c --- /dev/null +++ b/anda/tools/yubikey-touch-detector/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "yubikey-touch-detector.spec" + } +} diff --git a/anda/tools/yubikey-touch-detector/update.rhai b/anda/tools/yubikey-touch-detector/update.rhai new file mode 100644 index 0000000000..daea87d7dc --- /dev/null +++ b/anda/tools/yubikey-touch-detector/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("max-baz/yubikey-touch-detector")); diff --git a/anda/tools/yubikey-touch-detector/yubikey-touch-detector.spec b/anda/tools/yubikey-touch-detector/yubikey-touch-detector.spec new file mode 100644 index 0000000000..b887fc18de --- /dev/null +++ b/anda/tools/yubikey-touch-detector/yubikey-touch-detector.spec @@ -0,0 +1,66 @@ +%global goipath github.com/max-baz/yubikey-touch-detector +Version: 1.13.0 + +%gometa + +Name: yubikey-touch-detector +Release: 1%{?dist} +Summary: A tool to detect when your YubiKey is waiting for a touch + +License: ISC +URL: https://github.com/max-baz/yubikey-touch-detector +Source0: %{url}/archive/refs/tags/%{version}.tar.gz + +Packager: metcya + +BuildRequires: go-rpm-macros +BuildRequires: scdoc +BuildRequires: pkgconfig(gpgme) +BuildRequires: systemd-rpm-macros + +%description +This is a tool that can detect when YubiKey is waiting for your touch. It is +designed to be integrated with other UI components to display a visible +indicator. + +%prep +%goprep + +%build +%global gomodulesmode GO111MODULE=on +%gobuild -o %{name} +scdoc < %{name}.1.scd > %{name}.1 + +%install +install -Dm 755 %{name} %{buildroot}%{_bindir}/%{name} +install -Dm 644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 +install -Dm 644 %{name}.png %{buildroot}%{_hicolordir}/128x128/apps/%{name}.png +install -Dm 644 %{name}.service %{buildroot}%{_userunitdir}/%{name}.service +install -Dm 644 %{name}.socket %{buildroot}%{_userunitdir}/%{name}.socket +install -Dm 644 service.conf.example %{buildroot}%{_sysconfdir}/%{name}/service.conf + +%preun +%systemd_user_preun %{name}.service +%systemd_user_preun %{name}.socket + +%post +%systemd_user_post %{name}.service +%systemd_user_post %{name}.socket + +%postun +%systemd_user_postun %{name}.service +%systemd_user_postun %{name}.socket + +%files +%license LICENSE +%doc README.md +%{_bindir}/%{name} +%{_mandir}/man1/%{name}.1.* +%{_hicolordir}/128x128/apps/%{name}.png +%{_userunitdir}/%{name}.service +%{_userunitdir}/%{name}.socket +%{_sysconfdir}/%{name}/service.conf + +%changelog +* Wed Mar 18 2026 metcya +- Initial package