repair -h show error

This commit is contained in:
zhengyaohui 2021-09-30 14:18:09 +08:00
parent 140d81c517
commit 102816e80c
2 changed files with 18 additions and 1 deletions

View File

@ -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 )
{

View File

@ -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 <zhengyaohui1@huawei.com> - 4.99.43-2
- add Patch "helperror" to repair "robohdrs -h" show error
* Tue Sep 7 2021 zhengyaohui <zhengyaohui1@huawei.com> - 4.99.43-1
- package init