- fix build on other distributions than openSUSE
- License in SPDX format - added rpmlintrc OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ansible?expand=0&rev=2
This commit is contained in:
parent
d2f8e5d083
commit
58b250943d
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 18 07:42:43 UTC 2013 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
- fix build on other distributions than openSUSE
|
||||||
|
- License in SPDX format
|
||||||
|
- added rpmlintrc
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 17 11:04:04 UTC 2013 - lars@linux-schulserver.de
|
Wed Apr 17 11:04:04 UTC 2013 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
74
ansible.spec
74
ansible.spec
@ -18,23 +18,53 @@ Name: ansible
|
|||||||
Version: 1.1
|
Version: 1.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: SSH-based configuration management, deployment, and task execution system
|
Summary: SSH-based configuration management, deployment, and task execution system
|
||||||
License: GPLv3+
|
License: GPL-3.0+
|
||||||
Url: http://ansible.github.com
|
Url: http://ansible.github.com
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
BuildRequires: python-devel
|
Source1: %{name}-rpmlintrc
|
||||||
%if 0%{?suse_version} > 01020
|
|
||||||
BuildRequires: fdupes
|
|
||||||
%endif
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
#
|
||||||
|
# (open)SUSE
|
||||||
|
#
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
BuildRequires: python-devel
|
||||||
Requires: python-PyYAML
|
Requires: python-PyYAML
|
||||||
Requires: python-jinja2
|
Requires: python-jinja2
|
||||||
|
%if 0%{?suse_version} > 01020
|
||||||
|
BuildRequires: fdupes
|
||||||
Recommends: python-paramiko
|
Recommends: python-paramiko
|
||||||
|
%else
|
||||||
|
Requires: python-paramiko
|
||||||
|
%endif
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
%else
|
%else
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
#
|
||||||
|
# RHEL
|
||||||
|
#
|
||||||
|
%if ( 0%{?rhel} && 0%{?rhel} <= 5 ) || ( 0%{?rhel_version} && 0%{?rhel_version} <= 505 )
|
||||||
|
Release: 1%{?dist}
|
||||||
|
BuildRequires: python26-devel
|
||||||
|
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
|
||||||
|
#
|
||||||
|
# Fedora
|
||||||
|
#
|
||||||
|
%if 0%{?fedora}
|
||||||
|
Release: 1%{?dist}
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
Requires: PyYAML
|
||||||
|
Requires: python-paramiko
|
||||||
|
Requires: python-jinja2
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Ansible is a radically simple model-driven configuration management,
|
Ansible is a radically simple model-driven configuration management,
|
||||||
@ -47,8 +77,20 @@ are transferred to managed machines automatically.
|
|||||||
Summary: Ansible fireball transport support
|
Summary: Ansible fireball transport support
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Requires: python-keyczar
|
#
|
||||||
Requires: python-pyzmq
|
# RHEL
|
||||||
|
#
|
||||||
|
%if ( 0%{?rhel} && 0%{?rhel} <= 5 ) || ( 0%{?rhel_version} && 0%{?rhel_version} <= 505 )
|
||||||
|
Requires: python26-keyczar
|
||||||
|
Requires: python26-zmq
|
||||||
|
#
|
||||||
|
# (open)SUSE | Fedora
|
||||||
|
#
|
||||||
|
%else
|
||||||
|
Requires: python-keyczar
|
||||||
|
Requires: python-zmq
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%description fireball
|
%description fireball
|
||||||
Ansible can optionally use a 0MQ based transport mechanism, which is
|
Ansible can optionally use a 0MQ based transport mechanism, which is
|
||||||
@ -58,8 +100,19 @@ multiple actions, but requires additional supporting packages.
|
|||||||
%package node-fireball
|
%package node-fireball
|
||||||
Summary: Ansible fireball transport - node end support
|
Summary: Ansible fireball transport - node end support
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
|
#
|
||||||
|
# RHEL
|
||||||
|
#
|
||||||
|
%if ( 0%{?rhel} && 0%{?rhel} <= 5 ) || ( 0%{?rhel_version} && 0%{?rhel_version} <= 505 )
|
||||||
|
Requires: python26-keyczar
|
||||||
|
Requires: python26-zmq
|
||||||
|
#
|
||||||
|
# (open)SUSE | Fedora
|
||||||
|
#
|
||||||
|
%else
|
||||||
Requires: python-keyczar
|
Requires: python-keyczar
|
||||||
Requires: python-pyzmq
|
Requires: python-pyzmq
|
||||||
|
%endif
|
||||||
|
|
||||||
%description node-fireball
|
%description node-fireball
|
||||||
Ansible can optionally use a 0MQ based transport mechanism, which has
|
Ansible can optionally use a 0MQ based transport mechanism, which has
|
||||||
@ -93,16 +146,17 @@ cp -v library/* %{buildroot}%{_datadir}/ansible/
|
|||||||
%doc %{_mandir}/man1/ansible*
|
%doc %{_mandir}/man1/ansible*
|
||||||
%doc %{_mandir}/man3/ansible*
|
%doc %{_mandir}/man3/ansible*
|
||||||
%dir %{_datadir}/ansible
|
%dir %{_datadir}/ansible
|
||||||
|
%dir %{_sysconfdir}/%{name}
|
||||||
%{python_sitelib}/ansible*
|
%{python_sitelib}/ansible*
|
||||||
%{_bindir}/ansible*
|
%{_bindir}/ansible*
|
||||||
%attr(0755,root,root) %{_datadir}/ansible/*
|
|
||||||
%exclude %{_datadir}/ansible/fireball
|
|
||||||
%config(noreplace) %{_sysconfdir}/ansible
|
%config(noreplace) %{_sysconfdir}/ansible
|
||||||
|
%{_datadir}/ansible/*
|
||||||
|
%exclude %{_datadir}/ansible/fireball
|
||||||
%exclude %{_mandir}/man3/ansible.fireball.*
|
%exclude %{_mandir}/man3/ansible.fireball.*
|
||||||
|
|
||||||
%files fireball
|
%files fireball
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%attr(0755,root,root) %{_datadir}/ansible/fireball
|
%{_datadir}/ansible/fireball
|
||||||
%doc %{_mandir}/man3/ansible.fireball.*
|
%doc %{_mandir}/man3/ansible.fireball.*
|
||||||
|
|
||||||
%files node-fireball
|
%files node-fireball
|
||||||
|
Loading…
Reference in New Issue
Block a user