template-specs: php-package.spec - some new macros around there
glen
glen at pld-linux.org
Wed Feb 3 11:00:19 CET 2010
Author: glen Date: Wed Feb 3 10:00:19 2010 GMT
Module: template-specs Tag: HEAD
---- Log message:
- some new macros around there
---- Files affected:
template-specs:
php-package.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: template-specs/php-package.spec
diff -u template-specs/php-package.spec:1.3 template-specs/php-package.spec:1.4
--- template-specs/php-package.spec:1.3 Wed Feb 3 10:57:52 2010
+++ template-specs/php-package.spec Wed Feb 3 11:00:14 2010
@@ -1,4 +1,10 @@
# $Revision$, $Date$
+%if %{with phpdeps}
+%include /usr/lib/rpm/macros.php
+%endif
+# new php based depsolver will look into this macro, however it works in static
+# manner too.
+%define php_min_version 5.0.0
Summary: -
Name: template
Version: _
@@ -8,8 +14,12 @@
Source0: %{name}-%{version}.tar.gz
# Source0-md5: -
URL: -
+%if %{with phpdeps}
+BuildRequires: /usr/bin/php
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
+%endif
BuildRequires: rpmbuild(macros) >= 1.461
-Requires: php-common
+Requires: php-common >= 4:%{php_min_version}
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -18,6 +28,15 @@
# _phpdocdir / php_docdir / phpdoc_dir ?
%define _phpdocdir %{_docdir}/phpdoc
+# bad depsolver
+%define _noautopear pear(class.template.php) pear(/etc/webapps/template/config.php)
+
+# exclude optional php dependencies
+%define _noautophp php-bzip2 php-bcmath php-zip php-date php-ftp php-hash php-ldap php-mbstring php-mysql php-pgsql php-tokenizer
+
+# put it together for rpmbuild
+%define _noautoreq %{?_noautophp} %{?_noautopear}
+
%description
...
@@ -81,6 +100,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2010/02/03 10:00:14 glen
+- some new macros around there
+
Revision 1.3 2010/02/03 09:57:52 glen
- examples
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/template-specs/php-package.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list