Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
97457f7b68
!25 [sync] PR-24: Resolving ncbi-blast conflicts with bzip2 and proj
From: @openeuler-sync-bot 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
2024-12-06 11:55:44 +00:00
herengui
aa8f75e5f9 Resolving ncbi-blast conflicts with bzip2 and proj
Signed-off-by: herengui <herengui@kylinsec.com.cn>
(cherry picked from commit 59878b8e3ea8010c3da53e23895efa10e27efa31)
2024-12-04 07:37:25 +08:00
openeuler-ci-bot
0673cbb38e
!23 [sync] PR-21: not need requires packages
From: @openeuler-sync-bot 
Reviewed-by: @reganhe_xx 
Signed-off-by: @reganhe_xx
2024-05-15 02:00:08 +00:00
zhangxianting
cd6168e7b5 not need requires packages
(cherry picked from commit a9074d83c495fd8875df344277c3a7eda50d6ba0)
2024-05-14 21:08:24 +08:00
Kuoi
0c01302011 !15 update: 2.14.0
From: @malacology 
Reviewed-by: @reganhe_xx 
Signed-off-by: @reganhe_xx
2023-06-05 01:40:27 +00:00
openeuler-ci-bot
40ff6e7555
!14 Update config.guess and config.sub for loongarch64
From: @huajingyun 
Reviewed-by: @reganhe_xx 
Signed-off-by: @reganhe_xx
2023-06-01 02:39:18 +00:00
Jingyun Hua
4d0c43bd08 update config.guess and config.sub for loongarch64
Signed-off-by: Jingyun Hua <huajingyun@loongson.cn>
2023-05-31 06:34:57 +00:00
openeuler-ci-bot
188eb9fd6c
!11 Add riscv64 support
From: @misaka00251 
Reviewed-by: @reganhe_xx 
Signed-off-by: @reganhe_xx
2022-11-25 05:36:32 +00:00
misaka00251
825e090e54
Add riscv support 2022-11-24 17:50:08 +08:00
openeuler-ci-bot
7f5e97b1c0
!10 【轻量级PR】添加yaml文件
From: @kkzhs_admin 
Reviewed-by: @reganhe_xx 
Signed-off-by: @reganhe_xx
2022-05-17 02:08:18 +00:00
kkz
9ee5e16ec9 Add yaml file 2022-05-17 08:56:21 +08:00
6 changed files with 114 additions and 14 deletions

19
add-riscv-support.patch Normal file
View File

@ -0,0 +1,19 @@
Author: misaka00251 <liuxin@iscas.ac.cn>
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 ;;

View File

@ -0,0 +1,53 @@
From b84f84f9bd7b418dff6e47bdf6b3008a5ab74cf0 Mon Sep 17 00:00:00 2001
From: herengui <herengui@kylinsec.com.cn>
Date: Tue, 3 Dec 2024 15:16:53 +0000
Subject: [PATCH] disable a dependency module that is not actually used
Signed-off-by: herengui <herengui@kylinsec.com.cn>
---
c++/src/objects/CMakeLists.txt | 1 -
c++/src/objects/Makefile.in | 2 +-
c++/src/objects/Makefile.sources | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/c++/src/objects/CMakeLists.txt b/c++/src/objects/CMakeLists.txt
index 42c240b..b37ec99 100644
--- a/c++/src/objects/CMakeLists.txt
+++ b/c++/src/objects/CMakeLists.txt
@@ -37,7 +37,6 @@ NCBI_add_subdirectory(
pcassay
pcassay2
pcsubstance
- proj
pub
pubmed
remap
diff --git a/c++/src/objects/Makefile.in b/c++/src/objects/Makefile.in
index 6f4ea42..c9c507b 100644
--- a/c++/src/objects/Makefile.in
+++ b/c++/src/objects/Makefile.in
@@ -6,7 +6,7 @@
USR_PROJ = sources
SUB_PROJ = general biblio medline pub seqcode seq seqset submit \
- seqedit seqsplit id1 id2 entrez2 pubmed medlars mla proj \
+ seqedit seqsplit id1 id2 entrez2 pubmed medlars mla \
scoremat blast blastdb blastxml blastxml2 mmdb cn3d cdd ncbimime \
pcsubstance pcassay pcassay2 gbseq insdseq tinyseq biotree entrezgene \
omssa remap seqtest taxon1 taxon3 gbproj trackmgr valerr valid \
diff --git a/c++/src/objects/Makefile.sources b/c++/src/objects/Makefile.sources
index cad3b3b..8c53cfe 100644
--- a/c++/src/objects/Makefile.sources
+++ b/c++/src/objects/Makefile.sources
@@ -13,7 +13,7 @@ include $(builddir)/Makefile.mk
MODULES = omssa access biblio blast blastdb blastxml blastxml2 cdd cn3d docsum biotree \
entrez2 entrezgene featdef gbseq general id1 id2 insdseq \
macro medlars medline mim mla mmdb1 mmdb2 mmdb3 ncbimime objprt \
- proj pub pubmed scoremat seq seqalign seqblock seqcode \
+ pub pubmed scoremat seq seqalign seqblock seqcode \
seqfeat seqloc seqsplit seqres seqset submit taxon1 taxon3 tinyseq \
pcsubstance pcassay remap homologene seqedit seqtable seqtest \
trackmgr gbproj valerr valid genesbyloc
--
2.43.0

Binary file not shown.

Binary file not shown.

View File

@ -1,11 +1,15 @@
Name: ncbi-blast
Version: 2.12.0
Release: 2
Version: 2.14.0
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
BuildRequires: lmdb lmdb-devel gcc-c++ make
Source0: https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-%{version}+-src.tar.gz
%ifarch riscv64
Patch0: add-riscv-support.patch
%endif
Patch1: disable-a-dependency-module-that-is-not-actually-use.patch
BuildRequires: gcc-c++ make cpio zlib-devel lmdb-devel bzip2-devel
%description
The NCBI Basic Local Alignment Search Tool (BLAST) finds regions of
local similarity between sequences. The program compares nucleotide or
@ -16,33 +20,53 @@ members of gene families.
%prep
%autosetup -n %{name}-%{version}+-src -p1
%ifarch loongarch64
%_update_config_guess
%_update_config_sub
%endif
%build
cd c++
export CFLAGS="%{build_cflags}"
export CXXFLAGS="%{build_cxxflags}"
export LDFLAGS="%{build_ldflags}"
./configure
./configure --prefix=/usr --with-dll --with-mt --with-bz2
cd ReleaseMT/build
sed -i "s/-fPIC/-fPIC -g/g" Makefile.mk
%make_build all_r
%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_includedir}/ncbi-blast
install -d %{buildroot}%{_libdir}/ncbi-blast
rm -rf c++/ReleaseMT/bin/windowmasker_2.2.22_adapter.py
install -m 0755 c++/ReleaseMT/bin/* %{buildroot}%{_bindir}/
cp -r c++/ReleaseMT/inc/* %{buildroot}%{_includedir}/ncbi-blast
cp c++/ReleaseMT/lib/* %{buildroot}%{_libdir}/ncbi-blast/
cd c++
install -d -m 0755 %{buildroot}%{_bindir}
install -d -m 0755 %{buildroot}%{_includedir}/ncbi-tools++
install -d -m 0755 %{buildroot}%{_libdir}/
rm -rf ReleaseMT/bin/windowmasker_2.2.22_adapter.py
install -m 0755 ReleaseMT/bin/* %{buildroot}%{_bindir}/
cp -r ReleaseMT/inc/* %{buildroot}%{_includedir}/ncbi-tools++
cp -r ReleaseMT/lib/* %{buildroot}%{_libdir}/
%files
%defattr(-,root,root)
%_bindir/*
%{_includedir}/ncbi-blast/*
%{_libdir}/ncbi-blast/*
%{_includedir}/ncbi-tools++/*
%{_libdir}/*
%changelog
* Tue Dec 03 2024 herengui <herengui@kylinsec.com.cn> - 2.14.0-3
- Resolving ncbi-blast conflicts with bzip2 and proj
* Tue Apr 2 2024 zhangxianting <zhangxianting@uniontech.com> - 2.14.0-2
- not need requires package
* Fri Jul 2 2023 guoyizhang <kuoi@bioarchlinux.org> - 2.14.0-1
- update to 2.14.0
* Wed May 31 2023 huajingyun <huajingyun@loongson.cn> - 2.12.0-4
- update config.guess and config.sub for loongarch64
* Thu Nov 24 2022 misaka00251 <liuxin@iscas.ac.cn> - 2.12.0-3
- Add riscv support
* Tue Feb 15 2022 herengui <herengui@uniontech.com> - 2.12.0-2
- add missing buildrquires.

4
ncbi-blast.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: ncbi-blast/ncbi-blast
tag_prefix: ^
separator: .