!2 修复robohdrs -h显示错误
From: @zhengyaohui Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
1b5c1981bb
12
robodoc-4.99.43-helperror.patch
Normal file
12
robodoc-4.99.43-helperror.patch
Normal 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 )
|
||||||
|
{
|
||||||
|
|
||||||
@ -2,11 +2,12 @@
|
|||||||
%global __perl_requires %{nil}
|
%global __perl_requires %{nil}
|
||||||
Name: robodoc
|
Name: robodoc
|
||||||
Version: 4.99.43
|
Version: 4.99.43
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Extract documentation from source code
|
Summary: Extract documentation from source code
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Source0: http://rfsber.home.xs4all.nl/Robo/archives/%{name}-%{version}.tar.gz
|
Source0: http://rfsber.home.xs4all.nl/Robo/archives/%{name}-%{version}.tar.gz
|
||||||
Patch1: robodoc-4.99.43-silentwarnings.patch
|
Patch1: robodoc-4.99.43-silentwarnings.patch
|
||||||
|
Patch2: robodoc-4.99.43-helperror.patch
|
||||||
URL: http://rfsber.home.xs4all.nl/Robo/
|
URL: http://rfsber.home.xs4all.nl/Robo/
|
||||||
BuildRequires: make gcc perl-generators
|
BuildRequires: make gcc perl-generators
|
||||||
%description
|
%description
|
||||||
@ -19,6 +20,7 @@ code and avoid having to maintain two separate documents.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p 1 -b .silentwarnings
|
%patch1 -p 1 -b .silentwarnings
|
||||||
|
%patch2 -p 1 -b .helperror
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure docdir="%{_docdir}/robodoc"
|
%configure docdir="%{_docdir}/robodoc"
|
||||||
@ -35,5 +37,8 @@ rm -rf "${RPM_BUILD_ROOT}%{_docdir}/robodoc"
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Sep 7 2021 zhengyaohui <zhengyaohui1@huawei.com> - 4.99.43-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user