Name: sultree Version: 0.0.8 Release: 1%{?dist} Summary: SELinux-aware tree command for displaying directory trees filtered by security contexts License: MIT URL: https://github.com/username/sultree Source0: %{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel >= 3.8 BuildRequires: python3-setuptools BuildRequires: python3-pip Requires: python3 >= 3.8 Requires: attr Requires: python3-pathlib %description sultree is a SELinux-aware variant of the tree command that displays directory trees filtered by SELinux security contexts. It provides all the functionality of the standard tree command while adding powerful SELinux filtering capabilities using the -S flag. Features: - Full tree compatibility with standard tree command options - SELinux filtering with wildcard pattern matching - Security-focused design with input validation and safe error handling - Memory-efficient iterative processing for large directory trees - Caching for improved performance on repeated operations %prep %autosetup %build export PATH=$PATH:/home/espadon/.local/bin %{python3} -m build --wheel --no-isolation %install export PATH=$PATH:/home/espadon/.local/bin %{python3} -m pip install --root %{buildroot} --no-deps --ignore-installed dist/*.whl # Install the standalone script install -Dm755 sultree %{buildroot}%{_bindir}/sultree-standalone %files %doc README.md %{python3_sitelib}/%{name}/ %{python3_sitelib}/%{name}-%{version}*.dist-info/ %{_bindir}/sultree %{_bindir}/sultree-standalone %changelog * Sat Aug 24 2024 mfw - 0.0.8-1 - Initial RPM release - SELinux-aware tree command implementation - Full tree command compatibility - Performance optimizations with caching - Security-focused design