mirror of
https://github.com/YellowJacketLinux/LFS.git
synced 2025-02-02 23:07:14 +08:00
use insinfo macro for install-info
This commit is contained in:
parent
fd98b32b9c
commit
85dff34388
@ -1,6 +1,13 @@
|
||||
# Many (most?) distributions put install-info in /{,usr/}sbin
|
||||
# YJL defines this macro to /usr/bin/install-info
|
||||
# so define it to be in /sbin/ if not defined.
|
||||
%if %{!?insinfo:1}%{?insinfo:0}
|
||||
%global insinfo /sbin/install-info
|
||||
%endif
|
||||
|
||||
Name: dejagnu
|
||||
Version: 1.6.3
|
||||
Release: %{?repo}0.rc1%{?dist}
|
||||
Release: %{?repo}0.rc2%{?dist}
|
||||
Summary: Framework for testing other programs
|
||||
|
||||
Group: Development/Testing
|
||||
@ -12,6 +19,8 @@ BuildArch: noarch
|
||||
BuildRequires: expect-devel
|
||||
BuildRequires: tcl-devel
|
||||
Requires: expect
|
||||
Requires(post): %{insinfo}
|
||||
Requires(preun): %{insinfo}
|
||||
|
||||
%description
|
||||
DejaGnu is a framework for testing other programs. Its purpose is to
|
||||
@ -54,11 +63,11 @@ make check > %{name}-make.check.log 2>&1
|
||||
|
||||
|
||||
%post
|
||||
%{_bindir}/install-info %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
||||
%{insinfo} %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
||||
|
||||
%preun
|
||||
if [ $1 = 0 ]; then
|
||||
%{_bindir}/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
||||
%{insinfo} --delete %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
||||
fi
|
||||
|
||||
|
||||
@ -80,5 +89,8 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Apr 12 2023 Michael A. Peters <anymouseprophet@gmail.com> - 1.6.3-0.rc2
|
||||
- Use %%{insinfo} macro.
|
||||
|
||||
* Tue Apr 04 2023 Michael A. Peters <anymouseprophet@gmail.com> - 1.6.3-0.rc1
|
||||
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|
||||
|
Loading…
Reference in New Issue
Block a user