diff --git a/.ansible-collection-ansible-posix.metadata b/.ansible-collection-ansible-posix.metadata new file mode 100644 index 0000000..f5d62ff --- /dev/null +++ b/.ansible-collection-ansible-posix.metadata @@ -0,0 +1 @@ +5428586528852a4da39ed4e9002142af22381ea9 SOURCES/ansible-collection-ansible-posix-1.5.1.tar.gz diff --git a/SOURCES/0001-Exclude-unnecessary-files-from-built-collection.patch b/SOURCES/0001-Exclude-unnecessary-files-from-built-collection.patch new file mode 100644 index 0000000..f93765e --- /dev/null +++ b/SOURCES/0001-Exclude-unnecessary-files-from-built-collection.patch @@ -0,0 +1,33 @@ +From: Maxwell G +Subject: [PATCH] Exclude unnecessary files from built collection + +--- + galaxy.yml | 15 +++++++++++++++ + 1 file changed, 15 insertions(+) + +diff --git a/galaxy.yml b/galaxy.yml +index a3b9509..0586254 100644 +--- a/galaxy.yml ++++ b/galaxy.yml +@@ -12,3 +12,18 @@ repository: https://github.com/ansible-collections/ansible.posix + documentation: https://github.com/ansible-collections/ansible.posix/tree/main/docs + homepage: https://github.com/ansible-collections/ansible.posix + issues: https://github.com/ansible-collections/ansible.posix ++build_ignore: ++ - "*requirements.txt" ++ - .azure-pipelines ++ - .github ++ - .gitignore ++ - changelogs/fragments ++ - codecov.yml ++ - shippable.yml ++ - tests ++ - tests/.gitignore ++ # Exclude files that we install with %doc and %license ++ - COPYING ++ - PSF-license.txt ++ - README.md ++ - CHANGELOG.rst +-- +2.37.3 + diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..bad4953 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# ansible-collection-ansible-posix + +The ansible-collection-ansible-posix package diff --git a/SPECS/ansible-collection-ansible-posix.spec b/SPECS/ansible-collection-ansible-posix.spec new file mode 100644 index 0000000..e1e6561 --- /dev/null +++ b/SPECS/ansible-collection-ansible-posix.spec @@ -0,0 +1,97 @@ +# Disable tests +%bcond_with tests + +Name: ansible-collection-ansible-posix +Version: 1.5.1 +Release: 1%{?dist} +Summary: Ansible Collection targeting POSIX and POSIX-ish platforms + +# plugins/module_utils/mount.py: Python Software Foundation License version 2 +License: GPL-3.0-or-later and PSF-2.0 +URL: https://galaxy.ansible.com/ansible/posix +Source: https://github.com/ansible-collections/ansible.posix/archive/%{version}/%{name}-%{version}.tar.gz +# Exclude unneceesary development files and duplicate docs from the built +# collection. This is a downstream only patch. Upstreams include these files +# for reasons that are irrelevant to Fedora. +Patch0: 0001-Exclude-unnecessary-files-from-built-collection.patch +BuildRequires: ansible-packaging +%if %{with tests} +BuildRequires: ansible-packaging-tests +%endif + +BuildArch: noarch + + +%description +%{summary}. + + +%prep +%autosetup -n ansible.posix-%{version} -p1 +find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' + + + +%build +%ansible_collection_build + + +%install +%ansible_collection_install + + +%check +%if %{with tests} +%ansible_test_unit +%endif + + +%files -f %{ansible_collection_filelist} +%license COPYING PSF-license.txt +%doc README.md CHANGELOG.rst + + +%changelog +* Tue Jan 24 2023 Maxwell G - 1.5.1-1 +- Update to 1.5.1. Fixes rhbz#2162988. + +* Wed Jan 18 2023 Fedora Release Engineering - 1.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jul 20 2022 Fedora Release Engineering - 1.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue May 24 2022 Maxwell G - 1.4.0-1 +- Update to 1.4.0. Fixes rhbz#2089504. + +* Tue May 10 2022 Maxwell G - 1.3.0-5 +- Rebuild for new ansible-packaging. + +* Tue Feb 22 2022 Maxwell G - 1.3.0-4 +- Switch to ansible-packaging. + +* Wed Jan 19 2022 Fedora Release Engineering - 1.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +Thu Oct 14 2021 Sagi Shnaidman - 1.3.0-2 +- Use ansible or ansible-core as BuildRequires + +* Mon Sep 06 2021 Kevin Fenzi - 1.3.0-1 +- Update to 1.3.0. Fixes rhbz#1992970 + +* Wed Jul 21 2021 Fedora Release Engineering - 1.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sat Apr 24 2021 Kevin Fenzi - 1.2.0-1 +- Update to 1.2.0. + +* Tue Jan 26 2021 Fedora Release Engineering - 1.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Jan 16 2021 Kevin Fenzi - 1.1.1-2 +- Rebuild against new ansible-generator and allow to be used by ansible-base-2.10.x + +* Tue Dec 29 2020 Igor Raits - 1.1.1-1 +- Update to 1.1.1 + +* Sun Aug 09 2020 Igor Raits - 1.1.0-1 +- Initial package