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
This commit is contained in:
Tim Bielawa 2012-03-10 16:19:33 -05:00
commit dce6074a81
4 changed files with 41 additions and 13 deletions

View file

@ -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