]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
- updated
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 30 Oct 2011 20:58:41 +0000 (20:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-template.spec -> 1.13

cacti-template.spec

index ea06c37e44498cf3ca078fbc60e71b10b0cab50d..e2bcd97f5e9359ea065f1dccac451f046ae6cdca 100644 (file)
@@ -1,4 +1,8 @@
+# NOTE: existing plugins http://forums.cacti.net/viewtopic.php?t=14985
+# NOTE: existing templates http://forums.cacti.net/viewtopic.php?p=161928
 %define                template TEMPLATE_NAME
+%define                php_min_version 5.0.0
+%include       /usr/lib/rpm/macros.php
 Summary:       Template for Cacti -
 Name:          cacti-template-%{template}
 Version:       0.1
@@ -8,8 +12,12 @@ Group:                Applications/WWW
 Source0:       http://mirror.cactiusers.org/downloads/templates/%{namesrc}-%{version}.zip
 # Source0-md5:
 URL:           http://www.cactiusers.org/
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
 BuildRequires: rpmbuild(macros) >= 1.554
+# for %%undos macro
+BuildRequires: rpmbuild(macros) >= 1.553
 Requires:      cacti >= 0.8.7e-8
+Requires:      php-common >= 4:%{php_min_version}
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -26,9 +34,9 @@ Template for Cacti -
 %prep
 %setup -q -c
 %setup -q -n cacti-%{template}-%{version}
+mv %{plugin}/{LICENSE,README} .
 
-# undos the source
-find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
+%undos -f php,inc
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.038483 seconds and 4 git commands to generate.