]> git.pld-linux.org Git - packages/php.git/commitdiff
version php apache module.
authorElan Ruusamäe <glen@delfi.ee>
Wed, 23 Jan 2013 16:12:12 +0000 (18:12 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 23 Jan 2013 17:57:20 +0000 (19:57 +0200)
making it easier to "switch" php versions (force install and replace
symlink) having multiple mod_php packages installed

php.spec

index 4aa85028ada268bf4f7c05cadbec24125094e78e..d50f93b686fc0ba72578f20aed0a02b0f19157f0 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -2398,11 +2398,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
@@ -2674,6 +2678,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}
@@ -2683,6 +2688,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}
This page took 0.12806 seconds and 4 git commands to generate.