diff --git a/bwa.spec b/bwa.spec index c375616..b39597b 100644 --- a/bwa.spec +++ b/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 - 0.7.18-2 +- Support build with clang + * Mon Jul 8 2024 Ge Wang - 0.7.18-1 - Update to version 0.7.18