From 12357d4c0ff2c5889d8a6498505bbeaab4e0ebb1 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Feb 10 2018 18:32:23 +0000 Subject: generate info/dir on the fly Signed-off-by: Igor Gnatenko --- diff --git a/info-dir b/info-dir deleted file mode 100644 index 1c4d362..0000000 --- a/info-dir +++ /dev/null @@ -1,22 +0,0 @@ -$Id: dir,v 1.2 1996/09/24 18:43:01 karl Exp $ -This is the file .../info/dir, which contains the topmost node of the -Info hierarchy. The first time you invoke Info you start off -looking at that node, which is (dir)Top. - -File: dir Node: Top This is the top of the INFO tree - - This (the Directory node) gives a menu of major topics. - Typing "q" exits, "?" lists all Info commands, "d" returns here, - "h" gives a primer for first-timers, - "mEmacs" visits the Emacs topic, etc. - - In Emacs, you can click mouse button 2 on a menu item or cross reference - to select it. - -* Menu: - -Texinfo documentation system -* Info: (info). Documentation browsing system. - -Miscellaneous -* bash: (bash). The Bourne Again Shell. diff --git a/texinfo.spec b/texinfo.spec index 630eb0a..577859b 100644 --- a/texinfo.spec +++ b/texinfo.spec @@ -8,7 +8,6 @@ License: GPLv3+ Url: http://www.gnu.org/software/texinfo/ Source0: ftp://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.xz Source1: ftp://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.xz.sig -Source2: info-dir # Source5: macro definitions Source5: macros.info Patch0: texinfo-4.12-zlib.patch @@ -76,7 +75,6 @@ mkdir -p ${RPM_BUILD_ROOT}/sbin mkdir -p $RPM_BUILD_ROOT%{tex_texinfo} install -p -m644 doc/texinfo.tex doc/txi-??.tex $RPM_BUILD_ROOT%{tex_texinfo} -install -p -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_infodir}/dir mv $RPM_BUILD_ROOT%{_bindir}/install-info $RPM_BUILD_ROOT/sbin install -Dpm0755 -t %{buildroot}%{_sbindir} contrib/fix-info-dir @@ -98,7 +96,7 @@ export ALL_TESTS=yes %{_bindir}/texconfig-sys rehash 2> /dev/null || : %transfiletriggerin -n info -- %{_infodir} -%{_sbindir}/fix-info-dir %{_infodir}/dir +%{_sbindir}/fix-info-dir --create %{_infodir}/dir %transfiletriggerpostun -n info -- %{_infodir} %{_sbindir}/fix-info-dir --delete %{_infodir}/dir @@ -117,7 +115,6 @@ export ALL_TESTS=yes %{_mandir}/man1/pod2texi.1* %files -n info -%config(noreplace) %verify(not md5 size mtime) %{_infodir}/dir %license COPYING %{_bindir}/info %{_infodir}/info-stnd.info* @@ -127,6 +124,8 @@ export ALL_TESTS=yes %{_mandir}/man1/install-info.1* %{_mandir}/man5/info.5* %{_rpmconfigdir}/macros.d/macros.info +%ghost %{_infodir}/dir +%ghost %{_infodir}/dir.old %files tex %{_bindir}/texindex