[packages/php/PHP_5_5] version phar files
glen
glen at pld-linux.org
Mon Sep 7 16:28:00 CEST 2015
commit 513e5b2c940b5f974ef9da025344e1f65f22e852
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Sep 7 17:27:30 2015 +0300
version phar files
php.spec | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/php.spec b/php.spec
index 55729fb..1d2f16b 100644
--- a/php.spec
+++ b/php.spec
@@ -2534,8 +2534,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)
@@ -3246,9 +3249,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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/513e5b2c940b5f974ef9da025344e1f65f22e852
More information about the pld-cvs-commit
mailing list