Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
ea39454f
Commit
ea39454f
authored
Apr 12, 2013
by
Ivan Lezhnjov IV
Committed by
Michael DeHaan
Apr 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated ansible.spec should now work for CentOS 5 and CentOS 6
Signed-off-by: Ivan Lezhnjov IV <ivan.lezhnjov.iv@gmail.com>
parent
76723f6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
21 deletions
+15
-21
packaging/rpm/ansible.spec
+15
-21
No files found.
packaging/rpm/ansible.spec
View file @
ea39454f
%if 0%{?rhel} && 0%{?rhel} <= 5
%if 0%{?rhel} <= 5
%define __python /usr/bin/python26
%{!?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())")}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%endif
%endif
...
@@ -6,15 +7,15 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
...
@@ -6,15 +7,15 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Name: ansible
Name: ansible
Release: 1%{?dist}
Release: 1%{?dist}
Summary: SSH-based configuration management, deployment, and task execution system
Summary: SSH-based configuration management, deployment, and task execution system
Version: 1.
1
Version: 1.
2rc
Group: Development/Libraries
Group: Development/Libraries
License: GPLv3
License: GPLv3
Source0: https://github.com/downloads/ansible/ansible/%{name}-%{version}.tar.
gz
Source0: https://github.com/downloads/ansible/ansible/%{name}-%{version}.tar.
bz2
Url: http://ansible.github.com
Url: http://ansible.github.com
BuildArch: noarch
BuildArch: noarch
%if 0%{?rhel}
&& 0%{?rhel}
<= 5
%if 0%{?rhel} <= 5
BuildRequires: python26-devel
BuildRequires: python26-devel
Requires: python26-PyYAML
Requires: python26-PyYAML
...
@@ -36,17 +37,13 @@ over SSH and does not require any software or daemons to be installed
...
@@ -36,17 +37,13 @@ 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
on remote nodes. Extension modules can be written in any language and
are transferred to managed machines automatically.
are transferred to managed machines automatically.
%if 0%{?rhel} >= 6
%package fireball
%package fireball
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} && 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
...
@@ -57,19 +54,15 @@ multiple actions, but requires additional supporting packages.
...
@@ -57,19 +54,15 @@ 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} && 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
Ansible can optionally use a 0MQ based transport mechanism, which has
Ansible can optionally use a 0MQ based transport mechanism, which has
additional requirements for nodes to use. This package includes those
additional requirements for nodes to use. This package includes those
requirements.
requirements.
%endif
%prep
%prep
%setup -q
%setup -q
...
@@ -84,7 +77,6 @@ cp examples/hosts $RPM_BUILD_ROOT/etc/ansible/
...
@@ -84,7 +77,6 @@ cp examples/hosts $RPM_BUILD_ROOT/etc/ansible/
cp examples/ansible.cfg $RPM_BUILD_ROOT/etc/ansible/
cp examples/ansible.cfg $RPM_BUILD_ROOT/etc/ansible/
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/{man1,man3}/
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/{man1,man3}/
cp -v docs/man/man1/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
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
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/ansible
cp -v library/* $RPM_BUILD_ROOT/%{_datadir}/ansible/
cp -v library/* $RPM_BUILD_ROOT/%{_datadir}/ansible/
...
@@ -100,19 +92,21 @@ rm -rf $RPM_BUILD_ROOT
...
@@ -100,19 +92,21 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/ansible/f[a-hj-z]*
%{_datadir}/ansible/f[a-hj-z]*
%{_datadir}/ansible/file
%{_datadir}/ansible/file
%config(noreplace) %{_sysconfdir}/ansible
%config(noreplace) %{_sysconfdir}/ansible
%doc README.md
PKG-INFO
COPYING
%doc README.md COPYING
%doc %{_mandir}/man1/ansible*
%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
%doc examples/playbooks
%if 0%{?rhel} <= 5
%exclude %{_datadir}/ansible/fireball
%endif
%if 0%{?rhel} >= 6
%files fireball
%files fireball
%{_datadir}/ansible/fireball
%{_datadir}/ansible/fireball
%doc %{_mandir}/man3/ansible.fireball.*
%files node-fireball
%files node-fireball
%doc README.md PKG-INFO COPYING
%doc README.md COPYING
%endif
%changelog
%changelog
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment