Blame SPECS/ansible-collection-ansible-utils.spec

ec83ed
%global collection_namespace ansible
ec83ed
%global collection_name utils
ec83ed
ec83ed
Name:           ansible-collection-%{collection_namespace}-%{collection_name}
ec83ed
Version:        2.3.0
ec83ed
Release:        2%{?dist}
ec83ed
Summary:        Ansible Network Collection for Common Code
ec83ed
ec83ed
License:        GPLv3+
ec83ed
URL:            %{ansible_collection_url}
ec83ed
Source:         https://github.com/ansible-collections/ansible.utils/archive/%{version}/%{name}-%{version}.tar.gz
ec83ed
ec83ed
BuildRequires:  ansible >= 2.9.10
ec83ed
ec83ed
BuildArch:      noarch
ec83ed
ec83ed
%description
ec83ed
%{summary}.
ec83ed
ec83ed
%prep
ec83ed
%autosetup -n ansible.utils-%{version}
ec83ed
sed -i -e '/version:/s/null/%{version}/' galaxy.yml
ec83ed
find -type f ! -executable -type f -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' +
ec83ed
rm -fvr tests/integration tests/unit bindep.txt .pre-commit-config.yaml .yamllint changelogs/fragments/.keep
ec83ed
find -type f -name '.gitignore' -print -delete
ec83ed
ec83ed
%build
ec83ed
%ansible_collection_build
ec83ed
ec83ed
%install
ec83ed
%ansible_collection_install
ec83ed
ec83ed
%files
ec83ed
%license LICENSE
ec83ed
%doc README.md
ec83ed
%{ansible_collection_files}
ec83ed
ec83ed
%changelog
ec83ed
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
ec83ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
ec83ed
ec83ed
* Tue Jul 06 2021 Sagi Shnaidman <sshnaidm@redhat.com> - 2.3.0-1
ec83ed
- Initial package
ec83ed