SPECS: openssl.spec - rel 4; use groff symlink for config.5 x509v3...

Elan Ruusamäe glen at pld-linux.org
Fri Oct 19 09:57:20 CEST 2007


On Friday 19 October 2007 01:32, areq wrote:
> -rm $RPM_BUILD_ROOT%{_mandir}/man7/des_modes.7
> +rm
> $RPM_BUILD_ROOT%{_mandir}{/man7/des_modes.7,/man5/config.5,/man5/x509v3_con
>fig.5} echo ".so openssl_des_modes.7" >
> $RPM_BUILD_ROOT%{_mandir}/man7/des_modes.7 +echo ".so openssl_config.5" >
> $RPM_BUILD_ROOT%{_mandir}/man5/config.5 +echo ".so openssl_x509v3_config.5"
> > $RPM_BUILD_ROOT%{_mandir}/man5/x509v3_config.5
>
>  %clean
>  rm -rf $RPM_BUILD_ROOT
> @@ -437,6 +439,9 @@
>  All persons listed below can be reached at <cvs_login>@pld-linux.org
>
>  $Log$
> +Revision 1.177  2007/10/18 22:32:54  areq
> +- rel 4; use groff symlink for config.5 x509v3_config.5
> +

perhaps do this automatically in compress_man macro?
sth like (after decompressing .gz and before doing it again):

find %{_mandir} -type l | while read a; do
  l=$(readlink $a)
  rm -f a;
  echo ".so $(basename $l)" > $a
done

care must be taken when symlinks point to other .gz files.

-- 
glen


More information about the pld-devel-en mailing list