%bcond tests %{undefined rhel} Name: ansible-collection-community-crypto Version: 2.17.1 Release: 1%{?dist} Summary: The community.crypto collection for Ansible # See the LICENSES directory and the summary in the README License: GPL-3.0-or-later AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND PSF-2.0 URL: %{ansible_collection_url community crypto} Source: https://github.com/ansible-collections/community.crypto/archive/%{version}/community.crypto-%{version}.tar.gz # build_ignore development files, tests, and docs Patch: build_ignore.patch BuildArch: noarch BuildRequires: ansible-packaging %if %{with tests} BuildRequires: ansible-packaging-tests BuildRequires: pyproject-rpm-macros %endif %description %{summary}. %prep %autosetup -p1 -n community.crypto-%{version} find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' + %if %{with tests} %generate_buildrequires %pyproject_buildrequires -N tests/unit/requirements.txt %endif %build %ansible_collection_build %install %ansible_collection_install %check %if %{with tests} %ansible_test_unit %endif %files -f %{ansible_collection_filelist} %license COPYING LICENSES .reuse/* %doc README.md CHANGELOG.rst* docs/docsite/rst/ %changelog * Sun Jan 28 2024 Maxwell G - 2.17.1-1 - Update to 2.17.1. Fixes rhbz#2234040. * Mon Jan 22 2024 Fedora Release Engineering - 2.15.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 2.15.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Aug 13 2023 Maxwell G - 2.15.0-1 - Update to 2.15.0. Fixes rhbz#2231669. * Wed Jul 19 2023 Fedora Release Engineering - 2.14.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Maxwell G - 2.14.1-1 - Initial package. Fixes rhbz#2222120.