all binaries in /usr/bin with zts suffix per FPC request

This commit is contained in:
remi 2012-01-25 21:43:09 +01:00
parent 28750bd318
commit 9f2aa9e585
2 changed files with 13 additions and 10 deletions

View File

@ -15,5 +15,4 @@
%php_ztsincldir %{_includedir}/php-zts/php %php_ztsincldir %{_includedir}/php-zts/php
%__php %{_bindir}/php %__php %{_bindir}/php
%php_bindir %{_bindir} %__ztsphp %{_bindir}/php-zts
%php_ztsbindir %{_bindir}/php-zts

View File

@ -40,7 +40,7 @@
Summary: PHP scripting language for creating dynamic web sites Summary: PHP scripting language for creating dynamic web sites
Name: php Name: php
Version: 5.4.0 Version: 5.4.0
Release: 0.1.%{rcver}%{?dist} Release: 0.2.%{rcver}%{?dist}
License: PHP License: PHP
Group: Development/Languages Group: Development/Languages
URL: http://www.php.net/ URL: http://www.php.net/
@ -819,7 +819,6 @@ pushd build-ztscli
EXTENSION_DIR=%{_libdir}/php-zts/modules EXTENSION_DIR=%{_libdir}/php-zts/modules
build --enable-force-cgi-redirect \ build --enable-force-cgi-redirect \
--bindir=%{_bindir}/php-zts \
--includedir=%{_includedir}/php-zts \ --includedir=%{_includedir}/php-zts \
--libdir=%{_libdir}/php-zts \ --libdir=%{_libdir}/php-zts \
--enable-maintainer-zts \ --enable-maintainer-zts \
@ -880,7 +879,6 @@ popd
# Build a special thread-safe Apache SAPI # Build a special thread-safe Apache SAPI
pushd build-zts pushd build-zts
build --with-apxs2=%{_sbindir}/apxs \ build --with-apxs2=%{_sbindir}/apxs \
--bindir=%{_bindir}/php-zts \
--includedir=%{_includedir}/php-zts \ --includedir=%{_includedir}/php-zts \
--libdir=%{_libdir}/php-zts \ --libdir=%{_libdir}/php-zts \
--enable-maintainer-zts \ --enable-maintainer-zts \
@ -934,6 +932,11 @@ mv $RPM_BUILD_ROOT%{_libdir}/php-zts/modules/pdo_mysql.so \
make -C build-zts install-modules \ make -C build-zts install-modules \
INSTALL_ROOT=$RPM_BUILD_ROOT INSTALL_ROOT=$RPM_BUILD_ROOT
# rename ZTS binary
mv $RPM_BUILD_ROOT%{_bindir}/php $RPM_BUILD_ROOT%{_bindir}/php-zts
mv $RPM_BUILD_ROOT%{_bindir}/phpize $RPM_BUILD_ROOT%{_bindir}/phpize-zts
mv $RPM_BUILD_ROOT%{_bindir}/php-config $RPM_BUILD_ROOT%{_bindir}/php-config-zts
# Install the version for embedded script language in applications + php_embed.h # Install the version for embedded script language in applications + php_embed.h
make -C build-embedded install-sapi install-headers \ make -C build-embedded install-sapi install-headers \
INSTALL_ROOT=$RPM_BUILD_ROOT INSTALL_ROOT=$RPM_BUILD_ROOT
@ -1079,8 +1082,6 @@ install -m 644 -c macros.php \
rm -rf $RPM_BUILD_ROOT%{_libdir}/php/modules/*.a \ rm -rf $RPM_BUILD_ROOT%{_libdir}/php/modules/*.a \
$RPM_BUILD_ROOT%{_libdir}/php-zts/modules/*.a \ $RPM_BUILD_ROOT%{_libdir}/php-zts/modules/*.a \
$RPM_BUILD_ROOT%{_bindir}/{phptar} \ $RPM_BUILD_ROOT%{_bindir}/{phptar} \
$RPM_BUILD_ROOT%{_bindir}/php-zts/phar* \
$RPM_BUILD_ROOT%{_bindir}/php-zts/php-cgi \
$RPM_BUILD_ROOT%{_datadir}/pear \ $RPM_BUILD_ROOT%{_datadir}/pear \
$RPM_BUILD_ROOT%{_libdir}/libphp5.la $RPM_BUILD_ROOT%{_libdir}/libphp5.la
@ -1187,10 +1188,10 @@ fi
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/php-config %{_bindir}/php-config
%{_bindir}/php-zts/php-config %{_bindir}/php-config-zts
%{_bindir}/php-zts/phpize %{_bindir}/phpize-zts
# usefull only to test other module during build # usefull only to test other module during build
%{_bindir}/php-zts/php %{_bindir}/php-zts
%{_includedir}/php %{_includedir}/php
%{_includedir}/php-zts %{_includedir}/php-zts
%{_libdir}/php/build %{_libdir}/php/build
@ -1232,6 +1233,9 @@ fi
%changelog %changelog
* Wed Jan 25 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-0.2.RC6
- all binaries in /usr/bin with zts suffix
* Wed Jan 18 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-0.1.RC6 * Wed Jan 18 2012 Remi Collet <remi@fedoraproject.org> 5.4.0-0.1.RC6
- update to PHP 5.4.0RC6 - update to PHP 5.4.0RC6
https://fedoraproject.org/wiki/Features/Php54 https://fedoraproject.org/wiki/Features/Php54