1 #TODO - config file, patches, package for not cacti plugin
2 %define namesrc weathermap
3 %include /usr/lib/rpm/macros.perl
4 Summary: Plugin for Cacti - WeatherMap
5 Summary(pl.UTF-8): Wtyczka do Cacti - WeatherMap
6 Name: cacti-plugin-weathermap
10 Group: Applications/WWW
11 Source0: http://www.network-weathermap.com/files/php-%{namesrc}-%{version}.zip
12 # Source0-md5: 8214a2a323db250ac3b783fc5674b163
13 URL: http://www.network-weathermap.com
14 BuildRequires: rpm-perlprov
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define webcactipluginroot /usr/share/cacti/plugins/%{namesrc}
22 Plugin for Cacti - Weathermap - is a network visualisation tool, to
23 take data you already have and show you an overview of your network
25 Support is built in for RRD, MRTG (RRD and old log-format), and
26 tab-delimited text files. Other sources are via plugins or external
29 %description -l pl.UTF-8
30 Wtyczka do Cacti - Weathermap
33 %setup -q -n %{namesrc}
36 find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{webcactipluginroot}
41 cp -aRf * $RPM_BUILD_ROOT%{webcactipluginroot}
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)