]> git.pld-linux.org Git - packages/php.git/commitdiff
fix phar manual packaging
authorElan Ruusamäe <glen@delfi.ee>
Sun, 31 Jan 2016 13:05:46 +0000 (15:05 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 31 Jan 2016 13:05:51 +0000 (15:05 +0200)
phar.1 and phar.phar.1 are links
pharXY.1 is the real man page

php.spec

index 71a7b8a68eb3835f5b3b2af413b8bb3d924f8e36..9b3bc7bbaf6b080437084173b3e4edad7fe629d2 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -2526,9 +2526,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
 
 %if %{with posix}
This page took 0.041627 seconds and 4 git commands to generate.