]> git.pld-linux.org Git - packages/php-bartlett-PHP_Reflect.git/commitdiff
specify php min version
authorElan Ruusamäe <glen@delfi.ee>
Sun, 19 Apr 2015 12:17:57 +0000 (15:17 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 19 Apr 2015 12:17:57 +0000 (15:17 +0300)
php-bartlett-PHP_Reflect.spec

index 6d16bf90c669e72c77e7b390f3a2ca89aa6c6eb9..464b1091acca12d0138282d5c23ccd5c1b2f1869 100644 (file)
@@ -1,5 +1,6 @@
 %define                status          stable
 %define                pearname        PHP_Reflect
+%define                php_min_version 5.2.0
 %include       /usr/lib/rpm/macros.php
 Summary:       %{pearname} - Adds the ability to reverse-engineer classes, interfaces, functions, constants, namespaces, traits and more
 Name:          php-bartlett-PHP_Reflect
@@ -15,6 +16,7 @@ BuildRequires:        php-packagexml2cl
 BuildRequires: php-pear-PEAR
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
 BuildRequires: rpmbuild(macros) >= 1.610
+Requires:      php(core) >= %{php_min_version}
 Requires:      php(pcre)
 Requires:      php(spl)
 Requires:      php(tokenizer)
@@ -24,8 +26,6 @@ Suggests:     php-phpunit-PHPUnit
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _sysconfdir     %(pear config-get cfg_dir 2>/dev/null || ERROR)/%{pearname}
-
 # exclude optional dependencies
 %define                _noautoreq_pear PHPUnit.*
 
This page took 1.086062 seconds and 4 git commands to generate.