- add dir entry for info page

This commit is contained in:
Karsten Hopp 2007-11-26 14:42:46 +00:00
parent b49882f1e4
commit 3b6607d722
2 changed files with 22 additions and 1 deletions

15
which-2.18-direntry.patch Normal file
View File

@ -0,0 +1,15 @@
diff -up which-2.18/which.texinfo.direntry which-2.18/which.texinfo
--- which-2.18/which.texinfo.direntry 2007-11-26 15:37:28.000000000 +0100
+++ which-2.18/which.texinfo 2007-11-26 15:39:09.000000000 +0100
@@ -43,6 +43,11 @@ original English.
@c !END COPYING
@end ifinfo
+@dircategory Individual utilities
+@direntry
+* which: (which)which invocation. Shows the full path of commands
+@end direntry
+
@titlepage
@title Which
@subtitle Show the full path of commands

View File

@ -1,7 +1,7 @@
Summary: Displays where a particular program in your path is located
Name: which
Version: 2.18
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv2
Group: Applications/System
Source0: http://www.xs4all.nl/~carlo17/which/%{name}-%{version}.tar.gz
@ -10,6 +10,7 @@ Source2: which-2.csh
Url: http://www.xs4all.nl/~carlo17/which/
Patch: which-2.13-afs.patch
Patch1: which-2.14-broken.patch
Patch2: which-2.18-direntry.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(preun): /sbin/install-info
Requires(post): /sbin/install-info
@ -23,6 +24,7 @@ the specified program is in your PATH.
%patch -p1 -b .afs
%patch1 -p1 -b .broken
%patch2 -p1 -b .direntry
%build
%configure
@ -36,6 +38,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
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
@ -57,6 +60,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/*/*
%changelog
* Mon Nov 26 2007 Karsten Hopp <karsten@redhat.com> 2.18-3
- add dir entry for info page
* Tue Nov 20 2007 Than Ngo <than@redhat.com> 2.18-2
- cleanup specfile