2013-04-17 15:19:34 +02:00
|
|
|
#
|
|
|
|
# spec file for package ansible
|
|
|
|
#
|
2022-07-22 13:29:41 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2013-04-17 15:19:34 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-05-25 00:49:38 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-03-21 00:26:35 +01:00
|
|
|
#
|
2013-04-17 15:19:34 +02:00
|
|
|
|
2022-12-02 08:21:29 +01:00
|
|
|
%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
|
2022-11-25 09:04:25 +01:00
|
|
|
|
2020-05-26 23:14:44 +02:00
|
|
|
Name: ansible
|
2023-02-06 18:32:27 +01:00
|
|
|
Version: 7.2.0
|
2020-05-26 23:14:44 +02:00
|
|
|
Release: 0
|
2022-07-22 13:29:41 +02:00
|
|
|
Summary: Radically simple IT automation
|
|
|
|
License: GPL-3.0+
|
2020-05-26 23:14:44 +02:00
|
|
|
URL: https://ansible.com/
|
2022-07-22 13:29:41 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/a/ansible/ansible-%{version}.tar.gz
|
2020-05-26 23:14:44 +02:00
|
|
|
Source99: ansible-rpmlintrc
|
2022-11-25 09:04:25 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-12-02 08:21:29 +01:00
|
|
|
BuildRequires: %{ansible_python}-base >= 3.9
|
|
|
|
BuildRequires: %{ansible_python}-setuptools
|
2022-07-22 13:29:41 +02:00
|
|
|
BuildRequires: fdupes
|
2019-11-19 19:05:31 +01:00
|
|
|
|
2022-07-22 13:29:41 +02:00
|
|
|
# required to fix the azure collection line endings
|
|
|
|
BuildRequires: dos2unix
|
- sync with upstream spec file (especially for RHEL & Fedora builds)
- ran spec-cleaner
- remove old SUSE targets (SLE-11, Leap 42.3 and below)
This simplifies the spec file and makes building easier
- Additional required packages for building:
+ python-boto3 and python-botocore for Amazon EC2
+ python-jmespath for json queries
+ python-memcached for cloud modules and local caching of JSON
formatted, per host records
+ python-redis for cloud modules and local caching of JSON
formatted, per host records
+ python-requests for many web-based modules (cloud, network,
netapp)
=> as the need for those packages depends on the usage of the
tool, they are just recommended on openSUSE/SUSE machines
- made dependencies for gitlab, vmware and winrm modules configurable,
as most of their dependencies are not (yet) available on current
openSUSE/SUSE distributions
- exclude /usr/bin/pwsh from the automatic dependency generation,
as the Windows Power Shell is not available (yet) on openSUSE/SUSE
- build additional docs and split up ansible-doc package;
moving changelogs, contrib and example directories there
- prepare for building HTML documentation, but disable this per
default for the moment, as not all package dependencies are available
in openSUSE/SUSE (yet)
- package some test scripts with executable permissions
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ansible?expand=0&rev=158
2019-12-29 17:57:33 +01:00
|
|
|
|
2022-07-22 13:29:41 +02:00
|
|
|
# SECTION test requirements
|
2023-02-06 18:32:27 +01:00
|
|
|
BuildRequires: ansible-core >= 2.14.2
|
2022-07-22 13:29:41 +02:00
|
|
|
# /SECTION
|
2019-11-19 19:05:31 +01:00
|
|
|
|
2022-12-02 08:21:29 +01:00
|
|
|
Requires: %{ansible_python}-base >= 3.9
|
2023-02-06 18:32:27 +01:00
|
|
|
Requires: ansible-core >= 2.14.2
|
2022-12-18 22:02:36 +01:00
|
|
|
|
|
|
|
# Do not check any files in collections for requires
|
|
|
|
%global __requires_exclude_from ^%{ansible_python_sitelib}/.*$
|
|
|
|
|
2022-07-22 13:29:41 +02:00
|
|
|
BuildArch: noarch
|
2019-11-19 19:05:31 +01:00
|
|
|
|
2022-07-22 13:29:41 +02:00
|
|
|
%description
|
- sync with upstream spec file (especially for RHEL & Fedora builds)
- ran spec-cleaner
- remove old SUSE targets (SLE-11, Leap 42.3 and below)
This simplifies the spec file and makes building easier
- Additional required packages for building:
+ python-boto3 and python-botocore for Amazon EC2
+ python-jmespath for json queries
+ python-memcached for cloud modules and local caching of JSON
formatted, per host records
+ python-redis for cloud modules and local caching of JSON
formatted, per host records
+ python-requests for many web-based modules (cloud, network,
netapp)
=> as the need for those packages depends on the usage of the
tool, they are just recommended on openSUSE/SUSE machines
- made dependencies for gitlab, vmware and winrm modules configurable,
as most of their dependencies are not (yet) available on current
openSUSE/SUSE distributions
- exclude /usr/bin/pwsh from the automatic dependency generation,
as the Windows Power Shell is not available (yet) on openSUSE/SUSE
- build additional docs and split up ansible-doc package;
moving changelogs, contrib and example directories there
- prepare for building HTML documentation, but disable this per
default for the moment, as not all package dependencies are available
in openSUSE/SUSE (yet)
- package some test scripts with executable permissions
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ansible?expand=0&rev=158
2019-12-29 17:57:33 +01:00
|
|
|
Ansible is a radically simple model-driven configuration management, multi-node
|
|
|
|
deployment, and remote task execution system. Ansible works over SSH and does
|
|
|
|
not require any software or daemons to be installed on remote nodes. Extension
|
|
|
|
modules can be written in any language and are transferred to managed machines
|
|
|
|
automatically.
|
|
|
|
|
2013-04-17 15:19:34 +02:00
|
|
|
%prep
|
2017-08-09 15:56:10 +02:00
|
|
|
%setup -q -n ansible-%{version}
|
2020-05-26 23:14:44 +02:00
|
|
|
|
- sync with upstream spec file (especially for RHEL & Fedora builds)
- ran spec-cleaner
- remove old SUSE targets (SLE-11, Leap 42.3 and below)
This simplifies the spec file and makes building easier
- Additional required packages for building:
+ python-boto3 and python-botocore for Amazon EC2
+ python-jmespath for json queries
+ python-memcached for cloud modules and local caching of JSON
formatted, per host records
+ python-redis for cloud modules and local caching of JSON
formatted, per host records
+ python-requests for many web-based modules (cloud, network,
netapp)
=> as the need for those packages depends on the usage of the
tool, they are just recommended on openSUSE/SUSE machines
- made dependencies for gitlab, vmware and winrm modules configurable,
as most of their dependencies are not (yet) available on current
openSUSE/SUSE distributions
- exclude /usr/bin/pwsh from the automatic dependency generation,
as the Windows Power Shell is not available (yet) on openSUSE/SUSE
- build additional docs and split up ansible-doc package;
moving changelogs, contrib and example directories there
- prepare for building HTML documentation, but disable this per
default for the moment, as not all package dependencies are available
in openSUSE/SUSE (yet)
- package some test scripts with executable permissions
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ansible?expand=0&rev=158
2019-12-29 17:57:33 +01:00
|
|
|
for file in .git_keep .travis.yml ; do
|
|
|
|
find . -name "$file" -delete
|
|
|
|
done
|
2022-07-22 13:29:41 +02:00
|
|
|
|
|
|
|
# fix for wrong shebang:
|
2022-12-02 08:21:29 +01:00
|
|
|
sed -i 's|/Users/kbreit/Documents/Programming/ansible_collections/cisco/meraki/venv/bin/python|%{_bindir}/%{ansible_python_executable}|g' ansible_collections/cisco/meraki/scripts/sublime-build/build.py.generic
|
2013-04-17 15:19:34 +02:00
|
|
|
|
2022-07-22 13:29:41 +02:00
|
|
|
# remove .keep and .gitignore files
|
|
|
|
find ./ansible_collections/ -iname .gitignore -delete
|
|
|
|
find ./ansible_collections/ -iname .keep -delete
|
2019-11-21 17:28:08 +01:00
|
|
|
|
2022-07-22 13:29:41 +02:00
|
|
|
# azure collection has wrong file endings
|
|
|
|
find ./ansible_collections/azure -type f -exec dos2unix {} \;
|
- sync with upstream spec file (especially for RHEL & Fedora builds)
- ran spec-cleaner
- remove old SUSE targets (SLE-11, Leap 42.3 and below)
This simplifies the spec file and makes building easier
- Additional required packages for building:
+ python-boto3 and python-botocore for Amazon EC2
+ python-jmespath for json queries
+ python-memcached for cloud modules and local caching of JSON
formatted, per host records
+ python-redis for cloud modules and local caching of JSON
formatted, per host records
+ python-requests for many web-based modules (cloud, network,
netapp)
=> as the need for those packages depends on the usage of the
tool, they are just recommended on openSUSE/SUSE machines
- made dependencies for gitlab, vmware and winrm modules configurable,
as most of their dependencies are not (yet) available on current
openSUSE/SUSE distributions
- exclude /usr/bin/pwsh from the automatic dependency generation,
as the Windows Power Shell is not available (yet) on openSUSE/SUSE
- build additional docs and split up ansible-doc package;
moving changelogs, contrib and example directories there
- prepare for building HTML documentation, but disable this per
default for the moment, as not all package dependencies are available
in openSUSE/SUSE (yet)
- package some test scripts with executable permissions
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ansible?expand=0&rev=158
2019-12-29 17:57:33 +01:00
|
|
|
|
2022-07-22 13:29:41 +02:00
|
|
|
%build
|
2022-11-25 09:04:25 +01:00
|
|
|
%python_build
|
2019-11-21 17:28:08 +01:00
|
|
|
|
2022-07-22 13:29:41 +02:00
|
|
|
%install
|
2022-11-25 09:04:25 +01:00
|
|
|
%python_install
|
2022-12-02 08:21:29 +01:00
|
|
|
%fdupes %{buildroot}/%{ansible_python_sitelib}/ansible_collections/
|
2019-11-21 17:28:08 +01:00
|
|
|
|
2013-04-17 15:19:34 +02:00
|
|
|
%files
|
2022-11-25 09:04:25 +01:00
|
|
|
%doc CHANGELOG-v7.rst README.rst
|
2018-06-26 15:58:16 +02:00
|
|
|
%license COPYING
|
2022-07-22 13:29:41 +02:00
|
|
|
%{_bindir}/ansible-community
|
2022-12-02 08:21:29 +01:00
|
|
|
%{ansible_python_sitelib}/
|
2019-11-19 19:05:31 +01:00
|
|
|
|
2013-04-17 15:19:34 +02:00
|
|
|
%changelog
|