[packages/php-pecl-tidy] support building for multiple php versions
glen
glen at pld-linux.org
Fri Jun 21 19:27:26 CEST 2013
commit 9f6b276670c3d8379ee83870d9d9f95792a18fe8
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Jun 21 20:18:41 2013 +0300
support building for multiple php versions
php-pecl-tidy.spec | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/php-pecl-tidy.spec b/php-pecl-tidy.spec
index b12cc77..4384de6 100644
--- a/php-pecl-tidy.spec
+++ b/php-pecl-tidy.spec
@@ -1,9 +1,9 @@
+%define php_name php%{?php_suffix}
%define modname tidy
-%define php_sysconfdir /etc/php
-%define extensionsdir %(php-config --extension-dir 2>/dev/null)
+%define php_extensiondir %(php-config --extension-dir 2>/dev/null)
Summary: %{modname} - Tidy HTML Repairing and Parsing
Summary(pl.UTF-8): %{modname} - Czyszczenie, naprawa oraz parsowanie HTML
-Name: php-pecl-%{modname}
+Name: %{php_name}-pecl-%{modname}
Version: 1.2
Release: 1
License: PHP
@@ -11,8 +11,8 @@ Group: Development/Languages/PHP
Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: 8c1c92d9386c56d483b1115d207c0293
URL: http://pecl.php.net/package/tidy/
-BuildRequires: php-devel >= 4:5.0.4
-BuildRequires: rpmbuild(macros) >= 1.519
+BuildRequires: %{php_name}-devel >= 4:5.0.4
+BuildRequires: rpmbuild(macros) >= 1.650
BuildRequires: tidy-devel
%{?requires_php_extension}
Obsoletes: php-pear-%{modname}
@@ -65,4 +65,4 @@ fi
%defattr(644,root,root,755)
%doc CREDITS TODO README
%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
-%attr(755,root,root) %{extensionsdir}/%{modname}.so
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-tidy.git/commitdiff/9f6b276670c3d8379ee83870d9d9f95792a18fe8
More information about the pld-cvs-commit
mailing list