2 # - config file, patches, package for not cacti plugin
3 %define plugin weathermap
4 %include /usr/lib/rpm/macros.perl
5 Summary: Plugin for Cacti - WeatherMap
6 Summary(pl.UTF-8): Wtyczka do Cacti - WeatherMap (mapa pogody)
7 Name: cacti-plugin-weathermap
11 Group: Applications/WWW
12 Source0: http://www.network-weathermap.com/files/php-%{plugin}-%{version}.zip
13 # Source0-md5: 6481970ad971dfe659eed535b440e678
14 URL: http://www.network-weathermap.com
15 BuildRequires: rpm-perlprov
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define cactidir /usr/share/cacti
21 %define plugindir %{cactidir}/plugins/%{plugin}
24 Weathermap plugin for Cacti is a network visualisation tool, to take
25 data you already have and show you an overview of your network in map
28 Support is built in for RRD, MRTG (RRD and old log-format), and
29 tab-delimited text files. Other sources are via plugins or external
32 %description -l pl.UTF-8
33 Wtyczka Weathermap dla Cacti to narzędzie do wizualizacji sieci,
34 pobierające już istniejące dane i tworzące widok sieci w postaci mapy.
36 Ma wbudowaną obsługę plików RRD, MRTG (RRD i starego formatu logów)
37 oraz tekstowych rozdzielonych tabulacjami. Inne źródła są dostępne
38 przez wtyczki lub zewnętrzne skrypty.
41 %setup -q -n %{plugin}
44 find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
47 %{__sed} -i -e '1s,#!.*bin/php,#!%{_bindir}/php,' %{plugin}
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{plugindir}
52 cp -a . $RPM_BUILD_ROOT%{plugindir}
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)