ganglia-web/ganglia-web.spec

74 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package ganglia-web
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ganglia-web
Version: 3.5.7
Release: 0
Summary: Ganglia web frontend
License: GPL-2.0
Group: System/Monitoring
Url: http://ganglia.info/
Source0: %{name}-%{version}.tar.gz
BuildRequires: fdupes
Requires: php >= 5
Requires: php-gd
Requires: php-xml
Requires: rrdtool
BuildArch: noarch
%define web_prefixdir /srv/www/htdocs/ganglia
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package provides a web frontend to display the XML tree published by
ganglia, and to provide historical graphs of collected metrics. This website is
written in the PHP5 language and uses the Dwoo templating engine.
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}%{web_prefixdir}
cp -rf * %{buildroot}%{web_prefixdir}
rm -rf %{buildroot}%{web_prefixdir}/conf
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/filters
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/conf
cp -rf conf/* %{buildroot}%{_localstatedir}/lib/ganglia-web/conf
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/dwoo
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/dwoo/compiled
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/ganglia-web/dwoo/cache
rm -rf {buildroot}%{_localstatedir}/lib/ganglia-web/debian
%fdupes %{buildroot}%{web_prefixdir}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING TODO
%dir %{web_prefixdir}/
%dir %{web_prefixdir}/dwoo
%{web_prefixdir}/*
%config(noreplace) %{web_prefixdir}/conf_default.php
%dir %{_localstatedir}/lib/ganglia-web
%{_localstatedir}/lib/ganglia-web/conf
%attr(0755,wwwrun,wwwrun)%{_localstatedir}/lib/ganglia-web/dwoo
%attr(0755,wwwrun,wwwrun)%{_localstatedir}/lib/ganglia-web/dwoo/compiled
%attr(0755,wwwrun,wwwrun)%{_localstatedir}/lib/ganglia-web/dwoo/cache
%changelog