]> git.pld-linux.org Git - packages/php-pecl-translit.git/commitdiff
macros for building for other php versions
authorElan Ruusamäe <glen@delfi.ee>
Wed, 1 Aug 2012 20:20:47 +0000 (23:20 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 1 Aug 2012 20:20:47 +0000 (23:20 +0300)
use --define 'php_suffix 54' to build for php 5.4

php-pecl-translit.spec

index 23b6989ba468a47192f41d14521b49ff1a5af8d5..b5e0d2a265598d67c29d6c2e82bcdaeeaedd18f7 100644 (file)
@@ -1,8 +1,9 @@
+%define                php_name        php%{?php_suffix}
 %define                status          beta
 %define                modname         translit
 Summary:       %{modname} - transliterates non-latin character sets to latin
 Summary(pl.UTF-8):     %{modname} - translitacja alfabetów niełacińskich do łacińskiego
-Name:          php-pecl-%{modname}
+Name:          %{php_name}-pecl-%{modname}
 Version:       0.6.1
 Release:       1
 License:       PHP
@@ -11,11 +12,11 @@ Source0:    http://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5: 67bdee44c3dbcc3ab7ee39329da8e010
 URL:           http://pecl.php.net/package/translit/
 BuildRequires: libtool
-BuildRequires: php-devel >= 3:5.0.0
+BuildRequires: %{php_name}-devel >= 3:5.0.0
 BuildRequires: rpmbuild(macros) >= 1.344
 %{?requires_php_extension}
-Requires:      php-common >= 4:5.0.4
-Requires:      php-iconv
+Requires:      %{php_name}-common >= 4:5.0.4
+Requires:      %{php_name}-iconv
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
This page took 0.065971 seconds and 4 git commands to generate.