From: Elan Ruusamäe Date: Sun, 31 Jan 2016 13:05:46 +0000 (+0200) Subject: fix phar manual packaging X-Git-Tag: auto/th/php54-5.4.45-4~3 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=84d8a67fe3b8820944f9abb1bb656ac29bfaf551;p=packages%2Fphp.git fix phar manual packaging phar.1 and phar.phar.1 are links pharXY.1 is the real man page --- diff --git a/php.spec b/php.spec index 34673e3..6dac166 100644 --- a/php.spec +++ b/php.spec @@ -2418,9 +2418,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) @@ -3114,8 +3115,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