packages: cacti-plugin-thold/cacti-plugin-thold.spec - up to 0.4.8; remove ...

glen glen at pld-linux.org
Thu Oct 27 21:37:55 CEST 2011


Author: glen                         Date: Thu Oct 27 19:37:55 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 0.4.8; remove all nonsense (like perl???) and make package properly

---- Files affected:
packages/cacti-plugin-thold:
   cacti-plugin-thold.spec (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: packages/cacti-plugin-thold/cacti-plugin-thold.spec
diff -u packages/cacti-plugin-thold/cacti-plugin-thold.spec:1.22 packages/cacti-plugin-thold/cacti-plugin-thold.spec:1.23
--- packages/cacti-plugin-thold/cacti-plugin-thold.spec:1.22	Tue Jan 11 14:41:58 2011
+++ packages/cacti-plugin-thold/cacti-plugin-thold.spec	Thu Oct 27 21:37:50 2011
@@ -1,20 +1,22 @@
 # $Revision$, $Date$
 %define		plugin	thold
-%include	/usr/lib/rpm/macros.perl
+%define		php_min_version 5.0.0
+%include	/usr/lib/rpm/macros.php
 Summary:	Plugin for Cacti - Thold
 Summary(pl.UTF-8):	Wtyczka do Cacti - Thold
-Name:		cacti-plugin-thold
-Version:	0.4.3
+Name:		cacti-plugin-%{plugin}
+Version:	0.4.8
 Release:	1
 License:	LGPL v2.1
 Group:		Applications/WWW
-Source0:	http://mirror.cactiusers.org/downloads/plugins/%{plugin}-%{version}.tar.gz
-# Source0-md5:	b809b3f1566d7cf45c8d697db2d0bcbb
-URL:		http://www.cactiusers.org/
-BuildRequires:	rpm-perlprov
-BuildRequires:	rpmbuild(macros) >= 1.553
+Source0:	http://docs.cacti.net/_media/plugin:thold-v%{version}-3.tgz
+# Source0-md5:	20180edb16d0d3b6777b8df12679c94a
+URL:		http://docs.cacti.net/plugin:thold
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
 Requires:	cacti
-Requires:	cacti-plugin-settings
+Requires:	cacti(pia) >= 2.9
+Requires:	cacti-plugin-settings >= 0.71
+Requires:	php-common >= 4:%{php_min_version}
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -22,9 +24,11 @@
 %define		plugindir		%{cactidir}/plugins/%{plugin}
 
 %description
-Plugin for Cacti - the Threshold Module (by Aurelio DeSimone)
-converted to a plugin. Much easier to install and maintain. Requires
-that you have the Plugin Architecture installed.
+This plugin is for the alerting of data found within any graph within
+Cacti.
+
+Thold is Cacti's premier Alerting modules that integrates seamlessly
+with Cacti's Graphing engine.
 
 %description -l pl.UTF-8
 Wtyczka do Cacti - moduł Threshold (który napisał Aurelio DeSimone)
@@ -35,14 +39,15 @@
 monitorowanych parametrów.
 
 %prep
-%setup -q -n %{plugin}
-%undos LICENSE README thold.sql
+%setup -qc
+mv %{plugin}/{LICENSE,README} .
+
+%{__rm} thold/includes/.settings.php.swp
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{plugindir}
-cp -a . $RPM_BUILD_ROOT%{plugindir}
-%{__rm} $RPM_BUILD_ROOT%{plugindir}/{README,LICENSE}
+cp -a %{plugin}/* $RPM_BUILD_ROOT%{plugindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -58,6 +63,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2011/10/27 19:37:50  glen
+- up to 0.4.8; remove all nonsense (like perl???) and make package properly
+
 Revision 1.22  2011/01/11 13:41:58  lisu
 - updated to 0.4.3
 - tar.gz package
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/cacti-plugin-thold/cacti-plugin-thold.spec?r1=1.22&r2=1.23&f=u



More information about the pld-cvs-commit mailing list