diff --git a/libclc-12.0.1.src.tar.xz b/libclc-12.0.1.src.tar.xz deleted file mode 100644 index 66a01e8..0000000 Binary files a/libclc-12.0.1.src.tar.xz and /dev/null differ diff --git a/libclc-15.0.7.src.tar.xz b/libclc-15.0.7.src.tar.xz new file mode 100644 index 0000000..591e136 Binary files /dev/null and b/libclc-15.0.7.src.tar.xz differ diff --git a/libclc-15.0.7.src.tar.xz.sig b/libclc-15.0.7.src.tar.xz.sig new file mode 100644 index 0000000..4cff2f0 Binary files /dev/null and b/libclc-15.0.7.src.tar.xz.sig differ diff --git a/libclc.spec b/libclc.spec index ad87305..22fae4a 100644 --- a/libclc.spec +++ b/libclc.spec @@ -1,15 +1,29 @@ +%bcond_without check + +%global maj_ver 15 +%global min_ver 0 +%global patch_ver 7 +%global clc_version %{maj_ver}.%{min_ver}.%{patch_ver} +%global clc_srcdir libclc-%{version}%{?rc_ver:rc%{rc_ver}}.src %global debug_package %{nil} Name: libclc -Version: 12.0.1 -Release: 2 +Version: %{clc_version} +Release: 1 Summary: An implementation of the library requirements of the OpenCL C License: BSD URL: https://libclc.llvm.org -Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz +Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{clc_srcdir}.tar.xz +Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{clc_srcdir}.tar.xz.sig ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 riscv64 loongarch64 -BuildRequires: clang-devel libedit-devel llvm-devel >= 3.9 python3 zlib-devel -BuildRequires: cmake spirv-llvm-translator-tools +BuildRequires: gcc gcc-c++ +BuildRequires: clang +BuildRequires: libedit-devel +BuildRequires: llvm-devel >= 3.9 +BuildRequires: python3 +BuildRequires: zlib-devel +BuildRequires: cmake +BuildRequires: spirv-llvm-translator-tools %description bclc is an open source, BSD/MIT dual licensed implementation of the @@ -59,7 +73,9 @@ export CFLAGS="%{build_cflags} -D__extern_always_inline=inline" %make_install %check +%if %{with check} make test +%endif %files %license LICENSE.TXT @@ -74,6 +90,9 @@ make test %{_libdir}/pkgconfig/%{name}.pc %changelog +* Fri Jun 23 2023 cf-zhao 15.0.7-1 +- Update to 15.0.7 + * Thu Feb 16 2023 Wenlong Zhang - 12.0.1-2 - Add loongarch64 support