forked from ganglia/monitor-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
bernardli
committed
Dec 17, 2010
1 parent
e582903
commit 9750428
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ | |
# | ||
# % rpmbuild -ta --target noarch,i386 ganglia-@[email protected] | ||
# | ||
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} | ||
|
||
Summary: Ganglia Distributed Monitoring System | ||
Name: @PACKAGE@ | ||
Version: @VERSION@ | ||
|
@@ -170,6 +172,8 @@ gmetad packages | |
%ifnarch noarch | ||
make | ||
%endif | ||
cd gmetad-python | ||
%{__python} setup.py build | ||
|
||
%pre | ||
|
||
|
@@ -309,6 +313,7 @@ fi | |
# Copy the python metric modules and .conf files | ||
%__cp -f gmond/python_modules/conf.d/*.pyconf $RPM_BUILD_ROOT%{conf_dir}/conf.d/ | ||
%{__python} -c 'import compileall; compileall.compile_dir("gmond/python_modules", 1, "/", 1)' > /dev/null | ||
%{__python} -O -c 'import compileall; compileall.compile_dir("gmond/python_modules", 1, "/", 1)' > /dev/null | ||
%__cp -f gmond/python_modules/*/*.{py,pyc} $RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules/ | ||
|
||
# Don't install the example modules | ||
|
@@ -328,7 +333,9 @@ fi | |
|
||
# gmetad-python | ||
cd gmetad-python | ||
%{__python} setup.py install --install-scripts=/usr/sbin --root=$RPM_BUILD_ROOT --record=GMETAD_PYTHON_FILES | ||
%{__python} setup.py install --skip-build --install-scripts=%{_sbindir} --root=$RPM_BUILD_ROOT | ||
%{__python} -c 'import compileall; compileall.compile_dir("'"$RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules/gmetad"'", 1, "/", 1)' > /dev/null | ||
%{__python} -O -c 'import compileall; compileall.compile_dir("'"$RPM_BUILD_ROOT%{_libdir}/ganglia/python_modules/gmetad"'", 1, "/", 1)' > /dev/null | ||
|
||
%endif | ||
|
||
|
@@ -343,10 +350,15 @@ cd gmetad-python | |
%{_mandir}/man1/gmetad.1* | ||
%config(noreplace) %{conf_dir}/gmetad.conf | ||
|
||
%files gmetad-python -f gmetad-python/GMETAD_PYTHON_FILES | ||
%files gmetad-python | ||
%defattr(-,root,root) | ||
%{_sbindir}/gmetad.py* | ||
/etc/init.d/gmetad-python | ||
%config(noreplace) %{conf_dir}/gmetad-python.conf | ||
%{python_sitelib}/* | ||
%dir %{_libdir}/ganglia | ||
%dir %{_libdir}/ganglia/python_modules | ||
%{_libdir}/ganglia/python_modules/gmetad* | ||
|
||
%files gmond | ||
%defattr(-,root,root) | ||
|
@@ -443,6 +455,10 @@ cd gmetad-python | |
%__rm -rf $RPM_BUILD_ROOT | ||
|
||
%changelog | ||
* Thu Dec 16 2010 Bernard Li <[email protected]> | ||
- Fix gmetad-python subpackage not including files from Python site-packages dir | ||
- Break gmetad-python installation into build and install stages | ||
- Byte compile gmetad-python scripts | ||
* Wed Sep 8 2010 Bernard Li <[email protected]> | ||
- Replace TemplatePower with Dwoo for PHP templating engine | ||
* Tue Aug 17 2010 Bernard Li <[email protected]> | ||
|