[packages/php/PHP_5_4] version php apache module.
glen
glen at pld-linux.org
Wed Jan 23 18:55:23 CET 2013
commit 3703aac7f558ac1bd3a6336b4a77d0abb9f04461
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Jan 23 18:12:12 2013 +0200
version php apache module.
making it easier to "switch" php versions (force install and replace
symlink) having multiple mod_php packages installed
php.spec | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/php.spec b/php.spec
index e4938a6..edfe882 100644
--- a/php.spec
+++ b/php.spec
@@ -2395,11 +2395,15 @@ ln -sfn phar.phar $RPM_BUILD_ROOT%{_bindir}/phar
# install Apache1 DSO module
%if %{with apache1}
libtool --mode=install install -p sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
+mv $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5{,-%{version}}.so
+ln -s libphp5-%{version}.so $RPM_BUILD_ROOT%{_libdir}/apache1/libphp5.so
%endif
# install Apache2 DSO module
%if %{with apache2}
libtool --mode=install install -p sapi/apache2handler/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache
+mv $RPM_BUILD_ROOT%{_libdir}/apache/libphp5{,-%{version}}.so
+ln -s libphp5-%{version}.so $RPM_BUILD_ROOT%{_libdir}/apache/libphp5.so
%endif
# install litespeed sapi
@@ -2671,6 +2675,7 @@ fi
%dir %{_sysconfdir}/apache.d
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache.ini
%attr(755,root,root) %{_libdir}/apache1/libphp5.so
+%attr(755,root,root) %{_libdir}/apache1/libphp5-%{version}.so
%endif
%if %{with apache2}
@@ -2680,6 +2685,7 @@ fi
%dir %{_sysconfdir}/apache2handler.d
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/php-apache2handler.ini
%attr(755,root,root) %{_libdir}/apache/libphp5.so
+%attr(755,root,root) %{_libdir}/apache/libphp5-%{version}.so
%endif
%if %{with litespeed}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/3703aac7f558ac1bd3a6336b4a77d0abb9f04461
More information about the pld-cvs-commit
mailing list