From: MichaƂ 'Wolvverine' Panasiewicz Date: Wed, 26 Dec 2007 03:03:44 +0000 (+0000) Subject: - init X-Git-Tag: auto/ti/cacti-plugin-weathermap-0_95b-1~3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcacti-plugin-weathermap.git;a=commitdiff_plain;h=46950fe98b46461fde6b051e3eabefcc7e8a748b - init Changed files: cacti-plugin-weathermap.spec -> 1.1 --- 46950fe98b46461fde6b051e3eabefcc7e8a748b diff --git a/cacti-plugin-weathermap.spec b/cacti-plugin-weathermap.spec new file mode 100644 index 0000000..72f9002 --- /dev/null +++ b/cacti-plugin-weathermap.spec @@ -0,0 +1,49 @@ +#TODO - config file, patches, package for not cacti plugin +%define namesrc weathermap +%include /usr/lib/rpm/macros.perl +Summary: Plugin for Cacti - WeatherMap +Summary(pl.UTF-8): Wtyczka do Cacti - WeatherMap +Name: cacti-plugin-weathermap +Version: 0.941 +Release: 0.1 +License: GPL v2 +Group: Applications/WWW +Source0: http://www.network-weathermap.com/files/php-%{namesrc}-%{version}.zip +# Source0-md5: 8214a2a323db250ac3b783fc5674b163 +URL: http://www.network-weathermap.com +BuildRequires: rpm-perlprov +Requires: cacti +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define webcactipluginroot /usr/share/cacti/plugins/%{namesrc} + +%description +Plugin for Cacti - Weathermap - is a network visualisation tool, to +take data you already have and show you an overview of your network +in map form. +Support is built in for RRD, MRTG (RRD and old log-format), and +tab-delimited text files. Other sources are via plugins or external +scripts. + +%description -l pl.UTF-8 +Wtyczka do Cacti - Weathermap + +%prep +%setup -q -n %{namesrc} + +# undos the source +find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,' + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{webcactipluginroot} +cp -aRf * $RPM_BUILD_ROOT%{webcactipluginroot} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README CHANGES +%{webcactipluginroot}