Compare commits
11 Commits
e5260b0c51
...
99ce75fea0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
99ce75fea0 | ||
|
|
2926473df0 | ||
|
|
3d4e1adff5 | ||
|
|
1c5a4f6a6b | ||
|
|
39a9576712 | ||
|
|
f6e9060a94 | ||
|
|
099e9fe771 | ||
|
|
a41c008d20 | ||
|
|
b4152916f9 | ||
|
|
078b3a5190 | ||
|
|
1ee085b9ee |
BIN
libclc-12.0.1.src.tar.xz
Normal file
BIN
libclc-12.0.1.src.tar.xz
Normal file
Binary file not shown.
Binary file not shown.
30
libclc.spec
30
libclc.spec
@ -1,15 +1,15 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
Name: libclc
|
Name: libclc
|
||||||
Version: 0.2.0
|
Version: 12.0.1
|
||||||
Release: 14
|
Release: 1
|
||||||
Summary: An implementation of the library requirements of the OpenCL C
|
Summary: An implementation of the library requirements of the OpenCL C
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://libclc.llvm.org
|
URL: https://libclc.llvm.org
|
||||||
Source0: https://github.com/llvm-mirror/%{name}/archive/1ecb16dd7d8b8e9151027faab996f27b2ac508e3/%{name}-git1ecb16d.tar.gz
|
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
|
||||||
|
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 riscv64
|
||||||
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64
|
BuildRequires: clang-devel libedit-devel llvm-devel >= 3.9 python3 zlib-devel
|
||||||
BuildRequires: clang-devel libedit-devel llvm-devel >= 3.9 python zlib-devel
|
BuildRequires: cmake spirv-llvm-translator-tools
|
||||||
|
|
||||||
%description
|
%description
|
||||||
bclc is an open source, BSD/MIT dual licensed implementation of the
|
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.
|
developing applications that use libclc.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-1ecb16dd7d8b8e9151027faab996f27b2ac508e3 -p1
|
%autosetup -n %{name}-%{version}.src -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
|
export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
|
||||||
%set_build_flags
|
%set_build_flags
|
||||||
./configure.py --prefix=%{_prefix} --libexecdir=%{_libdir}/clc/ --pkgconfigdir=%{_libdir}/pkgconfig/
|
%cmake -DCMAKE_INSTALL_DATADIR:PATH=%{_libdir}
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE.TXT
|
%license LICENSE.TXT
|
||||||
%doc README.TXT CREDITS.TXT
|
%doc README.TXT CREDITS.TXT
|
||||||
%dir %{_libdir}/clc
|
%dir %{_libdir}/clc
|
||||||
%{_libdir}/clc/*.bc
|
%{_libdir}/clc/*.bc
|
||||||
|
%{_libdir}/clc/spirv-mesa3d-.spv
|
||||||
|
%{_libdir}/clc/spirv64-mesa3d-.spv
|
||||||
%{_includedir}/clc
|
%{_includedir}/clc
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Dec 31 2019 Jiangping Hu <hujiangping@huawei.com> - 0.2.0-14
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
5
libclc.yaml
Normal file
5
libclc.yaml
Normal 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: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user