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
adca81fa
Commit
adca81fa
authored
Oct 27, 2013
by
Patrick Callahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup for SuSE and openSuSE.
Account for differences in packages names across RHEL/CentOS and SuSE/openSuSE.
parent
f61a4c1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
23 deletions
+44
-23
packaging/rpm/ansible.spec
+44
-23
No files found.
packaging/rpm/ansible.spec
View file @
adca81fa
%define name ansible
%if 0%{?rhel} == 5
%if 0%{?rhel} == 5
%define __python /usr/bin/python26
%define __python /usr/bin/python26
%endif
%endif
%if 0%{?rhel} && 0%{?rhel} <= 5
Name: %{name}
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Version: 1.4
Release: 1%{?dist}
Url: http://www.ansibleworks.com
Summary: SSH-based configuration management, deployment, and orchestration engine
License: GPLv3
Group: Development/Libraries
Source: http://www.ansibleworks.com/releases/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%endif
Name: ansible
Release: 1%{?dist}
Summary: SSH-based configuration management, deployment, and orchestration engine
Version: 1.4
Group: Development/Libraries
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
License: GPLv3
Source0: http://www.ansibleworks.com/releases/%{name}-%{version}.tar.gz
Url: http://www.ansibleworks.com
BuildArch: noarch
BuildArch: noarch
# RHEL <=5
%if 0%{?rhel} && 0%{?rhel} <= 5
%if 0%{?rhel} && 0%{?rhel} <= 5
BuildRequires: python26-devel
BuildRequires: python26-devel
...
@@ -25,7 +26,10 @@ Requires: python26-PyYAML
...
@@ -25,7 +26,10 @@ Requires: python26-PyYAML
Requires: python26-paramiko
Requires: python26-paramiko
Requires: python26-jinja2
Requires: python26-jinja2
Requires: python26-keyczar
Requires: python26-keyczar
%else
%endif
# RHEL > 5
%if 0%{?rhel} && 0%{?rhel} > 5
BuildRequires: python2-devel
BuildRequires: python2-devel
Requires: PyYAML
Requires: PyYAML
...
@@ -33,6 +37,18 @@ Requires: python-paramiko
...
@@ -33,6 +37,18 @@ Requires: python-paramiko
Requires: python-jinja2
Requires: python-jinja2
Requires: python-keyczar
Requires: python-keyczar
%endif
%endif
# SuSE/openSuSE
%if 0%{?suse_version}
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-paramiko
Requires: python-jinja2
Requires: python-keyczar
Requires: python-yaml
%endif
Requires: sshpass
Requires: sshpass
%description
%description
...
@@ -50,18 +66,18 @@ are transferred to managed machines automatically.
...
@@ -50,18 +66,18 @@ are transferred to managed machines automatically.
%{__python} setup.py build
%{__python} setup.py build
%install
%install
%{__python} setup.py install -O1 --
root=$RPM_BUILD_ROOT
%{__python} setup.py install -O1 --
prefix=%{_prefix} --root=%{buildroot}
mkdir -p
$RPM_BUILD_ROOT
/etc/ansible/
mkdir -p
%{buildroot}
/etc/ansible/
cp examples/hosts
$RPM_BUILD_ROOT
/etc/ansible/
cp examples/hosts
%{buildroot}
/etc/ansible/
cp examples/ansible.cfg
$RPM_BUILD_ROOT
/etc/ansible/
cp examples/ansible.cfg
%{buildroot}
/etc/ansible/
mkdir -p
$RPM_BUILD_ROOT
/%{_mandir}/{man1,man3}/
mkdir -p
%{buildroot}
/%{_mandir}/{man1,man3}/
cp -v docs/man/man1/*.1
$RPM_BUILD_ROOT
/%{_mandir}/man1/
cp -v docs/man/man1/*.1
%{buildroot}
/%{_mandir}/man1/
cp -v docs/man/man3/*.3
$RPM_BUILD_ROOT
/%{_mandir}/man3/
cp -v docs/man/man3/*.3
%{buildroot}
/%{_mandir}/man3/
mkdir -p
$RPM_BUILD_ROOT
/%{_datadir}/ansible
mkdir -p
%{buildroot}
/%{_datadir}/ansible
cp -rv library/*
$RPM_BUILD_ROOT
/%{_datadir}/ansible/
cp -rv library/*
%{buildroot}
/%{_datadir}/ansible/
%clean
%clean
rm -rf
$RPM_BUILD_ROOT
rm -rf
%{buildroot}
%files
%files
%defattr(-,root,root)
%defattr(-,root,root)
...
@@ -78,6 +94,11 @@ rm -rf $RPM_BUILD_ROOT
...
@@ -78,6 +94,11 @@ rm -rf $RPM_BUILD_ROOT
%changelog
%changelog
* Tue Oct 22 2013 Patrick Callahan <pmc@patrickcallahan.com>
- Add support for openSuSE and SuSE
- Replaced rpm variables with rpm macros for consistency
- Minor reformatting
* Fri Sep 13 2013 Michael DeHaan <michael.dehaan@gmail.com> - 1.4-0
* Fri Sep 13 2013 Michael DeHaan <michael.dehaan@gmail.com> - 1.4-0
* (PENDING)
* (PENDING)
...
...
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