]>
Commit | Line | Data |
---|---|---|
957bf09c | 1 | Summary: SSH-based configuration management, deployment, and task execution system |
d3eaf63f | 2 | Name: ansible |
815ea1a0 | 3 | Version: 2.7.2 |
44c47766 | 4 | Release: 0.1 |
d3eaf63f ER |
5 | License: GPL v3+ |
6 | Group: Development/Libraries | |
0a6e5e86 | 7 | Source0: https://releases.ansible.com/ansible/%{name}-%{version}.tar.gz |
815ea1a0 | 8 | # Source0-md5: e9bbd49c4918f93fdab43652faa0508b |
f11511e3 | 9 | Patch0: https://github.com/glensc/ansible/compare/pm-poldek.patch |
815ea1a0 | 10 | # Patch0-md5: 5eeddbd3559fb6b148c06b1a6f3dc3dc |
16a141a7 | 11 | Patch1: https://github.com/glensc/ansible/compare/rc.d-systemd.patch |
91311277 | 12 | # Patch1-md5: a51f047c5514124dc29221f3336be402 |
d3eaf63f | 13 | URL: http://ansible.github.com/ |
bd52b7fd ER |
14 | BuildRequires: python-modules >= 1:2.6 |
15 | BuildRequires: rpm-pythonprov | |
60b9bfdf | 16 | BuildRequires: rpmbuild(macros) >= 1.710 |
d3eaf63f ER |
17 | Requires: python-PyYAML |
18 | Requires: python-jinja2 | |
7de60d6f | 19 | Requires: python-modules |
d3eaf63f | 20 | Requires: python-paramiko |
a7e423c1 ER |
21 | %if "%{py_ver}" < "2.6" |
22 | Requires: python-simplejson | |
23 | %endif | |
d3eaf63f ER |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Ansible is a radically simple model-driven configuration management, | |
29 | multi-node deployment, and remote task execution system. Ansible works | |
30 | over SSH and does not require any software or daemons to be installed | |
31 | on remote nodes. Extension modules can be written in any language and | |
32 | are transferred to managed machines automatically. | |
33 | ||
34 | %prep | |
0a6e5e86 | 35 | %setup -q |
0dce3871 | 36 | %patch0 -p1 |
d3eaf63f ER |
37 | |
38 | %build | |
c1c20d55 | 39 | %py_build |
97309b52 | 40 | %{__make} docs |
d3eaf63f ER |
41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
c1c20d55 | 44 | %py_install |
d3eaf63f | 45 | |
69f04fcf | 46 | #py_postclean |
d3eaf63f | 47 | |
97309b52 | 48 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_mandir}} |
f55f9d61 | 49 | sed -re '/^#/ !s,[^#]+$,#&,' examples/hosts > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/hosts |
91311277 | 50 | cp -p examples/ansible.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name} |
0ceaa819 | 51 | cp -a docs/man/* $RPM_BUILD_ROOT%{_mandir} |
d3eaf63f | 52 | |
0ceaa819 ER |
53 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/.gitdir |
54 | ||
d3eaf63f ER |
55 | %clean |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
0a6e5e86 | 60 | %doc README.rst |
d3eaf63f ER |
61 | %dir %{_sysconfdir}/%{name} |
62 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hosts | |
91311277 | 63 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.cfg |
d3eaf63f ER |
64 | %attr(755,root,root) %{_bindir}/ansible |
65 | %attr(755,root,root) %{_bindir}/ansible-doc | |
66 | %attr(755,root,root) %{_bindir}/ansible-playbook | |
67 | %attr(755,root,root) %{_bindir}/ansible-pull | |
97309b52 AM |
68 | %{_bindir}/ansible-config |
69 | %{_bindir}/ansible-connection | |
70 | %{_bindir}/ansible-console | |
71 | %{_bindir}/ansible-galaxy | |
72 | %{_bindir}/ansible-inventory | |
73 | %{_bindir}/ansible-vault | |
74 | %{_mandir}/man1/ansible-config.1* | |
75 | %{_mandir}/man1/ansible-console.1* | |
76 | %{_mandir}/man1/ansible-galaxy.1* | |
77 | %{_mandir}/man1/ansible-inventory.1* | |
78 | %{_mandir}/man1/ansible-vault.1* | |
d3eaf63f | 79 | %{_mandir}/man1/ansible.1* |
0ceaa819 | 80 | %{_mandir}/man1/ansible-doc.1* |
d3eaf63f | 81 | %{_mandir}/man1/ansible-playbook.1* |
0ceaa819 | 82 | %{_mandir}/man1/ansible-pull.1* |
d3eaf63f ER |
83 | %{py_sitescriptdir}/ansible |
84 | %{py_sitescriptdir}/ansible-%{version}-*.egg-info |