mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Teach 'make rpm' to build on RHEL5/SL5 etc...
This commit is contained in:
1
Makefile
1
Makefile
@@ -154,6 +154,7 @@ rpm: rpmcommon
|
|||||||
--define "_specdir $(RPMSPECDIR)" \
|
--define "_specdir $(RPMSPECDIR)" \
|
||||||
--define "_sourcedir %{_topdir}" \
|
--define "_sourcedir %{_topdir}" \
|
||||||
--define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
|
--define "_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
|
||||||
|
--define "__python `which $(PYTHON)`" \
|
||||||
-ba rpm-build/$(NAME).spec
|
-ba rpm-build/$(NAME).spec
|
||||||
@rm -f rpm-build/$(NAME).spec
|
@rm -f rpm-build/$(NAME).spec
|
||||||
@echo "#############################################"
|
@echo "#############################################"
|
||||||
|
|||||||
@@ -14,11 +14,19 @@ Source0: https://github.com/downloads/ansible/ansible/%{name}-%{version}.tar.gz
|
|||||||
Url: http://ansible.github.com
|
Url: http://ansible.github.com
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if 0%{?rhel} <= 5
|
||||||
|
BuildRequires: python26-devel
|
||||||
|
|
||||||
|
Requires: python26-PyYAML
|
||||||
|
Requires: python26-paramiko
|
||||||
|
Requires: python26-jinja2
|
||||||
|
%else
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
|
|
||||||
Requires: PyYAML
|
Requires: PyYAML
|
||||||
Requires: python-paramiko
|
Requires: python-paramiko
|
||||||
Requires: python-jinja2
|
Requires: python-jinja2
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
@@ -32,8 +40,13 @@ are transferred to managed machines automatically.
|
|||||||
Summary: Ansible fireball transport support
|
Summary: Ansible fireball transport support
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%if 0%{?rhel} <= 5
|
||||||
|
Requires: python26-keyczar
|
||||||
|
Requires: python26-zmq
|
||||||
|
%else
|
||||||
Requires: python-keyczar
|
Requires: python-keyczar
|
||||||
Requires: python-zmq
|
Requires: python-zmq
|
||||||
|
%endif
|
||||||
|
|
||||||
%description fireball
|
%description fireball
|
||||||
|
|
||||||
@@ -44,8 +57,13 @@ 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: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
%if 0%{?rhel} <= 5
|
||||||
|
Requires: python26-keyczar
|
||||||
|
Requires: python26-zmq
|
||||||
|
%else
|
||||||
Requires: python-keyczar
|
Requires: python-keyczar
|
||||||
Requires: python-zmq
|
Requires: python-zmq
|
||||||
|
%endif
|
||||||
|
|
||||||
%description node-fireball
|
%description node-fireball
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user