- php deps
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 30 Oct 2011 20:57:28 +0000 (20:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-plugin-pollperf.spec -> 1.8

cacti-plugin-pollperf.spec

index b6ebce5..7940faf 100644 (file)
@@ -1,18 +1,21 @@
 %define                plugin  pollperf
-%include       /usr/lib/rpm/macros.perl
+%define                php_min_version 5.0.0
+%include       /usr/lib/rpm/macros.php
 Summary:       Plugin for Cacti - pollperf
 Summary(pl.UTF-8):     Wtyczka do Cacti - pollperf
-Name:          cacti-plugin-pollperf
+Name:          cacti-plugin-%{plugin}
 Version:       0.1
-Release:       0.1
+Release:       1
 License:       GPL v2
 Group:         Applications/WWW
-Source0:       http://cactiusers.org/forums/download.php?id=54
-#Source0:      http://download.cactiusers.org/downloads/%{plugin}.tar.gz
-# Source0-md5:
-URL:           http://www.cactiusers.org/
-BuildRequires: rpm-perlprov
+Source0:       http://forums.cacti.net/download/file.php?id=4956#/%{plugin}.zip
+# Source0-md5: 50aff104fa7b232dfa9ac62bdacbdb83
+URL:           http://forums.cacti.net/viewtopic.php?t=12369
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
 Requires:      cacti
+Requires:      php-common >= 4:%{php_min_version}
+Requires:      php-date
+Requires:      php-pcre
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -20,24 +23,23 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                plugindir               %{cactidir}/plugins/%{plugin}
 
 %description
-Plugin for Cacti - poller performance plugin.
+Analyzing Poller Performance from DEBUG Log.
 
 %description -l pl.UTF-8
 Wtyczka do Cacti - wtyczka sprawdzająca wydajność pobierania
 informacji.
 
 %prep
-%setup -q -n %{plugin}
+%setup -qc
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{plugindir}
-cp -a . $RPM_BUILD_ROOT%{plugindir}
+cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc LICENSE README
 %{plugindir}
This page took 0.100711 seconds and 4 git commands to generate.