Browse Source

Complete help2man hack (which would otherwise install an empty manpage) by using the native distribution manpage

Michael Schloh von Bennewitz 22 years ago
parent
commit
578db89a23
1 changed files with 2 additions and 1 deletions
  1. 2 1
      flex/flex.spec

+ 2 - 1
flex/flex.spec

@@ -94,6 +94,7 @@ AutoReqProv:  no
       ./configure \
           --prefix=%{l_prefix} \
           --disable-nls
+      cp -rp doc/flex.1 doc/flex.1.saved
       %{l_make} %{l_mflags}
     ) || exit $?
 %endif
@@ -111,7 +112,7 @@ AutoReqProv:  no
          $RPM_BUILD_ROOT%{l_prefix}/include/FlexLexer-beta.h
       mv $RPM_BUILD_ROOT%{l_prefix}/lib/libfl.a \
          $RPM_BUILD_ROOT%{l_prefix}/lib/libfl-beta.a
-      mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/flex.1 \
+      mv doc/flex.1.saved \
          $RPM_BUILD_ROOT%{l_prefix}/man/man1/flex-beta.1
     ) || exit $?
 %endif