]>
Commit | Line | Data |
---|---|---|
957bf09c | 1 | Summary: SSH-based configuration management, deployment, and task execution system |
d3eaf63f | 2 | Name: ansible |
0dce3871 | 3 | Version: 1.2 |
957bf09c | 4 | Release: 0.12 |
d3eaf63f ER |
5 | License: GPL v3+ |
6 | Group: Development/Libraries | |
0ceaa819 | 7 | Source0: https://github.com/ansible/ansible/archive/devel.tar.gz?/%{version}-dev.tgz |
0dce3871 | 8 | # Source0-md5: 7dcb52644cbe4e9dc998246e69ca3edc |
f11511e3 | 9 | Patch0: https://github.com/glensc/ansible/compare/pm-poldek.patch |
91311277 | 10 | # Patch0-md5: 91dd49cb9c64c52615aec95341c40128 |
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 | |
d3eaf63f ER |
16 | BuildRequires: rpmbuild(macros) >= 1.219 |
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 | ||
957bf09c ER |
34 | %package fireball |
35 | Summary: Ansible fireball transport support | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | Requires: python-keyczar | |
39 | Requires: python-zmq | |
40 | ||
41 | %description fireball | |
42 | Ansible can optionally use a 0MQ based transport mechanism, which is | |
43 | considerably faster than the standard ssh mechanism when there are | |
44 | multiple actions, but requires additional supporting packages. | |
45 | ||
46 | %package node-fireball | |
47 | Summary: Ansible fireball transport - node end support | |
48 | Group: Development/Libraries | |
49 | Requires: python-keyczar | |
50 | Requires: python-zmq | |
51 | ||
52 | %description node-fireball | |
53 | Ansible can optionally use a 0MQ based transport mechanism, which has | |
54 | additional requirements for nodes to use. This package includes those | |
55 | requirements. | |
56 | ||
d3eaf63f | 57 | %prep |
0dce3871 ER |
58 | %setup -qc |
59 | mv %{name}-devel/* . | |
60 | %patch0 -p1 | |
d3eaf63f ER |
61 | |
62 | %build | |
63 | %{__python} setup.py build | |
0ceaa819 | 64 | %{__make} modulepages |
d3eaf63f ER |
65 | |
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | %{__python} setup.py install \ | |
69 | --skip-build \ | |
70 | --optimize=2 \ | |
71 | --root=$RPM_BUILD_ROOT | |
72 | ||
69f04fcf | 73 | #py_postclean |
d3eaf63f | 74 | |
0ceaa819 | 75 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_datadir}/%{name},%{_mandir}} |
f55f9d61 | 76 | sed -re '/^#/ !s,[^#]+$,#&,' examples/hosts > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/hosts |
91311277 | 77 | cp -p examples/ansible.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name} |
0ceaa819 | 78 | cp -a docs/man/* $RPM_BUILD_ROOT%{_mandir} |
d3eaf63f ER |
79 | cp -a library/* $RPM_BUILD_ROOT%{_datadir}/%{name} |
80 | ||
0ceaa819 ER |
81 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/*.asciidoc.in |
82 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/.gitdir | |
83 | ||
d3eaf63f ER |
84 | %clean |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
89 | %doc VERSION *.md | |
90 | %dir %{_sysconfdir}/%{name} | |
91 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hosts | |
91311277 | 92 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.cfg |
d3eaf63f ER |
93 | %attr(755,root,root) %{_bindir}/ansible |
94 | %attr(755,root,root) %{_bindir}/ansible-doc | |
95 | %attr(755,root,root) %{_bindir}/ansible-playbook | |
96 | %attr(755,root,root) %{_bindir}/ansible-pull | |
97 | %{_mandir}/man1/ansible.1* | |
0ceaa819 | 98 | %{_mandir}/man1/ansible-doc.1* |
d3eaf63f | 99 | %{_mandir}/man1/ansible-playbook.1* |
0ceaa819 ER |
100 | %{_mandir}/man1/ansible-pull.1* |
101 | %{_mandir}/man3/ansible.*.3* | |
957bf09c | 102 | %exclude %{_mandir}/man3/ansible.fireball.3* |
d3eaf63f | 103 | %{_datadir}/%{name} |
957bf09c | 104 | %exclude %{_datadir}/%{name}/utilities/fireball |
d3eaf63f ER |
105 | %{py_sitescriptdir}/ansible |
106 | %{py_sitescriptdir}/ansible-%{version}-*.egg-info | |
957bf09c ER |
107 | |
108 | %files fireball | |
109 | %defattr(644,root,root,755) | |
110 | %{_datadir}/%{name}/utilities/fireball | |
111 | %{_mandir}/man3/ansible.fireball.3* | |
112 | ||
113 | %files node-fireball | |
114 | %defattr(644,root,root,755) |