42a5731dce
update to version v2.4.2.0: * lock azure containerservice to below 2.0.0 * ovirt_host_networks: Fix label assignment * Fix vault --ask-vault-pass with no tty (#31493) * cherry-pick changes of azure_rm_common from devel to 2.4 (#32607) * Fixes #31090. In network parse_cli filter plugin, this change moves the creation of a (#31092) (#32458) * Use an abspath for network inventory ssh key path. * Remove toLower on source (#31983) * Add k8s_common.py logging fixes to the changelog * inserts enable cmd hash with auth_pass used (#32107) * Fix exception upon display.warn() (#31876) * ios_system: Fix typo in unit test (#32284) * yum: use the C locale when screen scraping (#32203) * Use region derived from get_aws_connection_info() in dynamodb_table to fix tagging bug (#32557) * fix item var in delegation (#32986) * Add changelog entry for elb_application_lb fix * Add a validate example to blockinfile. (#32088) * Correct formatting --arguments (#31808) * Add changelog for URI/get_url fix * [cloud] Bugfix for aws_s3 empty directory creation (#32198) * Fix junos integration test fixes as per connection refactor (#33050) (#33055) * Update win_copy for #32677 (#32682) * ios_interface testfix (#32381) * Add proper check mode support to the script module (#31852) * Add galaxy --force fix to changelog * Fix non-ascii errors in config manager * Add python3 urllib fixes to changelog * Add changelog entry for the stdin py3 fix * Update version info for the 2.4.2 release * Add max_fail_percentage fix to changelog OBS-URL: https://build.opensuse.org/request/show/546595 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ansible?expand=0&rev=96
160 lines
4.7 KiB
RPMSpec
160 lines
4.7 KiB
RPMSpec
#
|
|
# spec file for package ansible
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
# Copyright 2013 by Lars Vogdt
|
|
# Copyright 2014 by Boris Manojlovic
|
|
#
|
|
# 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 || 0%{?rhel} == 5
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
%else
|
|
BuildArch: noarch
|
|
%endif
|
|
Name: ansible
|
|
Version: 2.4.2.0
|
|
Release: 0
|
|
Summary: Software automation engine
|
|
License: GPL-3.0
|
|
Group: Development/Languages/Python
|
|
Url: http://ansible.com/
|
|
Source: https://releases.ansible.com/ansible/ansible-%{version}.tar.gz
|
|
Source99: ansible-rpmlintrc
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
# SuSE/openSuSE
|
|
%if 0%{?suse_version}
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-setuptools
|
|
Recommends: python-dnspython
|
|
Recommends: python-dopy
|
|
Recommends: python-pywinrm
|
|
Recommends: sshpass
|
|
Recommends: python-httplib2
|
|
Recommends: python-keyczar
|
|
Recommends: python-six
|
|
Requires: python-setuptools
|
|
%if 0%{?suse_version} >= 01130
|
|
BuildRequires: python-Jinja2
|
|
BuildRequires: python-PyYAML
|
|
BuildRequires: python-paramiko
|
|
BuildRequires: python-pycrypto >= 2.6
|
|
Requires: python-Jinja2
|
|
Requires: python-PyYAML
|
|
Requires: python-paramiko
|
|
Requires: python-pycrypto >= 2.6
|
|
%endif
|
|
%endif
|
|
|
|
# RHEL <=5
|
|
%if 0%{?rhel} && 0%{?rhel} <= 5
|
|
BuildRequires: python26-devel
|
|
BuildRequires: python26-setuptools
|
|
Requires: python26-PyYAML
|
|
Requires: python26-httplib2
|
|
Requires: python26-jinja2
|
|
Requires: python26-keyczar
|
|
Requires: python26-paramiko
|
|
Requires: python26-setuptools
|
|
Requires: python26-six
|
|
Requires: sshpass
|
|
%endif
|
|
# RHEL > 5
|
|
%if 0%{?rhel} && 0%{?rhel} >= 5
|
|
BuildRequires: python-setuptools
|
|
BuildRequires: python2-devel
|
|
Requires: PyYAML
|
|
Requires: python-jinja2
|
|
Requires: python-paramiko
|
|
Requires: python-setuptools
|
|
Requires: python-six
|
|
Requires: sshpass
|
|
%endif
|
|
# RHEL == 6
|
|
%if 0%{?rhel} == 6
|
|
Requires: python-crypto
|
|
%endif
|
|
# RHEL >=7
|
|
%if 0%{?rhel} >= 7
|
|
Requires: python2-cryptography
|
|
BuildRequires: perl(Exporter)
|
|
%endif
|
|
%if 0%{?fedora} >= 18
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-setuptools
|
|
Requires: PyYAML
|
|
Requires: python-httplib2
|
|
Requires: python-jinja2
|
|
Requires: python-keyczar
|
|
Requires: python-paramiko
|
|
Requires: python-setuptools
|
|
Requires: python-six
|
|
Requires: sshpass
|
|
%define __python %{__python2}
|
|
%endif
|
|
|
|
%description
|
|
Ansible is an IT automation system. It handles
|
|
configuration-management, application deployment, cloud provisioning, ad-hoc
|
|
task-execution, and multinode orchestration - including trivializing things
|
|
like zero downtime rolling updates with load balancers.
|
|
|
|
%prep
|
|
%setup -q -n ansible-%{version}
|
|
find . -name .git_keep -delete
|
|
find contrib/ -type f -exec chmod 644 {} +
|
|
|
|
%build
|
|
%{__python} setup.py build
|
|
|
|
%install
|
|
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/ansible/
|
|
cp examples/hosts %{buildroot}%{_sysconfdir}/ansible/
|
|
cp examples/ansible.cfg %{buildroot}%{_sysconfdir}/ansible/
|
|
mkdir -p %{buildroot}/%{_mandir}/man1/
|
|
cp -v docs/man/man1/*.1 %{buildroot}/%{_mandir}/man1/
|
|
mkdir -p %{buildroot}/%{_datadir}/ansible
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING *.md contrib examples
|
|
%{_bindir}/ansible
|
|
%{_bindir}/ansible-config
|
|
%{_bindir}/ansible-connection
|
|
%{_bindir}/ansible-console
|
|
%{_bindir}/ansible-doc
|
|
%{_bindir}/ansible-galaxy
|
|
%{_bindir}/ansible-inventory
|
|
%{_bindir}/ansible-playbook
|
|
%{_bindir}/ansible-pull
|
|
%{_bindir}/ansible-vault
|
|
%{python_sitelib}/*
|
|
%{_mandir}/man1/ansible.1*
|
|
%{_mandir}/man1/ansible-config.1*
|
|
%{_mandir}/man1/ansible-console.1*
|
|
%{_mandir}/man1/ansible-doc.1*
|
|
%{_mandir}/man1/ansible-galaxy.1*
|
|
%{_mandir}/man1/ansible-inventory.1*
|
|
%{_mandir}/man1/ansible-playbook.1*
|
|
%{_mandir}/man1/ansible-pull.1*
|
|
%{_mandir}/man1/ansible-vault.1*
|
|
%dir %{_sysconfdir}/ansible
|
|
%config(noreplace) %{_sysconfdir}/ansible/ansible.cfg
|
|
%config(noreplace) %{_sysconfdir}/ansible/hosts
|
|
|
|
%changelog
|