Mageia Bugzilla – Attachment 12276 Details for
Bug 27993
libclc: broken package, does not build, not properly libified
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
spec file modified
libclc.spec (text/x-matlab), 2.31 KB, created by
David GEIGER
on 2021-01-28 08:18:22 CET
(
hide
)
Description:
spec file modified
Filename:
MIME Type:
Creator:
David GEIGER
Created:
2021-01-28 08:18:22 CET
Size:
2.31 KB
patch
obsolete
>%global shortname clc > >%define _libclc_llvm_ver 11.0.1 >%define rel 1 > >Name: libclc >Version: 0.2.0 >Release: %mkrel 5.llvm%{_libclc_llvm_ver}.%{rel} >Summary: An open source implementation of the OpenCL 1.1 library requirements >Group: Development/C > >License: BSD >URL: https://libclc.llvm.org >Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_libclc_llvm_ver}/%{name}-%{_libclc_llvm_ver}.src.tar.xz > >BuildArch: noarch > >BuildRequires: cmake >BuildRequires: clang-devel >BuildRequires: libedit-devel >BuildRequires: llvm-devel >= 3.9 >BuildRequires: python3 >BuildRequires: zlib-devel > >%description >libclc is an open source, BSD licensed implementation of the library >requirements of the OpenCL C programming language, as specified by the >OpenCL 1.1 Specification. The following sections of the specification >impose library requirements: > > * 6.1: Supported Data Types > * 6.2.3: Explicit Conversions > * 6.2.4.2: Reinterpreting Types Using as_type() and as_typen() > * 6.9: Preprocessor Directives and Macros > * 6.11: Built-in Functions > * 9.3: Double Precision Floating-Point > * 9.4: 64-bit Atomics > * 9.5: Writing to 3D image memory objects > * 9.6: Half Precision Floating-Point > >libclc is intended to be used with the Clang compiler's OpenCL frontend. > >libclc is designed to be portable and extensible. To this end, it provides >generic implementations of most library requirements, allowing the target >to override the generic implementation at the granularity of individual >functions. > >libclc currently only supports the PTX target, but support for more >targets is welcome. > > >%package devel >Summary: Development files for %{name} >Group: Development/C >Requires: %{name} = %{version}-%{release} > >%description devel >The %{name}-devel package contains libraries and header files for >developing applications that use %{name}. > >%prep >%autosetup -n %{name}-%{_libclc_llvm_ver}.src > >sed -i "s|python|python3|g" CMakeLists.txt > >%build >%cmake \ > -DCMAKE_C_COMPILER=clang \ > -DCMAKE_CXX_COMPILER=clang++ \ > -DENABLE_RUNTIME_SUBNORMAL:BOOL=ON > >%cmake_build > >%install >%cmake_install > >%files >%license LICENSE.TXT >%doc README.TXT CREDITS.TXT >%{_datadir}/%{shortname}/ > >%files devel >%{_includedir}/%{shortname}/ >%{_datadir}/pkgconfig/%{name}.pc
%global shortname clc %define _libclc_llvm_ver 11.0.1 %define rel 1 Name: libclc Version: 0.2.0 Release: %mkrel 5.llvm%{_libclc_llvm_ver}.%{rel} Summary: An open source implementation of the OpenCL 1.1 library requirements Group: Development/C License: BSD URL: https://libclc.llvm.org Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_libclc_llvm_ver}/%{name}-%{_libclc_llvm_ver}.src.tar.xz BuildArch: noarch BuildRequires: cmake BuildRequires: clang-devel BuildRequires: libedit-devel BuildRequires: llvm-devel >= 3.9 BuildRequires: python3 BuildRequires: zlib-devel %description libclc is an open source, BSD licensed implementation of the library requirements of the OpenCL C programming language, as specified by the OpenCL 1.1 Specification. The following sections of the specification impose library requirements: * 6.1: Supported Data Types * 6.2.3: Explicit Conversions * 6.2.4.2: Reinterpreting Types Using as_type() and as_typen() * 6.9: Preprocessor Directives and Macros * 6.11: Built-in Functions * 9.3: Double Precision Floating-Point * 9.4: 64-bit Atomics * 9.5: Writing to 3D image memory objects * 9.6: Half Precision Floating-Point libclc is intended to be used with the Clang compiler's OpenCL frontend. libclc is designed to be portable and extensible. To this end, it provides generic implementations of most library requirements, allowing the target to override the generic implementation at the granularity of individual functions. libclc currently only supports the PTX target, but support for more targets is welcome. %package devel Summary: Development files for %{name} Group: Development/C Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup -n %{name}-%{_libclc_llvm_ver}.src sed -i "s|python|python3|g" CMakeLists.txt %build %cmake \ -DCMAKE_C_COMPILER=clang \ -DCMAKE_CXX_COMPILER=clang++ \ -DENABLE_RUNTIME_SUBNORMAL:BOOL=ON %cmake_build %install %cmake_install %files %license LICENSE.TXT %doc README.TXT CREDITS.TXT %{_datadir}/%{shortname}/ %files devel %{_includedir}/%{shortname}/ %{_datadir}/pkgconfig/%{name}.pc
View Attachment As Raw
Actions:
View
Attachments on
bug 27993
: 12276