summaryrefslogtreecommitdiffstats
path: root/ansible.spec
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2012-03-10 22:19:33 +0100
committerTim Bielawa <tbielawa@redhat.com>2012-03-10 22:19:33 +0100
commitdce6074a81a1b96abb7f8587f4c060439e6c009d (patch)
treeed6e11aaba349ebbb1ac9a43f37759d3b2ec42a4 /ansible.spec
parentFixup RPM building: Makefile, Spec File, .gitignore (diff)
downloadansible-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.spec4
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