]> git.pld-linux.org Git - packages/php-pecl-idn.git/commitdiff
support building for multiple php versions
authorElan Ruusamäe <glen@delfi.ee>
Fri, 21 Jun 2013 17:18:38 +0000 (20:18 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 21 Jun 2013 17:18:38 +0000 (20:18 +0300)
php-pecl-idn.spec

index 1effade1131a3f38fce59d877826684d9b535219..e1f54ad1d07ab3e4e1a86be0d1413c46ad14471d 100644 (file)
@@ -1,8 +1,9 @@
+%define                php_name        php%{?php_suffix}
 %define                modname idn
 %define                status  beta
 Summary:       %{modname} - binding to the GNU libidn
 Summary(pl.UTF-8):     %{modname} - wiązanie do GNU libidn
-Name:          php-pecl-idn
+Name:          %{php_name}-pecl-idn
 Version:       0.2.0
 Release:       2
 License:       PHP 3.0
@@ -10,11 +11,11 @@ Group:              Development/Languages/PHP
 Source0:       http://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5: f42dadf9b15bfc897458ff8735f05f78
 URL:           http://pecl.php.net/package/idn/
+BuildRequires: %{php_name}-devel >= 3:5.0.0
 BuildRequires: libidn-devel
-BuildRequires: php-devel >= 3:5.0.0
-BuildRequires: rpmbuild(macros) >= 1.344
+BuildRequires: rpmbuild(macros) >= 1.650
 %{?requires_php_extension}
-Requires:      php-common >= 4:5.0.4
+Requires:      php(core) >= 5.0.4
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
This page took 0.079849 seconds and 4 git commands to generate.