Re: installation of info files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-07-13 at 12:51 +0200, Ralf Corsepius wrote:

> Introducing such macros is a double sided sword:
[...]

Agreed.

Regarding the case at hand, in case someone's thinking about submitting
an RFE somewhere, FWIW Mandriva has had macros for installing and
removing info files for a long time, they're defined as:

%__install_info         /sbin/install-info

%_extension             .bz2

%_install_info()        if [[ -f %{_infodir}/%{1}%{_extension} ]];then %{__install_info} %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir;fi \
%{nil}

%_remove_install_info() if [ "$1" = "0" ]; then if [[ -f %{_infodir}/%{1}%{_extension} ]];then %{__install_info} %{_infodir}/%{1}%{_extension} --dir=%{_infodir}/dir --remove ;fi; fi \
%{nil}

The naming (%_extension, %_remove_install_info) is unfortunate and other
nitpicks could be said, but perhaps these are useful as a starting
point.


--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux