[packages/php-pecl-txforward] support building for multiple php versions
glen
glen at pld-linux.org
Fri Jun 21 19:27:36 CEST 2013
commit 7db132c7de6bcae6d6d4f93436459e8e8499884e
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-txforward.spec | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/php-pecl-txforward.spec b/php-pecl-txforward.spec
index 1aca850..0308485 100644
--- a/php-pecl-txforward.spec
+++ b/php-pecl-txforward.spec
@@ -1,17 +1,17 @@
-%define _modname txforward
-%define _status stable
-Summary: %{_modname} - Reverse Proxy (web accelerator) PHP compatibility layer
-#Summary(pl.UTF-8): %{_modname} -
-Name: php-pecl-%{_modname}
+%define php_name php%{?php_suffix}
+%define modname txforward
+%define status stable
+Summary: %{modname} - Reverse Proxy (web accelerator) PHP compatibility layer
+Name: %{php_name}-pecl-%{modname}
Version: 1.0.7
Release: 3
License: PHP 3.01
Group: Development/Languages/PHP
-Source0: http://pecl.php.net/get/%{_modname}-%{version}.tgz
+Source0: http://pecl.php.net/get/%{modname}-%{version}.tgz
# Source0-md5: 46b80b0f8acfeda5364d8e0812e0a34f
URL: http://pecl.php.net/package/txforward/
-BuildRequires: php-devel >= 3:5.0.0
-BuildRequires: rpmbuild(macros) >= 1.344
+BuildRequires: %{php_name}-devel >= 3:5.0.0
+BuildRequires: rpmbuild(macros) >= 1.650
%{?requires_php_extension}
Requires: php(core) >= 5.0.4
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,11 +28,11 @@ X-Forwarded-For IP.
Using this extension with on a non reverse proxied system will result
in a security issue.
-In PECL status of this extension is: %{_status}.
+In PECL status of this extension is: %{status}.
%prep
%setup -q -c
-mv %{_modname}-%{version}/* .
+mv %{modname}-%{version}/* .
%build
phpize
@@ -46,9 +46,9 @@ install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d
%{__make} install \
INSTALL_ROOT=$RPM_BUILD_ROOT \
EXTENSION_DIR=%{php_extensiondir}
-cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{_modname}.ini
-; Enable %{_modname} extension module
-extension=%{_modname}.so
+cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/%{modname}.ini
+; Enable %{modname} extension module
+extension=%{modname}.so
EOF
%clean
@@ -65,5 +65,5 @@ fi
%files
%defattr(644,root,root,755)
%doc CREDITS README
-%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{_modname}.ini
-%attr(755,root,root) %{php_extensiondir}/%{_modname}.so
+%config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/%{modname}.ini
+%attr(755,root,root) %{php_extensiondir}/%{modname}.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pecl-txforward.git/commitdiff/7db132c7de6bcae6d6d4f93436459e8e8499884e
More information about the pld-cvs-commit
mailing list