summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--0001-Exclude-unnecessary-files-from-built-collection.patch23
-rw-r--r--ansible-collection-galaxy-galaxy-2.0.3-1.fc38.src.rpmbin0 -> 135600 bytes
-rw-r--r--ansible-collection-galaxy-galaxy.spec36
3 files changed, 59 insertions, 0 deletions
diff --git a/0001-Exclude-unnecessary-files-from-built-collection.patch b/0001-Exclude-unnecessary-files-from-built-collection.patch
new file mode 100644
index 0000000..bbf2bc3
--- /dev/null
+++ b/0001-Exclude-unnecessary-files-from-built-collection.patch
@@ -0,0 +1,23 @@
+--- galaxy_collection-2.0.3/galaxy.yml 2023-09-14 13:13:28.014271452 -0400
++++ galaxy_collection-2.0.3/galaxy.yml 2023-09-14 15:31:02.673914728 -0400
+@@ -28,4 +28,20 @@
+ - template_galaxy.yml
+ - '*.tar.gz'
+ - test
++ - .ansible-lint
++ - .flake8
++ - .github
++ - .gitignore
++ - .markdownlint.yml
++ - .mlc_config.json
++ - .pre-commit-config.yaml
++ - .yamllint.yml
++ - changelogs
++ - "CHANGELOG.rst*"
++ - README.md
++ - COPYING
++ - LICENSES
++ - .reuse
++ - STANDARDS.md
++
+ ...
diff --git a/ansible-collection-galaxy-galaxy-2.0.3-1.fc38.src.rpm b/ansible-collection-galaxy-galaxy-2.0.3-1.fc38.src.rpm
new file mode 100644
index 0000000..32a59f8
--- /dev/null
+++ b/ansible-collection-galaxy-galaxy-2.0.3-1.fc38.src.rpm
Binary files differ
diff --git a/ansible-collection-galaxy-galaxy.spec b/ansible-collection-galaxy-galaxy.spec
new file mode 100644
index 0000000..521f3d5
--- /dev/null
+++ b/ansible-collection-galaxy-galaxy.spec
@@ -0,0 +1,36 @@
+Name: ansible-collection-galaxy-galaxy
+Version: 2.0.3
+Release: 1%{?dist}
+Summary: Ansible modules and plugins for working with Automation Hub
+
+License: GPL-3.0-only
+URL: %{ansible_collection_url ansible galaxy_collection}
+Source0: https://github.com/ansible/galaxy_collection/archive/%{version}/galaxy_collection-%{version}.tar.gz
+
+BuildArch: noarch
+BuildRequires: ansible-packaging
+
+Patch0: 0001-Exclude-unnecessary-files-from-built-collection.patch
+
+%description
+ansible-collection-galaxy-galaxy provides the galaxy Ansible
+collection. The collection includes Ansible modules and plugins for working
+with Automation Hub.
+
+%prep
+%autosetup -n galaxy_collection-%{version} -p1
+find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' +
+
+%build
+%ansible_collection_build
+
+%install
+%ansible_collection_install
+
+%files -f %{ansible_collection_filelist}
+%license COPYING
+%doc README.md
+
+%changelog
+* Thu Sep 14 2023 Andrew H <aheath1992@gmail.com> - 2.0.3-1
+- Inital Package