# spell-checker:ignore bcond pkgversion buildrequires autosetup PYTHONPATH noarch buildroot bindir sitelib numprocesses clib # All tests require Internet access # to test in mock use: --enable-network --with check # to test in a privileged environment use: # --with check --with privileged_tests %bcond_with check %bcond_with privileged_tests Name: ansible-lint Version: 25.11.1.dev8 Release: 1.20251120194515390910.main.8.g61a8e7ba%{?dist} Summary: Ansible-lint checks ansible content for common mistakes License: GPL-3.0-or-later AND MIT URL: https://github.com/ansible/ansible-lint Source0: ansible_lint-25.11.1.dev8.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel %if %{with check} # These are required for tests: BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pytest-xdist BuildRequires: python%{python3_pkgversion}-libselinux BuildRequires: git-core %endif Requires: git-core %description Ansible-lint checks ansible content for practices and behaviors that could potentially be improved. %prep %autosetup -n ansible_lint-25.11.1.dev8 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files ansiblelint %check # Don't try to import tests that import pytest which isn't available at runtime %pyproject_check_import -e 'ansiblelint.testing*' -e 'ansiblelint.rules.conftest' %if %{with check} %pytest \ -v \ --disable-pytest-warnings \ --numprocesses=auto \ %if %{with privileged_tests} tests %else tests/unit %endif %endif %files -f %{pyproject_files} %{_bindir}/ansible-lint %license COPYING docs/licenses/LICENSE.mit.txt %doc docs/ README.md %changelog * Thu Nov 20 2025 Packit - 25.11.1.dev8-1.20251120194515390910.main.8.g61a8e7ba - feat: detect missing prefix in role's handlers vars (#4826) (Conner Crosby) - chore(deps): update all dependencies (#4833) (renovate[bot]) - chore(deps): bump js-yaml from 4.1.0 to 4.1.1 in /test/schemas (#4849) (dependabot[bot]) - chore(deps-dev): bump glob from 10.4.5 to 10.5.0 in /test/schemas (#4847) (dependabot[bot]) - Add support for Fedora 43 (#4836) (Shane Frasier) - Migrate RTD URLs to docs.ansible.com (#4842) (John Barker) - fix: Pass module spec via stdin instead of command line args (#4844) (Florian Apolloner) - fix: Update mypy python version to 3.12 (#4846) (Alison Hart)