Modift spec to support building with clang
This commit is contained in:
parent
2eaa558ef6
commit
c9882bf778
11
bwa.spec
11
bwa.spec
@ -1,11 +1,13 @@
|
||||
Name: bwa
|
||||
Version: 0.7.18
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Burrows-Wheeler Alignment tool
|
||||
License: GPLv3 and MIT
|
||||
URL: https://github.com/lh3/bwa
|
||||
Source0: https://github.com/lh3/bwa/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||
%ifnarch riscv64
|
||||
Patch1: bwa-simde.patch
|
||||
%endif
|
||||
BuildRequires: gcc perl-generators
|
||||
%ifnarch x86_64
|
||||
BuildRequires: simde-devel
|
||||
@ -28,7 +30,11 @@ CFLAGS="${CFLAGS} -DUSE_SIMDE -DSIMDE_ENABLE_NATIVE_ALIASES -fopenmp-simd -DSIMD
|
||||
CFLAGS="${CFLAGS} -D__SSE2__ -DSIMDE_ENABLE_NATIVE_ALIASES -fopenmp-simd -DSIMDE_ENABLE_OPENMP"
|
||||
%endif
|
||||
|
||||
%if "%{?toolchain}" == "clang"
|
||||
%make_build CC=clang CFLAGS="${CFLAGS}"
|
||||
%else
|
||||
%make_build CFLAGS="${CFLAGS}"
|
||||
%endif
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
@ -53,6 +59,9 @@ install -m 0644 bwa.1 %{buildroot}/%{_mandir}/man1/bwa.1
|
||||
%{_mandir}/man1/%{name}.1*
|
||||
|
||||
%changelog
|
||||
* Wed Aug 28 2024 wangqiang <wangqiang1@kylinos.cn> - 0.7.18-2
|
||||
- Support build with clang
|
||||
|
||||
* Mon Jul 8 2024 Ge Wang <wang__ge@126.com> - 0.7.18-1
|
||||
- Update to version 0.7.18
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user