From 965695c3c6eb269b4e94955492824b4244b96a39 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 7 Sep 2015 17:27:30 +0300 Subject: [PATCH] version phar files --- php.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/php.spec b/php.spec index c983132..13b22b4 100644 --- a/php.spec +++ b/php.spec @@ -2416,8 +2416,11 @@ cp -pf Makefile.cli Makefile phpbuilddir=%{_libdir}/%{name}/build \ INSTALL_ROOT=$RPM_BUILD_ROOT +# version the .phar files +mv $RPM_BUILD_ROOT%{_bindir}/phar{,%{ver_suffix}}.phar +mv $RPM_BUILD_ROOT%{_mandir}/man1/phar{,%{ver_suffix}}.phar.1 # make link relative -ln -sfn phar.phar $RPM_BUILD_ROOT%{_bindir}/phar +ln -sfn phar%{ver_suffix}.phar $RPM_BUILD_ROOT%{_bindir}/phar # version suffix v=$(echo %{version} | cut -d. -f1-2) @@ -3104,9 +3107,9 @@ fi %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini %attr(755,root,root) %{php_extensiondir}/phar.so %attr(755,root,root) %{_bindir}/phar -%attr(755,root,root) %{_bindir}/phar.phar +%attr(755,root,root) %{_bindir}/phar%{ver_suffix}.phar %{_mandir}/man1/phar.1* -%{_mandir}/man1/phar.phar.1 +%{_mandir}/man1/phar%{ver_suffix}.phar.1 %endif %files posix -- 2.44.0