ncbi-blast/ncbi-blast.spec
herengui fc6396c8fb add missing buildrequires
Signed-off-by: herengui <herengui@uniontech.com>
(cherry picked from commit 315424382b025ea15d95188cb8d8a152a4d1102c)
2022-02-16 20:09:46 +08:00

51 lines
1.7 KiB
RPMSpec

Name: ncbi-blast
Version: 2.12.0
Release: 2
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
%description
The NCBI Basic Local Alignment Search Tool (BLAST) finds regions of
local similarity between sequences. The program compares nucleotide or
protein sequences to sequence databases and calculates the statistical
significance of matches. BLAST can be used to infer functional and
evolutionary relationships between sequences as well as help identify
members of gene families.
%prep
%autosetup -n %{name}-%{version}+-src -p1
%build
cd c++
export CFLAGS="%{build_cflags}"
export CXXFLAGS="%{build_cxxflags}"
export LDFLAGS="%{build_ldflags}"
./configure
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/
%files
%defattr(-,root,root)
%_bindir/*
%{_includedir}/ncbi-blast/*
%{_libdir}/ncbi-blast/*
%changelog
* Tue Feb 15 2022 herengui <herengui@uniontech.com> - 2.12.0-2
- add missing buildrquires.
* Wed Jul 28 2021 huanghaitao <huanghaitao8@huawei.com> - 2.12.0-1
- package init