diff --git a/robodoc-4.99.43-helperror.patch b/robodoc-4.99.43-helperror.patch new file mode 100644 index 0000000..ea65322 --- /dev/null +++ b/robodoc-4.99.43-helperror.patch @@ -0,0 +1,12 @@ +diff -uNr robodoc-4.99.43/Source/robohdrs.c robodoc-4.99.43-new/Source/robohdrs.c +--- robodoc-4.99.43/Source/robohdrs.c 2015-04-12 01:28:57.000000000 +0800 ++++ robodoc-4.99.43-new/Source/robohdrs.c 2021-09-30 14:11:50.969300297 +0800 +@@ -289,7 +289,7 @@ + int ch; + custhdr_t *c, *nc; + +- while ( ( ch = getopt( argc, argv, "i:l:p:st:x:" ) ) != -1 ) ++ while ( ( ch = getopt( argc, argv, "hi:l:p:st:x:" ) ) != -1 ) + switch ( ch ) + { + diff --git a/robodoc.spec b/robodoc.spec index 426c13c..920cd0f 100644 --- a/robodoc.spec +++ b/robodoc.spec @@ -2,11 +2,12 @@ %global __perl_requires %{nil} Name: robodoc Version: 4.99.43 -Release: 1 +Release: 2 Summary: Extract documentation from source code License: GPLv3+ Source0: http://rfsber.home.xs4all.nl/Robo/archives/%{name}-%{version}.tar.gz Patch1: robodoc-4.99.43-silentwarnings.patch +Patch2: robodoc-4.99.43-helperror.patch URL: http://rfsber.home.xs4all.nl/Robo/ BuildRequires: make gcc perl-generators %description @@ -19,6 +20,7 @@ code and avoid having to maintain two separate documents. %prep %setup -q %patch1 -p 1 -b .silentwarnings +%patch2 -p 1 -b .helperror %build %configure docdir="%{_docdir}/robodoc" @@ -35,5 +37,8 @@ rm -rf "${RPM_BUILD_ROOT}%{_docdir}/robodoc" %{_mandir}/man1/* %changelog +* Tue Sep 30 2021 zhengyaohui - 4.99.43-2 +- add Patch "helperror" to repair "robohdrs -h" show error + * Tue Sep 7 2021 zhengyaohui - 4.99.43-1 - package init