%define oname ganglia Name: ganglia-web License: BSD Version: 3.5.4 Release: %mkrel 2 Group: Monitoring URL: http://ganglia.sourceforge.net/ Source0: http://downloads.sourceforge.net/ganglia/%{name}-%{version}.tar.gz Patch0: ganglia-web-3.5.4-mga-fix-makefile.patch Group: Monitoring Summary: Ganglia Web Frontend BuildArch: noarch Obsoletes: %{oname}-webfrontend < 3.5.3 Provides: %{oname}-webfrontend = %{version}-%{release} BuildRequires: rsync Requires: %{oname}-core Requires: apache-mod_php Requires: rrdtool Requires: %{oname}-gmetad Requires: php-xml Requires: php-gd Requires(post): rpm-helper Requires(preun): rpm-helper %description This component presents all the historical data saved to Round-Robin databases by Gmetad in HTML allowing all cluster, hosts and host metrics to be viewed in real-time. %prep %setup -q %patch0 -p1 -b .chown~ %build %install rm -fr %buildroot # No need for execure bit chmod -x header.php mkdir -p %{buildroot}/var/www/html %makeinstall_std # Don't install docs in web dir rm %{buildroot}/var/www/html/ganglia/{AUTHORS,COPYING,README,TODO} %files %doc AUTHORS COPYING README TODO /var/www/html/ganglia /var/lib/ganglia/conf %attr(0755,apache,apache)/var/lib/ganglia/dwoo/compiled %attr(0755,apache,apache)/var/lib/ganglia/dwoo/cache %changelog * Fri Jan 11 2013 umeabot <umeabot> 3.5.4-2.mga3 + Revision: 351050 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Dec 20 2012 solbu <solbu> 3.5.4-1.mga3 + Revision: 333425 - Initial Mageia package - Fix Makefile