]>
Commit | Line | Data |
---|---|---|
d3eaf63f ER |
1 | Summary: Minimal SSH command and control |
2 | Name: ansible | |
3 | Version: 1.1 | |
f11511e3 | 4 | Release: 0.6 |
d3eaf63f ER |
5 | License: GPL v3+ |
6 | Group: Development/Libraries | |
7 | Source0: https://github.com/ansible/ansible/archive/release%{version}.tar.gz | |
8 | # Source0-md5: 92e66d233fd7130ea23dfb61ba3b4856 | |
f11511e3 ER |
9 | Patch0: https://github.com/glensc/ansible/compare/pm-poldek.patch |
10 | # Patch0-md5: c5df4e6b4a964ddd75e88b98743c5feb | |
d3eaf63f | 11 | URL: http://ansible.github.com/ |
bd52b7fd ER |
12 | BuildRequires: python-modules >= 1:2.6 |
13 | BuildRequires: rpm-pythonprov | |
d3eaf63f ER |
14 | BuildRequires: rpmbuild(macros) >= 1.219 |
15 | Requires: python-PyYAML | |
16 | Requires: python-jinja2 | |
17 | Requires: python-paramiko | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Ansible is a radically simple model-driven configuration management, | |
23 | multi-node deployment, and remote task execution system. Ansible works | |
24 | over SSH and does not require any software or daemons to be installed | |
25 | on remote nodes. Extension modules can be written in any language and | |
26 | are transferred to managed machines automatically. | |
27 | ||
28 | %prep | |
29 | %setup -q -n %{name}-release%{version} | |
f11511e3 ER |
30 | cd library |
31 | %patch0 -p3 | |
d3eaf63f ER |
32 | |
33 | %build | |
34 | %{__python} setup.py build | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | %{__python} setup.py install \ | |
39 | --skip-build \ | |
40 | --optimize=2 \ | |
41 | --root=$RPM_BUILD_ROOT | |
42 | ||
69f04fcf | 43 | #py_postclean |
d3eaf63f ER |
44 | |
45 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_datadir}/%{name},%{_mandir}/man1} | |
f55f9d61 | 46 | sed -re '/^#/ !s,[^#]+$,#&,' examples/hosts > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/hosts |
d3eaf63f ER |
47 | cp -p docs/man/man1/ansible.1 $RPM_BUILD_ROOT%{_mandir}/man1/ansible.1 |
48 | cp -p docs/man/man1/ansible-playbook.1 $RPM_BUILD_ROOT%{_mandir}/man1/ansible-playbook.1 | |
49 | cp -a library/* $RPM_BUILD_ROOT%{_datadir}/%{name} | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc VERSION *.md | |
57 | %dir %{_sysconfdir}/%{name} | |
58 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hosts | |
59 | %attr(755,root,root) %{_bindir}/ansible | |
60 | %attr(755,root,root) %{_bindir}/ansible-doc | |
61 | %attr(755,root,root) %{_bindir}/ansible-playbook | |
62 | %attr(755,root,root) %{_bindir}/ansible-pull | |
63 | %{_mandir}/man1/ansible.1* | |
64 | %{_mandir}/man1/ansible-playbook.1* | |
65 | %{_datadir}/%{name} | |
66 | %{py_sitescriptdir}/ansible | |
67 | %{py_sitescriptdir}/ansible-%{version}-*.egg-info |