X-Git-Url: https://git.tld-linux.org/?p=packages%2Fansible.git;a=blobdiff_plain;f=ansible.spec;fp=ansible.spec;h=74c5e3af1a7d6a22642cfaf33da8e780ff4a5a81;hp=65796ee2946e686848253802596a440e614be8e5;hb=870abe4e7fb61ded053d794a9f391727c4ae90ce;hpb=6f93ef0abdc76e1e009b11ce17b9ba78707285a8 diff --git a/ansible.spec b/ansible.spec index 65796ee..74c5e3a 100644 --- a/ansible.spec +++ b/ansible.spec @@ -1,11 +1,13 @@ Summary: SSH-based configuration management, deployment, and task execution system Name: ansible Version: 2.8.0 -Release: 1 +Release: 2 License: GPL v3+ Group: Development/Libraries Source0: https://releases.ansible.com/ansible/%{name}-%{version}.tar.gz # Source0-md5: 9320cd9e26f929568038db49781df245 +Source1: poldek.py +Patch0: poldek.patch URL: http://ansible.github.com/ BuildRequires: python3-modules BuildRequires: rpm-pythonprov @@ -29,6 +31,7 @@ are transferred to managed machines automatically. %prep %setup -q +%patch0 -p1 %build %py3_build @@ -38,6 +41,8 @@ are transferred to managed machines automatically. rm -rf $RPM_BUILD_ROOT %py3_install +install -p %{SOURCE1} $RPM_BUILD_ROOT%{py3_sitescriptdir}/ansible/modules/packaging/os + 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}