diff options
author | Tim Bielawa <tbielawa@redhat.com> | 2012-03-10 22:19:33 +0100 |
---|---|---|
committer | Tim Bielawa <tbielawa@redhat.com> | 2012-03-10 22:19:33 +0100 |
commit | dce6074a81a1b96abb7f8587f4c060439e6c009d (patch) | |
tree | ed6e11aaba349ebbb1ac9a43f37759d3b2ec42a4 /ansible.spec | |
parent | Fixup RPM building: Makefile, Spec File, .gitignore (diff) | |
download | ansible-dce6074a81a1b96abb7f8587f4c060439e6c009d.tar.xz ansible-dce6074a81a1b96abb7f8587f4c060439e6c009d.zip |
Fixes for better RPM packaging
Spec file installs default example hosts files
Spec file marks the contents of /etc/ansible as %config(noreplace)
Example hosts file now with instructional comments
Diffstat (limited to 'ansible.spec')
-rw-r--r-- | ansible.spec | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ansible.spec b/ansible.spec index 8bae80f8e4..360ccc4347 100644 --- a/ansible.spec +++ b/ansible.spec @@ -34,6 +34,7 @@ make docs %install python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES mkdir -p $RPM_BUILD_ROOT/etc/ansible/ +cp examples/hosts $RPM_BUILD_ROOT/etc/ansible/ %clean rm -rf $RPM_BUILD_ROOT @@ -45,7 +46,8 @@ rm -rf $RPM_BUILD_ROOT %{python_sitelib}/* %{_bindir}/ansible* %{_datadir}/ansible/* -%{_sysconfdir}/ansible/ +%config(noreplace) %{_sysconfdir}/ansible/ + %changelog * Sat Mar 10 2012 <tbielawa@redhat.com> - 0.0.1-1 |