Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
99ce75fea0
!7 [sync] PR-6: Upgrade libclc to 12.0.1 to resolve compilation failures.
From: @openeuler-sync-bot 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2022-03-21 08:14:10 +00:00
starlet-dx
2926473df0 Upgrade libclc to 12.0.1 to resolve compilation failures.
(cherry picked from commit e051d5c1add029966927ccaf7c5ef69e8c2d4ff1)
2022-03-21 10:10:50 +08:00
openeuler-ci-bot
3d4e1adff5 !5 Modify python to python3
Merge pull request !5 from lyn/master
2020-08-11 14:41:32 +08:00
lyn1001
1c5a4f6a6b Modify python to python3 2020-08-11 14:22:32 +08:00
lyn1001
39a9576712 Modify python to python3 2020-08-11 14:17:03 +08:00
openeuler-ci-bot
f6e9060a94 !4 Add support for RISC-V
Merge pull request !4 from whoisxxx/master
2020-07-14 15:40:16 +08:00
whoisxxx
099e9fe771 Add support for RISC-V
Signed-off-by: whoisxxx <zhangxuzhou4@huawei.com>
2020-07-09 12:01:59 +08:00
openeuler-ci-bot
a41c008d20 !3 modify yaml
Merge pull request !3 from huanghaitao/master
2020-06-30 10:35:27 +08:00
hht8
b4152916f9 modify yaml 2020-06-29 18:44:40 +08:00
openeuler-ci-bot
078b3a5190 !2 Add libclc.yaml
Merge pull request !2 from huanghaitao/master
2020-05-11 16:03:10 +08:00
hht8
1ee085b9ee Add libclc.yaml 2020-05-09 09:54:21 +08:00
4 changed files with 27 additions and 8 deletions

BIN
libclc-12.0.1.src.tar.xz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,15 +1,15 @@
%global debug_package %{nil}
Name: libclc
Version: 0.2.0
Release: 14
Version: 12.0.1
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-mirror/%{name}/archive/1ecb16dd7d8b8e9151027faab996f27b2ac508e3/%{name}-git1ecb16d.tar.gz
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64
BuildRequires: clang-devel libedit-devel llvm-devel >= 3.9 python zlib-devel
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 riscv64
BuildRequires: clang-devel libedit-devel llvm-devel >= 3.9 python3 zlib-devel
BuildRequires: cmake spirv-llvm-translator-tools
%description
bclc is an open source, BSD/MIT dual licensed implementation of the
@ -46,28 +46,42 @@ The libclc-devel package contains libraries and header files for
developing applications that use libclc.
%prep
%autosetup -n %{name}-1ecb16dd7d8b8e9151027faab996f27b2ac508e3 -p1
%autosetup -n %{name}-%{version}.src -p1
%build
export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
%set_build_flags
./configure.py --prefix=%{_prefix} --libexecdir=%{_libdir}/clc/ --pkgconfigdir=%{_libdir}/pkgconfig/
%cmake -DCMAKE_INSTALL_DATADIR:PATH=%{_libdir}
%make_build
%install
%make_install
%check
make test
%files
%license LICENSE.TXT
%doc README.TXT CREDITS.TXT
%dir %{_libdir}/clc
%{_libdir}/clc/*.bc
%{_libdir}/clc/spirv-mesa3d-.spv
%{_libdir}/clc/spirv64-mesa3d-.spv
%{_includedir}/clc
%files devel
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Fri Mar 18 2022 yaoxin <yaoxin30@huawei.com> - 12.0.1-1
- Upgrade libclc to 12.0.1 to resolve compilation failures.
* Tue Aug 11 2020 yanan li <liyanan032@huawei.com> -0.2.0-16
- Modify python to python3
* Thu Jul 09 2020 whoisxxx <zhangxuzhou4@huawei.com> - 0.2.0-15
- Add RISC-V arch
* Tue Dec 31 2019 Jiangping Hu <hujiangping@huawei.com> - 0.2.0-14
- Package init

5
libclc.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/llvm-mirror/libclc.git
version_control: github
src_repo: llvm-mirror/libclc
tag_prefix: "^v"
seperator: "."