New package

This commit is contained in:
Luya Tshimbalanga 2022-12-12 08:53:11 -08:00
parent 97b9943383
commit 3e44ad48ff
3 changed files with 62 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/level-zero-1.8.8.tar.gz

60
oneapi-level-zero.spec Normal file
View File

@ -0,0 +1,60 @@
%global srcname level-zero
Name: oneapi-%{srcname}
Version: 1.8.8
Release: %{autorelease}
Summary: OneAPI Level Zero Specification Headers and Loader
License: MIT
URL: https://github.com/oneapi-src/%{srcname}
Source: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
ExclusiveArch: x86_64
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: make
BuildRequires: opencl-headers
%description
The objective of the oneAPI Level-Zero Application Programming Interface
(API) is to provide direct-to-metal interfaces to offload accelerator
devices. Its programming interface can be tailored to any device needs
and can be adapted to support broader set of languages features such as
function pointers, virtual functions, unified memory,
and I/O capabilities.
%package devel
Summary: The oneAPI Level Zero Specification Headers and Loader development package
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains library and header files for
developing applications that use %{name}.
%prep
%autosetup -n %{srcname}-%{version}
%build
%cmake
%cmake_build
%install
%cmake_install
%files
%license LICENSE
%doc README.md SECURITY.md
%{_libdir}/libze_loader.so.1*
%{_libdir}/libze_validation_layer.so.1*
%{_libdir}/libze_tracing_layer.so.1*
%files devel
%{_includedir}/level_zero
%{_libdir}/libze_loader.so
%{_libdir}/libze_validation_layer.so
%{_libdir}/libze_tracing_layer.so
%{_libdir}/pkgconfig/libze_loader.pc
%{_libdir}/pkgconfig/%{srcname}.pc
%changelog
%autochangelog

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (level-zero-1.8.8.tar.gz) = b9b416beebbe96cd75d18d4cf888f539d908007629085f8692cd0898545e564b56671d060bc4961847df57a6c3b3beccbaa6f31539b6f4c201487961236ab83d