SHA256
1
0
forked from pool/ansible-lint
ansible-lint/ansible-lint.spec
Klaus Kämpf 331b20c268 Accepting request 568211 from home:bmanojlovic:branches:systemsmanagement
- updated to latest release 3.4.20
  + fixed rpm check build to use only python2 for now
  + Fix for Python 2.6
  + added stdin to expected vars for command module
  + added testcase
  + made test >2.4 specific
  + fixed wrong test-playbook
  + Adding feature for issue #283, adding the ability to use a .ansible-lint
    yaml configuration file in the working directory instead of command line
    arguments.
  + Adding CLI flag for specifying configuration file.  Also adding guard
    test to confirm that configuration file properties can be overriden by
    command line.
  + Adding 'merge' behavior to config file and CLI options.  The 'True'
    value will be preferred in the case of simple flags, while lists will be
    merged.
  + Fixing 3.4 issue with errs not able to be concatenated with a string
  + Clarifying that -F is a path to file in the documentation.  Also
    expanding unnecessarily contracted line
  + Updating config file to use -c to make it clear it is a configuration
    file being specified.
  + added include_tasks and import_tasks to utils
  + updated example rule
  + Add supervisorctl and systemd module support
  + Add template/lineinfile module support
  + Although how bin/ansible-lint works has changed significantly,
    it should still exist so docs are accurate and for testing.
  + Handle the 'cmd' argument in command/shell

OBS-URL: https://build.opensuse.org/request/show/568211
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ansible-lint?expand=0&rev=2
2018-01-23 07:52:32 +00:00

57 lines
1.4 KiB
RPMSpec

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global lib_name ansiblelint
Name: ansible-lint
Version: 3.4.20
Release: 1%{?dist}
Summary: Best practices checker for Ansible
License: MIT
URL: https://github.com/willthames/ansible-lint
Source0: https://github.com/willthames/ansible-lint/archive/v%{version}/ansible-lint-%{version}.tar.gz
BuildArch: noarch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: ansible
BuildRequires: python-rpm-macros
BuildRequires: fdupes
Requires: ansible
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
Checks playbooks for practices and behavior that could potentially be improved
%prep
%autosetup -n ansible-lint-%{version}
rm -rf *.egg-info
#find -name '*.py' | xargs sed -i '1s|^#!python|#!%%{__python2}|'
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/ansible-lint
%python_expand %fdupes -s %{buildroot}/%{$python_sitelib}
%post
%python_install_alternative ansible-lint
%postun
%python_uninstall_alternative ansible-lint
%check
PYTHONPATH=%{buildroot}%{python2_sitelib} %__python setup.py test
%files %python_files
%defattr(-,root,root,-)
%doc README.md
%python_alternative %{_bindir}/ansible-lint
%{python_sitelib}/*
%changelog