From 6fe6de1aa42b977d9f239abda133197ebde8236e Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Thu, 20 Jun 2019 00:11:04 +0200 Subject: [PATCH 1/1] - ansible --- ansible.spec | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 ansible.spec diff --git a/ansible.spec b/ansible.spec new file mode 100644 index 0000000..f54ab4c --- /dev/null +++ b/ansible.spec @@ -0,0 +1,77 @@ +Summary: SSH-based configuration management, deployment, and task execution system +Name: ansible +Version: 2.8.0 +Release: 0.1 +License: GPL v3+ +Group: Development/Libraries +Source0: https://releases.ansible.com/ansible/%{name}-%{version}.tar.gz +# Source0-md5: 9320cd9e26f929568038db49781df245 +URL: http://ansible.github.com/ +BuildRequires: python-modules >= 1:2.6 +BuildRequires: rpm-pythonprov +BuildRequires: rpmbuild(macros) >= 1.710 +Requires: python3-PyYAML +Requires: python3-idna +Requires: python3-jinja2 +Requires: python3-modules +Requires: python3-paramiko +Requires: python3-setuptools +Requires: sshpass +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Ansible is a radically simple model-driven configuration management, +multi-node deployment, and remote task execution system. Ansible works +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 +are transferred to managed machines automatically. + +%prep +%setup -q + +%build +%py3_build +%{__make} docs + +%install +rm -rf $RPM_BUILD_ROOT +%py3_install + +install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_mandir}} +sed -re '/^#/ !s,[^#]+$,#&,' examples/hosts > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/hosts +cp -p examples/ansible.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{name} +cp -a docs/man/* $RPM_BUILD_ROOT%{_mandir} + +%{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/.gitdir + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README.rst +%dir %{_sysconfdir}/%{name} +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/hosts +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.cfg +%attr(755,root,root) %{_bindir}/ansible +%attr(755,root,root) %{_bindir}/ansible-doc +%attr(755,root,root) %{_bindir}/ansible-playbook +%attr(755,root,root) %{_bindir}/ansible-pull +%{_bindir}/ansible-config +%{_bindir}/ansible-connection +%{_bindir}/ansible-console +%{_bindir}/ansible-galaxy +%{_bindir}/ansible-inventory +%{_bindir}/ansible-vault +%{_mandir}/man1/ansible-config.1* +%{_mandir}/man1/ansible-console.1* +%{_mandir}/man1/ansible-galaxy.1* +%{_mandir}/man1/ansible-inventory.1* +%{_mandir}/man1/ansible-vault.1* +%{_mandir}/man1/ansible.1* +%{_mandir}/man1/ansible-doc.1* +%{_mandir}/man1/ansible-playbook.1* +%{_mandir}/man1/ansible-pull.1* +%{py3_sitescriptdir}/ansible +%{py3_sitescriptdir}/ansible-%{version}-*.egg-info -- 2.46.0