summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Heath <anheath@redhat.com>2023-08-10 09:58:52 -0400
committerAndrew Heath <anheath@redhat.com>2023-08-10 09:58:52 -0400
commitb897cbb41c9cd80a741886338f2e12fbba6987d9 (patch)
treef56e0bcbe4b475555678cf8ba7223764b1d8d0be
downloadansible-collection-awx-awx-b897cbb41c9cd80a741886338f2e12fbba6987d9.tar.gz
ansible-collection-awx-awx-b897cbb41c9cd80a741886338f2e12fbba6987d9.tar.xz
ansible-collection-awx-awx-b897cbb41c9cd80a741886338f2e12fbba6987d9.zip
Initial commit
-rw-r--r--ansible-collection-awx-awx-22.6.0-1.fc38.src.rpmbin0 -> 17646726 bytes
-rw-r--r--ansible-collection-awx-awx.spec62
2 files changed, 62 insertions, 0 deletions
diff --git a/ansible-collection-awx-awx-22.6.0-1.fc38.src.rpm b/ansible-collection-awx-awx-22.6.0-1.fc38.src.rpm
new file mode 100644
index 0000000..5e33129
--- /dev/null
+++ b/ansible-collection-awx-awx-22.6.0-1.fc38.src.rpm
Binary files differ
diff --git a/ansible-collection-awx-awx.spec b/ansible-collection-awx-awx.spec
new file mode 100644
index 0000000..669f3ee
--- /dev/null
+++ b/ansible-collection-awx-awx.spec
@@ -0,0 +1,62 @@
+# ansible-core is built for alternative Python stacks in RHEL which do not have
+# the necessary test deps packaged.
+%if %{defined fedora}
+%bcond_without tests
+%else
+%bcond_with tests
+%endif
+
+Name: ansible-collection-awx-awx
+Version: 22.6.0
+Release: 1%{?dist}
+Summary: Ansible modules and plugins for working with Awx
+
+License: GPL-3.0-or-later AND Apache-2.0
+URL: %{ansible_collection_url awx awx}
+Source0: https://github.com/ansible/awx/archive/%{version}/awx-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: ansible-packaging
+%if %{with tests/units}
+BuildRequires: ansible-packaging-tests
+BuildRequires: %{py3_dist requests}
+%endif
+
+%description
+ansible-collection-awx-awx provides the Awx.Awx Ansible
+collection. The collection includes Ansible modules and plugins for working
+with AWX.
+
+%prep
+%autosetup -n awx-%{version} -p1
+find -type f ! -executable -name '*.py' -print -exec sed -i -e '1{\@^#!.*@d}' '{}' +
+
+%build
+ansible-playbook -i localhost, awx_collection/tools/template_galaxy.yml \
+ -e collection_package=awx \
+ -e collection_namespace=awx \
+ -e collection_version=%{version} \
+ -e '{"awx_template_version": false}'
+cd %{_builddir}/awx-%{version}/awx_collection_build/
+%ansible_collection_build
+
+%install
+cd %{_builddir}/awx-%{version}/awx_collection_build/
+echo $(ls -l)
+%ansible_collection_install
+
+%if %{with tests/units}
+%check
+cd %{_builddir}/awx-%{version}/awx_collection_build/
+%ansible_test_unit
+%endif
+
+
+%files -f %{ansible_collection_filelist}
+%license awx_collection_build/COPYING
+%doc README.md
+
+%changelog
+* Fri Jul 28 2023 Andrew H <aheath1992@gmail.com> - 22.6.0-1
+- Inital Package