Name: cyber-toolkit Version: 33.60549f1 Release: 1%{?dist} Summary: Set your Cyber Security role License: MIT URL: https://github.com/Athena-OS/cyber-toolkit Source0: https://github.com/Athena-OS/cyber-toolkit/archive/refs/heads/main.tar.gz#/cyber-toolkit-main.tar.gz BuildRequires: cargo ExclusiveArch: x86_64 aarch64 %description Cyber Toolkit is a CLI utility for Athena OS that allows you to define and switch between cybersecurity-oriented system roles. %prep %autosetup -n %{name}-main %build cargo build --release --locked %install install -Dm 755 target/release/%{name} %{buildroot}/usr/bin/%{name} install -Dm 644 README.md %{buildroot}/usr/share/doc/%{name}/README.md install -Dm 644 LICENSE %{buildroot}/usr/share/licenses/%{name}/LICENSE # Install roles directory and all .role files install -d %{buildroot}/usr/share/%{name}/roles for f in roles/*.role; do # Only install existing files (avoid failing if none present) if [ -f "$f" ]; then install -Dm 644 "$f" %{buildroot}/usr/share/%{name}/roles/$(basename "$f") fi done %files %license usr/share/licenses/%{name}/LICENSE %doc usr/share/doc/%{name}/README.md /usr/bin/%{name} /usr/share/%{name}/roles/* %changelog * Sun Oct 12 2025 15:34 Little Owl - Synced with upstream