Skip to content

Commit

Permalink
Reset "Release" to 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardli committed Dec 17, 2010
1 parent e582903 commit 9750428
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ GANGLIA_MICRO_VERSION=0
# - it can be used as part of the VERSION= parameter in the
# pkginfo file (man 4 pkginfo), e.g. VERSION=X.X.X,REV=@REL@
# appears to be consistent with the way Blastwave does things
REL=2
REL=1

# If we are releasing a snapshot (beta), set GANGLIA_SNAPSHOT to "yes"
# If we are creating an official release, set it to "no"
Expand Down
20 changes: 18 additions & 2 deletions ganglia.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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@
Expand Down Expand Up @@ -170,6 +172,8 @@ gmetad packages
%ifnarch noarch
make
%endif
cd gmetad-python
%{__python} setup.py build

%pre

Expand Down Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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)
Expand Down Expand Up @@ -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]>
Expand Down

0 comments on commit 9750428

Please sign in to comment.