remove install-info
Those are not needed as per guidelines. Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
a723e62ca0
commit
20982793aa
23
which.spec
23
which.spec
@ -9,8 +9,6 @@ Source2: which2.csh
|
||||
Url: https://savannah.gnu.org/projects/which/
|
||||
BuildRequires: gcc
|
||||
BuildRequires: readline-devel
|
||||
Requires(preun): /sbin/install-info
|
||||
Requires(post): /sbin/install-info
|
||||
|
||||
%description
|
||||
The which command shows the full pathname of a specified program, if
|
||||
@ -21,33 +19,22 @@ the specified program is in your PATH.
|
||||
|
||||
%build
|
||||
%configure
|
||||
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
%make_install
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
||||
install -p -m 644 %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
%post
|
||||
/sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/which.info.gz
|
||||
exit 0
|
||||
|
||||
%preun
|
||||
if [ $1 = 0 ]; then
|
||||
/sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/which.info.gz
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc EXAMPLES README AUTHORS NEWS
|
||||
%attr(0644,root,root) %{_sysconfdir}/profile.d/which2.*
|
||||
%{_bindir}/*
|
||||
%{_infodir}/which.info.gz
|
||||
%{_mandir}/*/*
|
||||
%{_bindir}/which
|
||||
%{_infodir}/which.info*
|
||||
%{_mandir}/man1/which.1*
|
||||
|
||||
%changelog
|
||||
* Fri Feb 16 2018 Jason L Tibbitts III <tibbs@math.uh.edu> - 2.21-8
|
||||
|
Loading…
Reference in New Issue
Block a user