X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=php.spec;h=e1bb1384c6580b4d1d569c2df7304839abe470b1;hb=5cd28683d5826d4a6349d63c819637aba6d793bd;hp=dbc89eb675571b5ddba559dce066e305b84730c7;hpb=39e986c65fa4422cb6d10c677e5959a2dbc9b7c4;p=packages%2Fphp.git diff --git a/php.spec b/php.spec index dbc89eb..e1bb138 100644 --- a/php.spec +++ b/php.spec @@ -135,7 +135,7 @@ ERROR: You need to select at least one Apache SAPI to build shared modules. %undefine with_filter %endif -%define rel 0.1 +%define rel 1 %define orgname php %define ver_suffix 56 %define php_suffix %{!?with_default_php:%{ver_suffix}} @@ -2626,8 +2626,15 @@ cp -p sapi/embed/php_embed.h $RPM_BUILD_ROOT%{_includedir}/php/sapi/embed # versioned suffix is always installed libtool --mode=install install -p sapi/cli/php $RPM_BUILD_ROOT%{_bindir}/php%{ver_suffix} cp -p sapi/cli/php.1 $RPM_BUILD_ROOT%{_mandir}/man1/php%{ver_suffix}.1 + +%if %{with default_php} +# man for php echo ".so php%{ver_suffix}.1" >$RPM_BUILD_ROOT%{_mandir}/man1/php.1 +# link as /usr/bin/php ln -sf php%{ver_suffix} $RPM_BUILD_ROOT%{_bindir}/php +# php.cli link for backward compatibility +ln -sf php $RPM_BUILD_ROOT%{_bindir}/php.cli +%endif cp -p php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini