diff --git a/0001-fix-man-command.patch b/0001-fix-man-command.patch new file mode 100644 index 0000000000000000000000000000000000000000..10616626f663c7006850b6198665ad4fce5ef4a8 --- /dev/null +++ b/0001-fix-man-command.patch @@ -0,0 +1,39 @@ +From ee1bce7374a982818041fe31a18148b6b3c972fe Mon Sep 17 00:00:00 2001 +From: yangzhao_kl +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 + diff --git a/minimap2.spec b/minimap2.spec index f2cf20ee66a0e402f9dbe185757c662e19c1633d..788d9e43c71efe2fb271cf0ebcf3ff05c054870a 100644 --- a/minimap2.spec +++ b/minimap2.spec @@ -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 - 2.17-1 -- Package init +* Sat Aug 28 2021 yangzhao - 2.17-2 +- fix man command +* Thu Mar 18 2021 yangzhao - 2.17-1 +- Package init \ No newline at end of file