## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname ansible-compat %global pkgname python-ansible-compat %bcond_without tests Name: %{pkgname} Version: 3.0.1 Release: %autorelease Summary: Ansible python helper functions URL: https://github.com/ansible/ansible-compat Source0: %{pypi_source ansible-compat} License: MIT BuildArch: noarch BuildRequires: pyproject-rpm-macros BuildRequires: ansible-core %if %{with tests} BuildRequires: python3dist(flaky) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-mock) %endif %global common_description %{expand: A python package containing functions that help interacting with various versions of Ansible} %description %{common_description} %package -n python-%{srcname}-doc Summary: %summary %description -n python-%{srcname}-doc Documentation for python-ansible-compat %package -n python3-%{srcname} Summary: %summary %description -n python3-%{srcname} %{common_description} %prep %autosetup -p1 -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %if %{with doc} PYTHONPATH=src sphinx-build-3 docs html rm -rf html/.{doctrees,buildinfo} %endif %install %pyproject_install %pyproject_save_files ansible_compat %if %{with tests} %check %pytest -vv test -k \ %{shrink: ' not test_prepare_environment_with_collections and not test_prerun_reqs_v1 and not test_prerun_reqs_v2 and not test_require_collection_wrong_version and not test_require_collection and not test_install_collection and not test_install_collection_dest and not test_upgrade_collection and not test_require_collection_no_cache_dir and not test_runtime_run ' } %endif %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %if %{with doc} %files -n python-%{srcname}-doc %license LICENSE %doc *.rst %doc html/ %endif %changelog * Mon Feb 06 2023 Parag Nemade 3.0.1-1 - Update to 3.0.1 release (#2166100) * Fri Jan 20 2023 Fedora Release Engineering 2.2.7-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Dec 15 2022 Maxwell G 2.2.7-9 - Use %%pyproject_save_files * Thu Dec 15 2022 Maxwell G 2.2.7-8 - Remove unnecessary %%py_provides call * Thu Dec 15 2022 Maxwell G 2.2.7-7 - Fix installation of test dependencies - Add missing `%%if %%{with tests}` - Don't use `%%pyproject_buildrequires -x testing`. There is no `testing` extra. * Thu Dec 15 2022 Maxwell G 2.2.7-6 - Simplify unit test running - Use %%pytest macro - Disable tests that require networking inline instead of using a patch that needs to be rebased after every update. * Wed Dec 14 2022 Maxwell G 2.2.7-5 - Remove manual requires that are already generated * Wed Dec 14 2022 Maxwell G 2.2.7-4 - Pass argument to %%pypi_source * Wed Dec 14 2022 Maxwell G 2.2.7-3 - Remove unnecessary %%{forgeurl} macro * Wed Dec 14 2022 Maxwell G 2.2.7-2 - Remove unnecessary %%forgemeta call * Wed Dec 14 2022 Maxwell G 2.2.7-1 - Update to 2.2.7. Fixes rhbz#2152372. * Sat Dec 03 2022 chedi toueiti 2.2.6-1 - update to version 2.2.6 (##2149906) * Tue Nov 22 2022 chedi toueiti 2.2.5-1 - update to version 2.2.5 (#2144102) * Wed Nov 02 2022 chedi toueiti 2.2.4-1 - update to version 2.2.4 (#2139252) * Mon Oct 31 2022 chedi toueiti 2.2.3-1 - update to version 2.2.3 (#2138930) * Sat Sep 24 2022 chedi toueiti 2.2.1-1 - Update to version 2.2.1 (#2129435) * Wed Jun 29 2022 chedi toueiti 2.1.0-5 - fixing the tests * Wed Jun 29 2022 chedi toueiti 2.1.0-4 - typo correction * Wed Jun 29 2022 chedi toueiti 2.1.0-3 - adding missing pytest build requirements * Wed Jun 29 2022 chedi toueiti 2.1.0-1 - update to 2.1.0 * Wed May 18 2022 Chedi Toueiti 2.0.4-1 - update to version 2.0.4 * Wed May 18 2022 Chedi Toueiti 2.0.3-1 - update to version 2.0.3 * Wed Mar 23 2022 Parag Nemade 2.0.2-1 - Update to 2.0.2 version * Fri Jan 21 2022 Fedora Release Engineering 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Sep 08 2021 chedi 0.5.0-1 - initial commit