From 7c4b53c50b74d9384825b1d0b1fe91f116e5d22c676df40a2ab0cbc2d16799f6 Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Thu, 16 Mar 2023 14:36:26 +0000 Subject: [PATCH] Accepting request 1072389 from home:ojkastl_buildservice:Branch_systemsmanagement_ansible new package ansible-builder for building Ansible execution environments OBS-URL: https://build.opensuse.org/request/show/1072389 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:ansible/ansible-builder?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + _service | 4 ++ ansible-builder-1.2.0.tar.gz | 3 ++ ansible-builder.changes | 4 ++ ansible-builder.spec | 81 ++++++++++++++++++++++++++++++++++++ python-ansible-builder.spec | 71 +++++++++++++++++++++++++++++++ 7 files changed, 187 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 ansible-builder-1.2.0.tar.gz create mode 100644 ansible-builder.changes create mode 100644 ansible-builder.spec create mode 100644 python-ansible-builder.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..1bd86b8 --- /dev/null +++ b/_service @@ -0,0 +1,4 @@ + + + + diff --git a/ansible-builder-1.2.0.tar.gz b/ansible-builder-1.2.0.tar.gz new file mode 100644 index 0000000..680edb5 --- /dev/null +++ b/ansible-builder-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dabe4b65515ebe301bd40bd1c14da4d1739eae75accfd40aaa74c15b8f336c8c +size 74859 diff --git a/ansible-builder.changes b/ansible-builder.changes new file mode 100644 index 0000000..69d7bda --- /dev/null +++ b/ansible-builder.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Mar 16 14:06:46 UTC 2023 - Johannes Kastl + +- new package ansible-builder for building Ansible execution environments diff --git a/ansible-builder.spec b/ansible-builder.spec new file mode 100644 index 0000000..99e9859 --- /dev/null +++ b/ansible-builder.spec @@ -0,0 +1,81 @@ +# +# spec file for package ansible-builder +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%if 0%{?suse_version} < 1550 +# Leap15, SLES15 +%define pythons python310 +%define ansible_python python310 +%define ansible_python_executable python3.10 +%define ansible_python_sitelib %python310_sitelib +%else +# Tumbleweed +%define pythons python3 +%define ansible_python python3 +%define ansible_python_executable python3 +%define ansible_python_sitelib %python3_sitelib +%endif + +Name: ansible-builder +Version: 1.2.0 +Release: 0 +Summary: An Ansible execution environment builder +License: MIT +URL: https://github.com/ansible/ansible-builder +Source: https://files.pythonhosted.org/packages/source/a/ansible-builder/ansible-builder-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python-rpm-macros +BuildRequires: %{ansible_python}-base >= 3.8 +BuildRequires: %{ansible_python}-setuptools +BuildRequires: %{ansible_python}-pbr +# SECTION test requirements +BuildRequires: %{ansible_python}-bindep +BuildRequires: %{ansible_python}-PyYAML +BuildRequires: %{ansible_python}-requirements-parser +# /SECTION +BuildRequires: fdupes +Requires: python3-bindep +Requires: python3-PyYAML +Requires: python3-requirements-parser + +%description +Ansible Builder is a tool that automates the process of +building execution environments using the schemas and +tooling defined in various Ansible Collections and by +the user. + +See the readthedocs page for ansible-builder at: +https://ansible-builder.readthedocs.io/en/latest/ + +%prep +%setup -q -n ansible-builder-%{version} + +%build +%python_build + +%install +%python_install +%fdupes %{buildroot}%{ansible_python_sitelib} + +%files +%doc README.md +%license LICENSE.md +%{_bindir}/ansible-builder +%{ansible_python_sitelib}/ansible_builder +%{ansible_python_sitelib}/ansible_builder-*-info + +%changelog diff --git a/python-ansible-builder.spec b/python-ansible-builder.spec new file mode 100644 index 0000000..839bca9 --- /dev/null +++ b/python-ansible-builder.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-ansible-builder +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-ansible-builder +Version: 1.2.0 +Release: 0 +Summary: "A tool for building Ansible Execution Environments" +License: FIXME-UNKNOWN +URL: https://ansible-builder.readthedocs.io +Source: https://files.pythonhosted.org/packages/source/a/ansible-builder/ansible-builder-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pbr} +# SECTION test requirements +BuildRequires: %{python_module bindep} +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module requirements-parser} +# /SECTION +BuildRequires: fdupes +Requires: python-bindep +Requires: python-PyYAML +Requires: python-requirements-parser +BuildArch: noarch +%python_subpackages + +%description +"A tool for building Ansible Execution Environments" + +%prep +%setup -q -n ansible-builder-%{version} + +%build +%python_build + +%install +%python_install +%python_clone -a %{buildroot}%{_bindir}/ansible-builder +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +CHOOSE: %pytest OR %pyunittest -v OR CUSTOM + +%post +%python_install_alternative ansible-builder + +%postun +%python_uninstall_alternative ansible-builder + +%files %{python_files} +%doc AUTHORS ChangeLog README.md +%license LICENSE.md +%python_alternative %{_bindir}/ansible-builder +%{python_sitelib}/* + +%changelog