%global archive_name ansible-lint %global lib_name ansiblelint Name: %{archive_name} Version: 4.2.0 Release: 3%{?dist} Summary: Best practices checker for Ansible License: MIT URL: https://github.com/willthames/ansible-lint Source0: https://github.com/willthames/%{archive_name}/archive/v%{version}.tar.gz BuildArch: noarch BuildRequires: pyproject-rpm-macros %description Checks playbooks for practices and behavior that could potentially be improved. %package -n python3-%{archive_name} Summary: %summary BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(setuptools-scm-git-archive) BuildRequires: ansible BuildRequires: python3dist(six) BuildRequires: python3dist(ruamel.yaml) BuildRequires: python3dist(wheel) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-cov) Requires: ansible Requires: python3dist(six) Requires: python3dist(ruamel.yaml) %{?python_provide:%python_provide python3-%{archive_name}} Obsoletes: python2-%{archive_name} < 3.4.23-6 Provides: %{archive_name} = %{version}-%{release} %description -n python3-%{archive_name} Python3 module for ansible-lint. %prep %autosetup -n %{archive_name}-%{version} %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # On newer releases, which only have Python 3, you will get: # ansible-lint => Python 3 # ansible-lint-3 => Python 3 (to avoid breaking anyone's scripts) ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}-3 %check # Following sed execution is necessary for test/TestCommandLineInvocationSameAsConfig.py sed -i -e '/^#!/c\#!%{_bindir}/python3' bin/ansible-lint export PYTHONPATH=%{buildroot}/%{python3_sitelib} # some tests are failing %{__python3} -m pytest -v test/Test*.py || : %files -n python3-%{archive_name} %doc README.rst ROADMAP.rst CHANGELOG.rst examples %license LICENSE %{_bindir}/%{name} %{_bindir}/%{name}-3 %{python3_sitelib}/%{lib_name} %{python3_sitelib}/ansible_lint-%{version}.dist-info %changelog * Tue Feb 18 2020 Parag Nemade - 4.2.0-3 - Update to 4.2.0 GA release * Tue Jan 28 2020 Fedora Release Engineering - 4.2.0a1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Nov 30 2019 Parag Nemade - 4.2.0a1-1 - Update to 4.2.0a1 version (#1776487) * Tue Nov 12 2019 Parag Nemade - 4.1.1a5-1 - Update to 4.1.1a5 version (#1771098) * Tue Nov 05 2019 Parag Nemade - 4.1.1a3-2 - Fix test run in %%check * Tue Nov 05 2019 Parag Nemade - 4.1.1a3-1 - Update to 4.1.1a3 version (#1765630) * Sat Nov 02 2019 Parag Nemade - 4.1.1a0-4 - Fix dependency ansible-python3 to ansible * Thu Oct 03 2019 Miro Hrončok - 4.1.1a0-3 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 4.1.1a0-2 - Rebuilt for Python 3.8 * Sat Aug 17 2019 Parag Nemade - 4.1.1a0-1 - Update to 4.1.1a0 version (#1742505) * Wed Jul 24 2019 Fedora Release Engineering - 4.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Feb 13 2019 Parag Nemade - 4.1.0-1 - Update to 4.1.0 version (#1674307) * Thu Jan 31 2019 Fedora Release Engineering - 3.4.23-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Oct 25 2018 Parag Nemade - 3.4.23-7 - Add back Provides: ansible-lint * Sun Oct 07 2018 Parag Nemade - 3.4.23-6 - Fix the upgrade path (rh#1634352) * Thu Jul 12 2018 Fedora Release Engineering - 3.4.23-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 26 2018 Miro Hrončok - 3.4.23-4 - Rebuilt for Python 3.7 * Mon Jun 25 2018 Dan Callaghan - 3.4.23-3 - python3-ansible-lint conflicts with python2-ansible-lint because /usr/bin/ansible-lint moved between subpackages * Tue Jun 19 2018 Miro Hrončok - 3.4.23-2 - Rebuilt for Python 3.7 * Mon Jun 18 2018 Parag Nemade - 3.4.23-1 - Update to 3.4.23 version (#1592159) * Sun Jun 17 2018 Parag Nemade - 3.4.22-1 - Update to 3.4.22 version (#1559645) * Tue Apr 03 2018 Dan Callaghan - 3.4.21-2 - no longer building Python 2 bits in releases which have dropped Python 2 - added missing requirements on PyYAML and six * Wed Mar 14 2018 Parag Nemade - 3.4.21-1 - Update to 3.4.21 version (#1555095) * Wed Feb 07 2018 Fedora Release Engineering - 3.4.20-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Dec 21 2017 Parag Nemade - 3.4.20-1 - Update to 3.4.20 version (#1528085) * Thu Dec 14 2017 Parag Nemade - 3.4.19-3 - Fix the test/TestCommandLineInvocationSameAsConfig.py execution for python3 * Wed Dec 13 2017 Jan Beran - 3.4.19-2 - Python 2 binary package renamed to python2-ansible-lint - Python 3 subpackage * Mon Dec 11 2017 Parag Nemade - 3.4.19-1 - Update to 3.4.19 version (#1524156) * Sun Oct 22 2017 Parag Nemade - 3.4.17-1 - Update to 3.4.17 version (#1505124) * Tue Oct 03 2017 Parag Nemade - 3.4.16-1 - Update to 3.4.16 version (#1497872) * Sat Sep 02 2017 Parag Nemade - 3.4.15-1 - Update to 3.4.15 version * Wed Jul 26 2017 Fedora Release Engineering - 3.4.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed May 03 2017 Parag Nemade - 3.4.13-1 - Update to 3.4.13 version * Mon Mar 20 2017 Parag Nemade - 3.4.12-1 - Update to 3.4.12 version * Mon Feb 13 2017 Parag Nemade - 3.4.11-1 - Update to 3.4.11 * Fri Feb 10 2017 Fedora Release Engineering - 3.4.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Jan 16 2017 Parag Nemade - 3.4.10-1 - Update to 3.4.10 * Thu Dec 22 2016 Parag Nemade - 3.4.9-1 - Update to 3.4.9 * Fri Dec 16 2016 Parag Nemade - 3.4.8-1 - Update to 3.4.8 * Mon Dec 05 2016 Parag Nemade - 3.4.7-1 - Update to 3.4.7 * Tue Nov 15 2016 Parag Nemade - 3.4.4-1 - Update to 3.4.4 * Tue Nov 08 2016 Parag Nemade - 3.4.3-1 - Update to 3.4.3 * Fri Oct 28 2016 Parag Nemade - 3.4.1-1 - Update to 3.4.1 * Fri Sep 30 2016 Parag Nemade - 3.3.3-1 - Update to 3.3.3 * Fri Sep 30 2016 Parag Nemade - 3.3.2-1 - Update to 3.3.2 * Thu Jul 28 2016 Parag Nemade - 3.2.5-1 - Update to 3.2.5 * Thu Jul 28 2016 Parag Nemade - 3.2.4-1 - Update to 3.2.4 * Wed Jul 27 2016 Parag Nemade - 3.2.1-1 - Upstream release 3.2.1 * Tue Jul 19 2016 Fedora Release Engineering - 3.2.0-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon Jul 18 2016 Parag Nemade - 3.2.0-1 - Upstream release 3.2.0 * Fri Jul 15 2016 Parag Nemade - 3.1.3-1 - Upstream release 3.1.3 * Thu Jul 07 2016 Parag Nemade - 3.1.2-1 - Upstream release 3.1.2 * Thu Jun 30 2016 Parag Nemade - 3.1.1-1 - Upstream release 3.1.1 * Wed Jun 29 2016 Parag Nemade - 3.1.0-1 - Upstream release 3.1.0 * Fri Jun 24 2016 Parag Nemade - 3.0.1-2 - Fixed typo in previous changelog entry * Fri Jun 24 2016 Parag Nemade - 3.0.1-1 - Update to 3.0.1 release * Thu Jun 23 2016 Parag Nemade - 3.0.0-1 - Update to 3.0.0 release * Tue May 10 2016 Parag Nemade - 2.6.2-1 - Update to 2.6.2 release * Sat Mar 19 2016 Parag Nemade - 2.4.1-1 - Update to 2.4.1 release * Wed Mar 16 2016 Parag Nemade - 2.4.0-1 - Update to 2.4.0 release * Thu Mar 03 2016 Parag Nemade - 2.3.9-1 - Update to 2.3.9 release * Fri Feb 26 2016 Parag Nemade - 2.3.8-1 - Update to 2.3.8 release * Sat Feb 06 2016 Parag Nemade - 2.3.5-1 - Update to 2.3.5 release * Wed Feb 03 2016 Fedora Release Engineering - 2.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jan 31 2016 Parag Nemade - 2.3.3-1 - Update to 2.3.3 release * Fri Jan 15 2016 Parag Nemade - 2.3.1-1 - Update to 2.3.1 release * Fri Jan 15 2016 Parag Nemade - 2.3.0-1 - Update to 2.3.0 release * Mon Dec 21 2015 Parag Nemade - 2.2.0-1 - Update to 2.2.0 * Tue Nov 24 2015 Parag Nemade - 2.1.0-1 - Update to 2.1.0 * Tue Jun 16 2015 Fedora Release Engineering - 2.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jan 08 2015 Parag Nemade - 2.0.3-1 - Update to 2.0.3 * Fri Dec 05 2014 Parag Nemade - 2.0.1-1 - Update to 2.0.1 * Mon Oct 27 2014 Parag Nemade - 1.0.4-1 - rename to ansible-lint - new upstream 1.0.4 release which added LICENSE file. * Sat Oct 25 2014 Parag Nemade - 1.0.2-2 - Better add upstream LICENSE file, not present in tarball * Wed Sep 24 2014 Parag Nemade - 1.0.2-1 - Initial packaging