]> git.pld-linux.org Git - packages/cacti-plugin-weathermap.git/blob - cacti-plugin-weathermap.spec
- simplify macros and cleanups
[packages/cacti-plugin-weathermap.git] / cacti-plugin-weathermap.spec
1 # TODO
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
8 Version:        0.95b
9 Release:        2
10 License:        GPL v2
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
16 Requires:       cacti
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         cactidir                /usr/share/cacti
21 %define         plugindir               %{cactidir}/plugins/%{plugin}
22
23 %description
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
26 form.
27
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
30 scripts.
31
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.
35
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.
39
40 %prep
41 %setup -q -n %{plugin}
42
43 # undos the source
44 find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
45
46 # fix php path
47 %{__sed} -i -e '1s,#!.*bin/php,#!%{_bindir}/php,' %{plugin}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{plugindir}
52 cp -a . $RPM_BUILD_ROOT%{plugindir}
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc README CHANGES
60 %{plugindir}
This page took 0.049571 seconds and 3 git commands to generate.