diff --git a/add-riscv-support.patch b/add-riscv-support.patch new file mode 100644 index 0000000..974a5a1 --- /dev/null +++ b/add-riscv-support.patch @@ -0,0 +1,19 @@ +Author: misaka00251 +Date: Wed Sep 21 11:15:51 2022 +0800 + + Fix support for RISC-V. + +diff --git a/c++/src/build-system/config.guess b/c++/src/build-system/config.guess +index f475ceb..57481db 100755 +--- a/c++/src/build-system/config.guess ++++ b/c++/src/build-system/config.guess +@@ -979,6 +979,9 @@ EOF + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit ;; ++ riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) ++ echo ${UNAME_MACHINE}-unknown-linux-gnu ++ exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit ;; diff --git a/ncbi-blast.spec b/ncbi-blast.spec index 5941a5e..7521f42 100644 --- a/ncbi-blast.spec +++ b/ncbi-blast.spec @@ -1,10 +1,13 @@ Name: ncbi-blast Version: 2.12.0 -Release: 2 +Release: 3 Summary: NCBI BLAST finds regions of similarity between biological sequences. License: Public Domain URL: https://blast.ncbi.nlm.nih.gov/Blast.cgi Source0: https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.12.0/ncbi-blast-2.12.0+-src.tar.gz +%ifarch riscv64 +Patch0: add-riscv-support.patch +%endif BuildRequires: lmdb lmdb-devel gcc-c++ make %description The NCBI Basic Local Alignment Search Tool (BLAST) finds regions of @@ -43,6 +46,9 @@ cp c++/ReleaseMT/lib/* %{buildroot}%{_libdir}/ncbi-blast/ %{_libdir}/ncbi-blast/* %changelog +* Thu Nov 24 2022 misaka00251 - 2.12.0-3 +- Add riscv support + * Tue Feb 15 2022 herengui - 2.12.0-2 - add missing buildrquires.