[packages/php/PHP_5_5] fix phar manual packaging

glen glen at pld-linux.org
Sun Jan 31 14:07:17 CET 2016


commit 2744a4b9bdc5c6ce754eab8ad6a1639ca6e80e82
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jan 31 15:05:46 2016 +0200

    fix phar manual packaging
    
    phar.1 and phar.phar.1 are links
    pharXY.1 is the real man page

 php.spec | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/php.spec b/php.spec
index d5f8dcd..5f29285 100644
--- a/php.spec
+++ b/php.spec
@@ -2537,9 +2537,10 @@ cp -pf Makefile.cli Makefile
 
 # version the .phar files
 mv $RPM_BUILD_ROOT%{_bindir}/phar{,%{ver_suffix}}.phar
-mv $RPM_BUILD_ROOT%{_mandir}/man1/phar{,%{ver_suffix}}.phar.1
+mv $RPM_BUILD_ROOT%{_mandir}/man1/phar{,%{ver_suffix}}.1
 # make link relative
 ln -sfn phar%{ver_suffix}.phar $RPM_BUILD_ROOT%{_bindir}/phar
+ln -sfn phar%{ver_suffix}.1 $RPM_BUILD_ROOT%{_mandir}/man1/phar.1
 
 # version suffix
 v=$(echo %{version} | cut -d. -f1-2)
@@ -3257,8 +3258,9 @@ fi
 %attr(755,root,root) %{php_extensiondir}/phar.so
 %attr(755,root,root) %{_bindir}/phar
 %attr(755,root,root) %{_bindir}/phar%{ver_suffix}.phar
-%{_mandir}/man1/phar.1*
-%{_mandir}/man1/phar%{ver_suffix}.phar.1
+%{_mandir}/man1/phar.1
+%{_mandir}/man1/phar.phar.1
+%{_mandir}/man1/phar%{ver_suffix}.1*
 %endif
 
 %files posix
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/2744a4b9bdc5c6ce754eab8ad6a1639ca6e80e82



More information about the pld-cvs-commit mailing list