From 3b6607d722687e8125672ab101d7d21a1015e42a Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Mon, 26 Nov 2007 14:42:46 +0000 Subject: [PATCH] - add dir entry for info page --- which-2.18-direntry.patch | 15 +++++++++++++++ which.spec | 8 +++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 which-2.18-direntry.patch diff --git a/which-2.18-direntry.patch b/which-2.18-direntry.patch new file mode 100644 index 0000000..4878e9e --- /dev/null +++ b/which-2.18-direntry.patch @@ -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 diff --git a/which.spec b/which.spec index 4dae0ff..678b72c 100644 --- a/which.spec +++ b/which.spec @@ -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 2.18-3 +- add dir entry for info page + * Tue Nov 20 2007 Than Ngo 2.18-2 - cleanup specfile