modify build/spec file to work on el6 with quasi-broken setup process
remove data_files section from setup.py for some reason or another
This commit is contained in:
parent
adf1492da2
commit
3567237dbc
3 changed files with 5 additions and 8 deletions
|
@ -1,4 +1,5 @@
|
||||||
include README.md AUTHORS.md ansible.spec
|
include README.md AUTHORS.md ansible.spec
|
||||||
include examples/hosts
|
include examples/hosts
|
||||||
recursive-include docs *
|
recursive-include docs *
|
||||||
|
recursive-include library *
|
||||||
include Makefile
|
include Makefile
|
||||||
|
|
|
@ -35,6 +35,10 @@ make docs
|
||||||
python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/ansible/
|
mkdir -p $RPM_BUILD_ROOT/etc/ansible/
|
||||||
cp examples/hosts $RPM_BUILD_ROOT/etc/ansible/
|
cp examples/hosts $RPM_BUILD_ROOT/etc/ansible/
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1/
|
||||||
|
cp -v docs/man/man1/*.1 $RPM_BUILD_ROOT/%{_mandir}/man1/
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/ansible
|
||||||
|
cp -v library/* $RPM_BUILD_ROOT/%{_datadir}/ansible/
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -19,14 +19,6 @@ setup(name='ansible',
|
||||||
packages=[
|
packages=[
|
||||||
'ansible',
|
'ansible',
|
||||||
],
|
],
|
||||||
data_files=[
|
|
||||||
('/usr/share/ansible',
|
|
||||||
glob.glob('library/*')
|
|
||||||
),
|
|
||||||
('/usr/share/man/man1',
|
|
||||||
glob.glob('docs/man/man1/*.1')
|
|
||||||
),
|
|
||||||
],
|
|
||||||
scripts=[
|
scripts=[
|
||||||
'bin/ansible',
|
'bin/ansible',
|
||||||
'bin/ansible-playbook'
|
'bin/ansible-playbook'
|
||||||
|
|
Loading…
Reference in a new issue