[packages/php] version php apache module.

glen glen at pld-linux.org
Wed Jan 23 17:34:38 CET 2013


commit be02dcc491b35a51ceb915192d3b09fbaa5c5bf7
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 a876e1f..e6c2b01 100644
--- a/php.spec
+++ b/php.spec
@@ -2405,11 +2405,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
@@ -2689,6 +2693,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}
@@ -2698,6 +2703,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/be02dcc491b35a51ceb915192d3b09fbaa5c5bf7



More information about the pld-cvs-commit mailing list