c12813c
%global archive_name ansible-lint
c12813c
%global lib_name ansiblelint
c12813c
c12813c
Name:           %{archive_name}
9465e02
Version:        2.3.1
fe2e77e
Release:        1%{?dist}
c12813c
Summary:        Best practices checker for Ansible
c12813c
c12813c
License:        MIT
c12813c
URL:            https://github.com/willthames/ansible-lint
c12813c
Source0:        https://pypi.python.org/packages/source/a/%{archive_name}/%{archive_name}-%{version}.tar.gz
c12813c
c12813c
BuildArch:      noarch
c12813c
BuildRequires:  python2-devel
c12813c
BuildRequires:  python-setuptools
c12813c
BuildRequires:  ansible
c12813c
Requires:       ansible
c12813c
c12813c
%description
c12813c
Checks playbooks for practices and behavior that could potentially be improved
c12813c
c12813c
%prep
c12813c
%setup -q -n %{archive_name}-%{version}
c12813c
rm -rf *.egg-info
c12813c
c12813c
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
c12813c
c12813c
%build
c12813c
%{__python2} setup.py build
c12813c
c12813c
%install
c12813c
%{__python2} setup.py install --skip-build --root=%{buildroot}
c12813c
c12813c
%check
c12813c
%{__python2} setup.py test
c12813c
c12813c
%files
6f318a7
%doc PKG-INFO 
6f318a7
%license LICENSE
c12813c
%{_bindir}/%{name}
c12813c
%{python2_sitelib}/%{lib_name}
c12813c
%{python2_sitelib}/ansible_lint-%{version}-py2.*.egg-info
c12813c
c12813c
%changelog
9465e02
* Fri Jan 15 2016 Parag Nemade <pnemade AT redhat DOT com> - 2.3.1-1
9465e02
- Update to 2.3.1 release
9465e02
5fcb1f2
* Fri Jan 15 2016 Parag Nemade <pnemade AT redhat DOT com> - 2.3.0-1
5fcb1f2
- Update to 2.3.0 release
5fcb1f2
d80864f
* Mon Dec 21 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.2.0-1
d80864f
- Update to 2.2.0
d80864f
fe2e77e
* Tue Nov 24 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.1.0-1
fe2e77e
- Update to 2.1.0
fe2e77e
329c02d
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.3-2
329c02d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
329c02d
02055cf
* Thu Jan 08 2015 Parag Nemade <pnemade AT redhat DOT com> - 2.0.3-1
02055cf
- Update to 2.0.3
02055cf
d14709d
* Fri Dec 05 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.0.1-1
d14709d
- Update to 2.0.1
d14709d
c12813c
* Mon Oct 27 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0.4-1
c12813c
- rename to ansible-lint
c12813c
- new upstream 1.0.4 release which added LICENSE file.
c12813c
c12813c
* Sat Oct 25 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0.2-2
c12813c
- Better add upstream LICENSE file, not present in tarball
c12813c
c12813c
* Wed Sep 24 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0.2-1
c12813c
- Initial packaging
c12813c