]> git.pld-linux.org Git - packages/cacti-plugin-weathermap.git/blame - cacti-plugin-weathermap.spec
- do it without side-effects
[packages/cacti-plugin-weathermap.git] / cacti-plugin-weathermap.spec
CommitLineData
d1e67b3c
ER
1# TODO
2# - config file, patches, package for not cacti plugin
46950fe9
MWP
3%define namesrc weathermap
4%include /usr/lib/rpm/macros.perl
5Summary: Plugin for Cacti - WeatherMap
a90dd0d3 6Summary(pl.UTF-8): Wtyczka do Cacti - WeatherMap (mapa pogody)
46950fe9 7Name: cacti-plugin-weathermap
29eb7123 8Version: 0.95b
e42d07e4 9Release: 2
46950fe9
MWP
10License: GPL v2
11Group: Applications/WWW
12Source0: http://www.network-weathermap.com/files/php-%{namesrc}-%{version}.zip
29eb7123 13# Source0-md5: 6481970ad971dfe659eed535b440e678
46950fe9
MWP
14URL: http://www.network-weathermap.com
15BuildRequires: rpm-perlprov
16Requires: cacti
17BuildArch: noarch
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define webcactipluginroot /usr/share/cacti/plugins/%{namesrc}
21
22%description
a90dd0d3
JB
23Weathermap plugin for Cacti is a network visualisation tool, to take
24data you already have and show you an overview of your network in map
25form.
d1e67b3c 26
46950fe9
MWP
27Support is built in for RRD, MRTG (RRD and old log-format), and
28tab-delimited text files. Other sources are via plugins or external
29scripts.
30
31%description -l pl.UTF-8
a90dd0d3
JB
32Wtyczka Weathermap dla Cacti to narzędzie do wizualizacji sieci,
33pobierające już istniejące dane i tworzące widok sieci w postaci mapy.
34
35Ma wbudowaną obsługę plików RRD, MRTG (RRD i starego formatu logów)
36oraz tekstowych rozdzielonych tabulacjami. Inne źródła są dostępne
37przez wtyczki lub zewnętrzne skrypty.
46950fe9
MWP
38
39%prep
40%setup -q -n %{namesrc}
41
42# undos the source
43find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
44
e42d07e4 45# fix php path
f1b611cb 46%{__sed} -i -e '1s,#!.*bin/php,#!%{_bindir}/php,' %{namesrc}
e42d07e4 47
46950fe9
MWP
48%install
49rm -rf $RPM_BUILD_ROOT
50install -d $RPM_BUILD_ROOT%{webcactipluginroot}
f1b611cb 51cp -a . $RPM_BUILD_ROOT%{webcactipluginroot}
46950fe9
MWP
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files
57%defattr(644,root,root,755)
58%doc README CHANGES
59%{webcactipluginroot}
This page took 0.247253 seconds and 4 git commands to generate.