%define __spec_install_post %{nil} %define __os_install_post %{_dbpath}/brp-compress %define debug_package %{nil} %define git_sha dbe9a83b57212da15daaab2df0ad9d2fde26cb77 Name: fido2luks Summary: Decrypt your LUKS partition using a FIDO2 compatible authenticator # Version: @@VERSION@@ Version: 0.2.20 Release: 1%{?dist} License: Mozilla Public License Version 2.0 Group: Applications/System Source: https://github.com/shimunn/fido2luks/archive/%{git_sha}/%{name}-%{version}.tar.gz URL: https://github.com/shimunn/fido2luks Requires: dracut, cryptsetup >= 2.5.0, cryptsetup-libs >= 2.5.0 BuildRequires: cargo, clang-devel, cryptsetup >= 2.5.0, cryptsetup-devel >= 2.5.0, cryptsetup-libs >= 2.5.0 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description %{summary} %prep %setup -q -n %{name}-%{git_sha} %build cargo build --release %install rm -rf %{buildroot} mkdir -p %{buildroot} install -D target/release/fido2luks %{buildroot}/%{_bindir}/fido2luks install -Dm 755 -d dracut/96luks-2fa %{buildroot}/%{_prefix}/lib/dracut/modules.d/96luks-2fa install -Dm 644 dracut/96luks-2fa/fido2luks.conf %{buildroot}/%{_prefix}/lib/dracut/modules.d/96luks-2fa/fido2luks.conf install -Dm 755 dracut/96luks-2fa/luks-2fa-generator.sh %{buildroot}/%{_prefix}/lib/dracut/modules.d/96luks-2fa/luks-2fa-generator.sh install -Dm 644 dracut/96luks-2fa/luks-2fa.target %{buildroot}/%{_prefix}/lib/dracut/modules.d/96luks-2fa/luks-2fa.target install -Dm 755 dracut/96luks-2fa/module-setup.sh %{buildroot}/%{_prefix}/lib/dracut/modules.d/96luks-2fa/module-setup.sh install -Dm 644 dracut/dracut.conf.d/luks-2fa.conf %{buildroot}/%{_sysconfdir}/dracut.conf.d/luks-2fa.conf install -Dm 644 dracut/dracut.conf.d/luks-2fa.conf %{buildroot}/%{_prefix}/lib/dracut/dracut.conf.d/luks-2fa.conf install -Dm 644 initramfs-tools/fido2luks.conf %{buildroot}/%{_sysconfdir}/fido2luks.conf install -Dm 755 pam_mount/fido2luksmounthelper.sh %{buildroot}/%{_bindir}/fido2luksmounthelper.sh install -Dm 644 fido2luks.bash %{buildroot}/%{_sysconfdir}/bash_completion.d/fido2luks %clean rm -rf %{buildroot} %files %attr(0775, root, root) "%{_bindir}/fido2luks" %attr(0644, root, root) "%{_prefix}/lib/dracut/modules.d/96luks-2fa/fido2luks.conf" %attr(0775, root, root) "%{_prefix}/lib/dracut/modules.d/96luks-2fa/luks-2fa-generator.sh" %attr(0644, root, root) "%{_prefix}/lib/dracut/modules.d/96luks-2fa/luks-2fa.target" %attr(0775, root, root) "%{_prefix}/lib/dracut/modules.d/96luks-2fa/module-setup.sh" %attr(0644, root, root) "%{_prefix}/lib/dracut/dracut.conf.d/luks-2fa.conf" %attr(0775, root, root) "%{_bindir}/fido2luksmounthelper.sh" %config(noreplace) "%{_sysconfdir}/dracut.conf.d/luks-2fa.conf" %config(noreplace) "%{_sysconfdir}/fido2luks.conf" %config(noreplace) "%{_sysconfdir}/bash_completion.d/fido2luks" %doc README.md %changelog * Wed Nov 23 2022 Jiri Marsicek - 0.2.20-1 - Bump to git latest * Tue Aug 03 2021 Jiri Marsicek - 0.2.19-1 - bump to 0.2.19 * Wed Nov 18 2020 Akos Balla - create RPM spec (akos.balla@sirc.hu)