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
This commit is contained in:
commit
7c4b53c50b
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
4
_service
Normal file
4
_service
Normal file
@ -0,0 +1,4 @@
|
||||
<services>
|
||||
<service name="download_files" mode="disabled">
|
||||
</service>
|
||||
</services>
|
3
ansible-builder-1.2.0.tar.gz
Normal file
3
ansible-builder-1.2.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dabe4b65515ebe301bd40bd1c14da4d1739eae75accfd40aaa74c15b8f336c8c
|
||||
size 74859
|
4
ansible-builder.changes
Normal file
4
ansible-builder.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 16 14:06:46 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
|
||||
|
||||
- new package ansible-builder for building Ansible execution environments
|
81
ansible-builder.spec
Normal file
81
ansible-builder.spec
Normal file
@ -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
|
71
python-ansible-builder.spec
Normal file
71
python-ansible-builder.spec
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user