template-specs: cacti-template.spec - use new template install method

glen glen at pld-linux.org
Thu Apr 15 08:39:43 CEST 2010


Author: glen                         Date: Thu Apr 15 06:39:43 2010 GMT
Module: template-specs                Tag: HEAD
---- Log message:
- use new template install method

---- Files affected:
template-specs:
   cacti-template.spec (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: template-specs/cacti-template.spec
diff -u template-specs/cacti-template.spec:1.11 template-specs/cacti-template.spec:1.12
--- template-specs/cacti-template.spec:1.11	Wed Apr 14 17:26:00 2010
+++ template-specs/cacti-template.spec	Thu Apr 15 08:39:37 2010
@@ -9,8 +9,8 @@
 Source0:	http://mirror.cactiusers.org/downloads/templates/%{namesrc}-%{version}.zip
 # Source0-md5:
 URL:		http://www.cactiusers.org/
-Requires:	cacti >= 0.8.6j
-Requires:	cacti-add_template
+BuildRequires:	rpmbuild(macros) >= 1.554
+Requires:	cacti >= 0.8.7e-8
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -35,10 +35,10 @@
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{resourcedir},%{scriptsdir}}
 cp -a *.xml $RPM_BUILD_ROOT%{resourcedir}
-install *.php $RPM_BUILD_ROOT%{scriptsdir}
+install -p *.php $RPM_BUILD_ROOT%{scriptsdir}
 
 %post
-%{_sbindir}/cacti-add_template %{resourcedir}/TEMPLATE_NAME.xml
+%cacti_import_template %{resourcedir}/TEMPLATE_NAME.xml
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -55,6 +55,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.12  2010/04/15 06:39:37  glen
+- use new template install method
+
 Revision 1.11  2010/04/14 15:26:00  glen
 - those are mostly templates, not plugins
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/template-specs/cacti-template.spec?r1=1.11&r2=1.12&f=u



More information about the pld-cvs-commit mailing list