diff options
author | Cristian Ciupitu <cristian.ciupitu@yahoo.com> | 2013-04-27 20:33:17 +0200 |
---|---|---|
committer | Cristian Ciupitu <cristian.ciupitu@yahoo.com> | 2013-04-27 20:53:24 +0200 |
commit | aec26bb72d82a6fb233a430320bac4638001d7aa (patch) | |
tree | d1caed6eab1827c2907be235a7f0b1f0fd46e684 /packaging | |
parent | Merge pull request #2795 from Tinche/lineinfile-doc (diff) | |
download | ansible-aec26bb72d82a6fb233a430320bac4638001d7aa.tar.xz ansible-aec26bb72d82a6fb233a430320bac4638001d7aa.zip |
Revert "Updated ansible.spec should now work for CentOS 5 and CentOS 6"
make rpm did not work on Fedora 18
This reverts commit ea39454f98f43d5a19d07b4d0110ca0c6fc518be.
Conflicts:
packaging/rpm/ansible.spec
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/rpm/ansible.spec | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/packaging/rpm/ansible.spec b/packaging/rpm/ansible.spec index 425848de13..8db0f18c94 100644 --- a/packaging/rpm/ansible.spec +++ b/packaging/rpm/ansible.spec @@ -1,5 +1,4 @@ -%if 0%{?rhel} <= 5 -%define __python /usr/bin/python26 +%if 0%{?rhel} && 0%{?rhel} <= 5 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %endif @@ -7,7 +6,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Name: ansible Release: 1%{?dist} Summary: SSH-based configuration management, deployment, and task execution system -Version: 1.2rc +Version: 1.1 Group: Development/Libraries License: GPLv3 @@ -15,7 +14,7 @@ Source0: http://ansible.cc/releases/%{name}-%{version}.tar.bz2 Url: http://ansible.github.com BuildArch: noarch -%if 0%{?rhel} <= 5 +%if 0%{?rhel} && 0%{?rhel} <= 5 BuildRequires: python26-devel Requires: python26-PyYAML @@ -37,13 +36,17 @@ 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. -%if 0%{?rhel} >= 6 %package fireball Summary: Ansible fireball transport support Group: Development/Libraries Requires: %{name} = %{version}-%{release} +%if 0%{?rhel} && 0%{?rhel} <= 5 +Requires: python26-keyczar +Requires: python26-zmq +%else Requires: python-keyczar Requires: python-zmq +%endif %description fireball @@ -54,15 +57,19 @@ multiple actions, but requires additional supporting packages. %package node-fireball Summary: Ansible fireball transport - node end support Group: Development/Libraries +%if 0%{?rhel} && 0%{?rhel} <= 5 +Requires: python26-keyczar +Requires: python26-zmq +%else Requires: python-keyczar Requires: python-zmq +%endif %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. -%endif %prep %setup -q @@ -77,6 +84,7 @@ cp examples/hosts $RPM_BUILD_ROOT/etc/ansible/ cp examples/ansible.cfg $RPM_BUILD_ROOT/etc/ansible/ mkdir -p $RPM_BUILD_ROOT/%{_mandir}/{man1,man3}/ cp -v docs/man/man1/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1/ +cp -v docs/man/man3/*.3 $RPM_BUILD_ROOT/%{_mandir}/man3/ mkdir -p $RPM_BUILD_ROOT/%{_datadir}/ansible cp -v library/* $RPM_BUILD_ROOT/%{_datadir}/ansible/ @@ -92,21 +100,19 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/ansible/f[a-hj-z]* %{_datadir}/ansible/file %config(noreplace) %{_sysconfdir}/ansible -%doc README.md COPYING +%doc README.md PKG-INFO COPYING %doc %{_mandir}/man1/ansible* +%doc %{_mandir}/man3/ansible.[a-eg-z]* +%doc %{_mandir}/man3/ansible.f[a-hj-z]* +%doc %{_mandir}/man3/ansible.file* %doc examples/playbooks -%if 0%{?rhel} <= 5 -%exclude %{_datadir}/ansible/fireball -%endif - -%if 0%{?rhel} >= 6 %files fireball %{_datadir}/ansible/fireball +%doc %{_mandir}/man3/ansible.fireball.* %files node-fireball -%doc README.md COPYING -%endif +%doc README.md PKG-INFO COPYING %changelog |