[packages/php/PHP_5_3] version phar files
glen
glen at pld-linux.org
Mon Sep 7 18:44:22 CEST 2015
commit a5c289d1d0b846d7b6a48539cb1bd60bd952fe23
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Sep 7 17:27:30 2015 +0300
version phar files
php.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/php.spec b/php.spec
index 25449cd..0e1e4c0 100644
--- a/php.spec
+++ b/php.spec
@@ -2545,8 +2545,10 @@ 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
# 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)
@@ -3268,7 +3270,7 @@ 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
%endif
%files posix
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/a5c289d1d0b846d7b6a48539cb1bd60bd952fe23
More information about the pld-cvs-commit
mailing list