d8d6259
Name:           ansible-review
1a7ff18
Version:        0.13.9
6393102
Release:        5%{?dist}
d8d6259
Summary:        Reviews Ansible playbooks, roles and inventory and suggests improvements
d8d6259
License:        MIT
d8d6259
URL:            https://github.com/willthames/ansible-review
d8d6259
Source0:        https://files.pythonhosted.org/packages/source/a/%{name}/%{name}-%{version}.tar.gz
6b7558b
# https://github.com/willthames/ansible-review/pull/85
6b7558b
Patch0:         ansible-review-0.13.9-ansible-2.4-inventory.patch
6393102
# https://github.com/willthames/ansible-review/pull/90
6393102
Patch1:         ansible-review-0.13.9-dict-size-changed.patch
d8d6259
BuildArch:      noarch
ae2a74b
ae2a74b
%global _description\
ae2a74b
Tool to review Ansible playbooks, roles, and inventory and suggest improvements.
ae2a74b
ae2a74b
%description %_description
ae2a74b
ae2a74b
%package -n python3-%{name}
ae2a74b
ae2a74b
Summary:        %summary
ae2a74b
BuildRequires:  python3-devel
1a7ff18
BuildRequires:  python3-mock
ae2a74b
BuildRequires:  python3-nose
ae2a74b
Requires:       python3-ansible-lint >= 3.4.19-2
ae2a74b
Requires:       python3-appdirs
ae2a74b
Requires:       python3-flake8
80a10f5
Requires:       python3-unidiff
80a10f5
Requires:       python3-yaml
ae2a74b
# Runtime requirements also needed in the build to run tests:
ae2a74b
BuildRequires:  python3-ansible-lint >= 3.4.19-2
ae2a74b
BuildRequires:  python3-appdirs
ae2a74b
BuildRequires:  python3-flake8
80a10f5
BuildRequires:  python3-unidiff
80a10f5
BuildRequires:  python3-yaml
ae2a74b
%{?python_provide:%python_provide python3-%{name}}
ae2a74b
ae2a74b
%description  -n python3-%{name} %_description
d8d6259
d8d6259
%prep
91be22f
%autosetup -p1
ae2a74b
d8d6259
%build
ae2a74b
%py3_build
d8d6259
d8d6259
%install
ae2a74b
%py3_install
bd83d3f
# Symlink old Python 3 command for compatibility
bd83d3f
ln -s %{name} %{buildroot}%{_bindir}/%{name}-3
d8d6259
d8d6259
%check
ae2a74b
nosetests-%{python3_version} -v test/
d8d6259
ae2a74b
%files -n python3-%{name}
ae2a74b
%license LICENSE
ae2a74b
%doc README.md
61c885e
%{_bindir}/%{name}
ae2a74b
%{_bindir}/%{name}-3
ae2a74b
%{python3_sitelib}/ansiblereview
ae2a74b
%{python3_sitelib}/ansible_review*.egg-info
ae2a74b
d8d6259
%changelog
6393102
* Tue Jun 09 2020 Nils Philippsen <nils@redhat.com> - 0.13.9-5
6393102
- fix crash caused by removing elements while iterating over a dictionary
6393102
0980977
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.13.9-4
0980977
- Rebuilt for Python 3.9
0980977
4d5fee2
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.9-3
4d5fee2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
4d5fee2
6b7558b
* Thu Dec 05 2019 Nils Philippsen <nils@redhat.com> - 0.13.9-2
6b7558b
- cope with how Ansible >= 2.4 deals with inventories internally
6b7558b
1a7ff18
* Wed Dec 04 2019 Nils Philippsen <nils@redhat.com> - 0.13.9-1
1a7ff18
- upstream bugfix release 0.13.9:
1a7ff18
  https://github.com/willthames/ansible-review/blob/master/CHANGELOG.md#0139
bd83d3f
- get rid of Python 2 support in the spec file
80a10f5
- sort deps
1a7ff18
bb85e5a
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.13.7-7
bb85e5a
- Rebuilt for Python 3.8.0rc1 (#1748018)
bb85e5a
3debe9d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.13.7-6
3debe9d
- Rebuilt for Python 3.8
3debe9d
eb12f9f
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.7-5
eb12f9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
eb12f9f
5c53fbf
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.7-4
5c53fbf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5c53fbf
91be22f
* Tue Jul 17 2018 Dan Callaghan <dcallagh@redhat.com> - 0.13.7-3
91be22f
- fix tests when run in Python 2 and C locale
91be22f
0b5d3be
* Tue Jul 17 2018 Dan Callaghan <dcallagh@redhat.com> - 0.13.7-2
0b5d3be
- remove unnecessary Python 3 fix
0b5d3be
e64a98c
* Tue Jul 17 2018 Dan Callaghan <dcallagh@redhat.com> - 0.13.7-1
e64a98c
- upstream bug fix release 0.13.7:
e64a98c
  https://github.com/willthames/ansible-review/blob/master/CHANGELOG.md#0137
e64a98c
9ee43ea
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.4-8
9ee43ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9ee43ea
cb56fad
* Tue Jun 26 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13.4-7
cb56fad
- Rebuilt for Python 3.7
cb56fad
a837771
* Tue Jun 26 2018 Dan Callaghan <dcallagh@redhat.com> - 0.13.4-6
ebee5f7
- add Conflicts to fix upgrade path when /usr/bin/ansible-review moves
a837771
7ae1a3c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13.4-5
7ae1a3c
- Rebuilt for Python 3.7
7ae1a3c
61c885e
* Tue Apr 03 2018 Dan Callaghan <dcallagh@redhat.com> - 0.13.4-4
61c885e
- no longer building Python 2 bits in releases which have dropped Python 2
61c885e
d20c70b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.4-3
d20c70b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d20c70b
ae2a74b
* Mon Dec 18 2017 Jan Beran <jberan@redhat.com> - 0.13.4-2
ae2a74b
- Python 2 binary package renamed to python2-ansible-review
ae2a74b
- Python 3 subpackage
ae2a74b
914a1d7
* Tue Oct 03 2017 Dan Callaghan <dcallagh@redhat.com> - 0.13.4-1
914a1d7
- upstream bug fix release 0.13.4, with ansible 2.4 compatibility:
914a1d7
  https://github.com/willthames/ansible-review/blob/master/CHANGELOG.md#0134
914a1d7
40e9932
* Wed Jul 26 2017 Dan Callaghan <dcallagh@redhat.com> - 0.13.0-5
40e9932
- depend on flake8 binary not package
40e9932
1d8688d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-4
1d8688d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1d8688d
2116abf
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-3
2116abf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2116abf
Timo Trinks 5404abd
* Tue Jan 10 2017 Timo Trinks <ttrinks@redhat.com> - 0.13.0-2
Timo Trinks 5404abd
- RHBZ#1410896: depend on python-flake8
Timo Trinks 5404abd
389d8e0
* Wed Dec 21 2016 Timo Trinks <ttrinks@redhat.com> - 0.13.0-1
Timo Trinks 0f85cfe
- upstream release 0.13.0:
Timo Trinks 0f85cfe
  https://github.com/willthames/ansible-review/blob/master/CHANGELOG.md#0130
Timo Trinks 0f85cfe
Timo Trinks e31c089
* Tue Nov 08 2016 Timo Trinks <ttrinks@redhat.com> - 0.12.2-1
Timo Trinks 13ae86c
- upstream bug fix release 0.12.2:
Timo Trinks 13ae86c
  https://github.com/willthames/ansible-review/blob/master/CHANGELOG.md#0122
Timo Trinks e31c089
0f47d79
* Wed Aug 24 2016 Dan Callaghan <dcallagh@redhat.com> - 0.10.1-1
0f47d79
- upstream bug fix release 0.10.1:
0f47d79
  https://github.com/willthames/ansible-review/blob/master/CHANGELOG.md#0101
0f47d79
4ddbc05
* Wed Aug 24 2016 Dan Callaghan <dcallagh@redhat.com> - 0.10.0-1
4ddbc05
- upstream release 0.10.0:
0f47d79
  https://github.com/willthames/ansible-review/blob/master/CHANGELOG.md#0100
4ddbc05
73a5e14
* Mon Aug 01 2016 Dan Callaghan <dcallagh@redhat.com> - 0.9.0-1
73a5e14
- upstream release 0.9.0
73a5e14
- use %%license properly
73a5e14
c042afe
* Wed Jun 29 2016 Dan Callaghan <dcallagh@redhat.com> - 0.7.5-1
c042afe
- updated to upstream release 0.7.5
c042afe
- depend on ansible-lint >= 3.0, removed patch for 2.x compatibility
c042afe
d8d6259
* Wed Jun 22 2016 Dan Callaghan <dcallagh@redhat.com> - 0.7.2-1
d8d6259
- initial version