2013-04-17 15:19:34 +02:00
|
|
|
#
|
|
|
|
# spec file for package ansible
|
|
|
|
#
|
|
|
|
# Copyright 2013 by Lars Vogdt
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: ansible
|
2013-06-30 22:24:00 +02:00
|
|
|
Version: 1.2
|
2013-04-17 15:19:34 +02:00
|
|
|
Release: 1
|
|
|
|
Summary: SSH-based configuration management, deployment, and task execution system
|
2013-04-18 10:00:25 +02:00
|
|
|
License: GPL-3.0+
|
2013-04-17 15:19:34 +02:00
|
|
|
Url: http://ansible.github.com
|
|
|
|
Group: System/Management
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2013-04-18 10:00:25 +02:00
|
|
|
Source1: %{name}-rpmlintrc
|
2013-06-30 22:24:00 +02:00
|
|
|
# Downloaded via 'wget https://raw.github.com/ansible/ansible/devel/CHANGELOG.md'
|
|
|
|
Source2: CHANGELOG.md
|
2013-04-17 15:19:34 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-04-18 10:00:25 +02:00
|
|
|
#
|
|
|
|
# (open)SUSE
|
|
|
|
#
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: python-devel
|
2013-04-17 15:19:34 +02:00
|
|
|
Requires: python-PyYAML
|
|
|
|
Requires: python-jinja2
|
2013-04-18 10:00:25 +02:00
|
|
|
%if 0%{?suse_version} > 01020
|
|
|
|
BuildRequires: fdupes
|
2013-04-17 15:19:34 +02:00
|
|
|
Recommends: python-paramiko
|
2013-04-18 10:00:25 +02:00
|
|
|
%else
|
|
|
|
Requires: python-paramiko
|
|
|
|
%endif
|
2013-04-18 10:49:44 +02:00
|
|
|
%if 0%{?suse_version} <= 1110
|
2013-04-17 15:19:34 +02:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2013-04-18 10:00:25 +02:00
|
|
|
%endif
|
|
|
|
#
|
|
|
|
# RHEL
|
|
|
|
#
|
2013-04-18 10:57:34 +02:00
|
|
|
%if ( 0%{?rhel} && 0%{?rhel} <= 5 ) || ( 0%{?rhel_version} && 0%{?rhel_version} <= 505 )
|
2013-04-18 10:20:25 +02:00
|
|
|
#BuildRequires: python26-devel
|
|
|
|
BuildRequires: python2-devel
|
2013-04-18 10:00:25 +02:00
|
|
|
Requires: python26-PyYAML
|
|
|
|
Requires: python26-paramiko
|
|
|
|
Requires: python26-jinja2
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%endif
|
2013-04-18 10:11:26 +02:00
|
|
|
%if 0%{?rhel} > 5 || 0%{?rhel_version} > 505
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
Requires: PyYAML
|
|
|
|
Requires: python-paramiko
|
|
|
|
Requires: python-jinja2
|
|
|
|
%endif
|
2013-04-18 10:00:25 +02:00
|
|
|
#
|
|
|
|
# Fedora
|
|
|
|
#
|
|
|
|
%if 0%{?fedora}
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
Requires: PyYAML
|
|
|
|
Requires: python-paramiko
|
|
|
|
Requires: python-jinja2
|
|
|
|
%endif
|
|
|
|
|
2013-04-17 15:19:34 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
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.
|
|
|
|
|
|
|
|
%package fireball
|
|
|
|
Summary: Ansible fireball transport support
|
|
|
|
Group: System/Management
|
|
|
|
Requires: %{name} = %{version}
|
2013-04-18 10:00:25 +02:00
|
|
|
#
|
|
|
|
# RHEL
|
|
|
|
#
|
2013-04-18 10:57:34 +02:00
|
|
|
%if ( 0%{?rhel} && 0%{?rhel} <= 5 ) || ( 0%{?rhel_version} && 0%{?rhel_version} <= 505 )
|
2013-04-18 10:00:25 +02:00
|
|
|
Requires: python26-keyczar
|
|
|
|
Requires: python26-zmq
|
|
|
|
#
|
|
|
|
# (open)SUSE | Fedora
|
|
|
|
#
|
|
|
|
%else
|
|
|
|
Requires: python-keyczar
|
2013-04-25 10:01:37 +02:00
|
|
|
%endif
|
|
|
|
# (open)SUSE
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
Requires: python-pyzmq
|
|
|
|
%else
|
2013-04-18 10:00:25 +02:00
|
|
|
Requires: python-zmq
|
|
|
|
%endif
|
|
|
|
|
2013-04-17 15:19:34 +02:00
|
|
|
%description fireball
|
|
|
|
Ansible can optionally use a 0MQ based transport mechanism, which is
|
|
|
|
considerably faster than the standard ssh mechanism when there are
|
|
|
|
multiple actions, but requires additional supporting packages.
|
|
|
|
|
|
|
|
%package node-fireball
|
|
|
|
Summary: Ansible fireball transport - node end support
|
|
|
|
Group: System/Management
|
2013-04-18 10:00:25 +02:00
|
|
|
#
|
|
|
|
# RHEL
|
|
|
|
#
|
|
|
|
%if ( 0%{?rhel} && 0%{?rhel} <= 5 ) || ( 0%{?rhel_version} && 0%{?rhel_version} <= 505 )
|
|
|
|
Requires: python26-keyczar
|
|
|
|
Requires: python26-zmq
|
|
|
|
#
|
|
|
|
# (open)SUSE | Fedora
|
|
|
|
#
|
|
|
|
%else
|
2013-04-17 15:19:34 +02:00
|
|
|
Requires: python-keyczar
|
|
|
|
Requires: python-pyzmq
|
2013-04-18 10:00:25 +02:00
|
|
|
%endif
|
2013-04-17 15:19:34 +02:00
|
|
|
|
|
|
|
%description node-fireball
|
|
|
|
Ansible can optionally use a 0MQ based transport mechanism, which has
|
|
|
|
additional requirements for nodes to use. This package includes those
|
|
|
|
requirements.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2013-06-30 22:24:00 +02:00
|
|
|
install -m644 %{SOURCE2} .
|
2013-04-17 15:19:34 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__python} setup.py install -O1 --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,man3}/
|
|
|
|
cp -v docs/man/man1/*.1 %{buildroot}%{_mandir}/man1/
|
|
|
|
cp -v docs/man/man3/*.3 %{buildroot}%{_mandir}/man3/
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/ansible
|
2013-06-30 22:24:00 +02:00
|
|
|
cp -vr library/* %{buildroot}%{_datadir}/ansible/
|
2013-04-17 15:19:34 +02:00
|
|
|
%if 0%{?suse_version} > 01020
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2013-06-30 22:24:00 +02:00
|
|
|
%doc README.md PKG-INFO COPYING CHANGELOG.md
|
2013-04-17 15:19:34 +02:00
|
|
|
%doc examples/playbooks
|
|
|
|
%doc %{_mandir}/man1/ansible*
|
|
|
|
%doc %{_mandir}/man3/ansible*
|
|
|
|
%dir %{_datadir}/ansible
|
2013-04-18 10:00:25 +02:00
|
|
|
%dir %{_sysconfdir}/%{name}
|
2013-04-17 15:19:34 +02:00
|
|
|
%{python_sitelib}/ansible*
|
|
|
|
%{_bindir}/ansible*
|
|
|
|
%config(noreplace) %{_sysconfdir}/ansible
|
2013-04-18 10:00:25 +02:00
|
|
|
%{_datadir}/ansible/*
|
2013-06-30 22:24:00 +02:00
|
|
|
%exclude %{_datadir}/ansible/utilities/fireball
|
2013-04-17 15:19:34 +02:00
|
|
|
%exclude %{_mandir}/man3/ansible.fireball.*
|
|
|
|
|
|
|
|
%files fireball
|
|
|
|
%defattr(-,root,root,-)
|
2013-06-30 22:24:00 +02:00
|
|
|
%{_datadir}/ansible/utilities/fireball
|
2013-04-17 15:19:34 +02:00
|
|
|
%doc %{_mandir}/man3/ansible.fireball.*
|
|
|
|
|
|
|
|
%files node-fireball
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.md PKG-INFO COPYING
|
|
|
|
|
|
|
|
%changelog
|