diff --git a/ansible.changes b/ansible.changes index 38243e5..f6b5d84 100644 --- a/ansible.changes +++ b/ansible.changes @@ -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 diff --git a/ansible.spec b/ansible.spec index 16198a5..941097c 100644 --- a/ansible.spec +++ b/ansible.spec @@ -18,23 +18,53 @@ Name: ansible Version: 1.1 Release: 1 Summary: SSH-based configuration management, deployment, and task execution system -License: GPLv3+ +License: GPL-3.0+ Url: http://ansible.github.com Group: System/Management Source0: %{name}-%{version}.tar.bz2 -BuildRequires: python-devel -%if 0%{?suse_version} > 01020 -BuildRequires: fdupes -%endif +Source1: %{name}-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build +# +# (open)SUSE +# +%if 0%{?suse_version} +BuildRequires: python-devel Requires: python-PyYAML Requires: python-jinja2 +%if 0%{?suse_version} > 01020 +BuildRequires: fdupes Recommends: python-paramiko +%else +Requires: python-paramiko +%endif %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()")} %else BuildArch: noarch %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 Ansible is a radically simple model-driven configuration management, @@ -47,8 +77,20 @@ are transferred to managed machines automatically. Summary: Ansible fireball transport support Group: System/Management 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 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 Summary: Ansible fireball transport - node end support 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-pyzmq +%endif %description node-fireball 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}/man3/ansible* %dir %{_datadir}/ansible +%dir %{_sysconfdir}/%{name} %{python_sitelib}/ansible* %{_bindir}/ansible* -%attr(0755,root,root) %{_datadir}/ansible/* -%exclude %{_datadir}/ansible/fireball %config(noreplace) %{_sysconfdir}/ansible +%{_datadir}/ansible/* +%exclude %{_datadir}/ansible/fireball %exclude %{_mandir}/man3/ansible.fireball.* %files fireball %defattr(-,root,root,-) -%attr(0755,root,root) %{_datadir}/ansible/fireball +%{_datadir}/ansible/fireball %doc %{_mandir}/man3/ansible.fireball.* %files node-fireball