!8 [sync] PR-4: add man file and fix man command useage description

From: @openeuler-sync-bot
Reviewed-by: @myeuler
Signed-off-by: @myeuler
This commit is contained in:
openeuler-ci-bot 2021-09-13 15:08:32 +00:00 committed by Gitee
commit da94c21ff5
2 changed files with 52 additions and 7 deletions

View File

@ -0,0 +1,39 @@
From ee1bce7374a982818041fe31a18148b6b3c972fe Mon Sep 17 00:00:00 2001
From: yangzhao_kl <yangzhao1@kylinos.cn>
Date: Sat, 28 Aug 2021 15:38:43 +0800
Subject: [PATCH] fix man command
---
README.md | 2 +-
main.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 5e39daf..e1c6878 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ cd minimap2 && make
./minimap2 -x ava-pb reads.fa reads.fa > overlaps.paf # PacBio read overlap
./minimap2 -x ava-ont reads.fa reads.fa > overlaps.paf # Nanopore read overlap
# man page for detailed command line options
-man ./minimap2.1
+man minimap2.1
```
## Table of Contents
diff --git a/main.c b/main.c
index 5bf0fc8..90638bc 100644
--- a/main.c
+++ b/main.c
@@ -327,7 +327,7 @@ int main(int argc, char *argv[])
fprintf(fp_help, " - asm5/asm10/asm20: asm-to-ref mapping, for ~0.1/1/5%% sequence divergence\n");
fprintf(fp_help, " - splice: long-read spliced alignment\n");
fprintf(fp_help, " - sr: genomic short-read mapping\n");
- fprintf(fp_help, "\nSee `man ./minimap2.1' for detailed description of these and other advanced command-line options.\n");
+ fprintf(fp_help, "\nSee `man minimap2.1' for detailed description of these and other advanced command-line options.\n");
return fp_help == stdout? 0 : 1;
}
--
2.31.1.windows.1

View File

@ -1,12 +1,13 @@
Name: minimap2
Version: 2.17
Release: 1
Release: 2
Summary: A versatile pairwise aligner for genomic and spliced nucleotide sequences
License: MIT
URL: https://lh3.github.io/minimap2/
URL: https://lh3.github.io/minimap2/
Source0: https://github.com/lh3/minimap2/archive/refs/tags/v2.17.tar.bz2
Patch0: 0001-fix-man-command.patch
BuildRequires: gcc make zlib-devel
BuildRequires: gcc make zlib-devel
%description
Minimap2 is a versatile sequence alignment program that aligns DNA or mRNA sequences against a large reference database.
@ -19,7 +20,8 @@ Minimap2 is a versatile sequence alignment program that aligns DNA or mRNA seque
%endif
%prep
%setup -q -n %{name}-%{version}/
%setup -q -n %{name}-%{version}/
%patch0 -p 1
%build
%{ENV} make extra
@ -29,14 +31,18 @@ mkdir -p %{buildroot}%{_bindir}
install -m 755 minimap2 %{buildroot}%{_bindir}/minimap2
install -m 755 minimap2-lite %{buildroot}%{_bindir}/minimap2-lite
install -m 755 sdust %{buildroot}%{_bindir}/sdust
mkdir -p %{buildroot}%{_mandir}/man1/
cp ./minimap2.1 %{buildroot}%{_mandir}/man1/
%files
%license LICENSE.txt
%doc README.md cookbook.md
%{_bindir}/*
%{_mandir}/*
%changelog
* Thu Mar 18 2021 yangzhao <yangzhao1@kylinos.cn> - 2.17-1
- Package init
* Sat Aug 28 2021 yangzhao <yangzhao1@kylinos.cn> - 2.17-2
- fix man command
* Thu Mar 18 2021 yangzhao <yangzhao1@kylinos.cn> - 2.17-1
- Package init