diff --git a/metee-3.1.5.tar.gz b/metee-3.1.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d32ab0ff4e0f5dbca2adeb7f7ebd384c76509c80 Binary files /dev/null and b/metee-3.1.5.tar.gz differ diff --git a/metee.spec b/metee.spec new file mode 100644 index 0000000000000000000000000000000000000000..e667b697ace151967f2f97b5a79b094188eba827 --- /dev/null +++ b/metee.spec @@ -0,0 +1,84 @@ +# Copyright (C) 2023 Intel Corporation +# SPDX-License-Identifier: MIT +# +# This package is downstreamed from Intel GPU RHEL9.2 Package repository: +# https://dgpu-docs.intel.com/driver/installation.html#rhel-install-steps + +%global pkg_name metee +%global lib_ver 3.1.5 +%global anolis_release 1 + +Name: %{pkg_name} +Version: %{lib_ver} +Release: %{anolis_release}%{?dist} +Summary: Cross-platform access library for Intel(R) CSME HECI interface +Group: System Environment/Libraries +License: apache2 +URL: https://github.com/intel/metee +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz +ExclusiveArch: x86_64 + +BuildRequires: make +BuildRequires: cmake +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: doxygen + +%description +ME TEE Library is a C library to access CSE/CSME/GSC firmware via a +mei interface. ME TEE provides a single cross-platform API to access +to MEI devices on Linux and Windows. MEI TEE API simplify connection +and communication with the mei device, and firmware status registers +retrieval. + +%package -n libmetee +Summary: Cross-platform access library for Intel(R) CSME HECI interface. +%description -n libmetee +ME TEE Library is a C library to access CSE/CSME/GSC firmware via a +mei interface. ME TEE provides a single cross-platform API to access +to MEI devices on Linux and Windows. MEI TEE API simplify connection +and communication with the mei device, and firmware status registers +retrieval. + +%package -n libmetee-devel +Summary: Development headers for metee. +Requires: libmetee +%description -n libmetee-devel +ME TEE Library is a C library to access CSE/CSME/GSC firmware via a +mei interface. ME TEE provides a single cross-platform API to access +to MEI devices on Linux and Windows. MEI TEE API simplify connection +and communication with the mei device, and firmware status registers +retrieval. + +%prep +%autosetup -p1 -n %{name}-%{version} + +%build +mkdir build +pushd build +%cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_SHARED_LIBS=ON +%cmake_build +popd + +%install +pushd build +%cmake_install +popd + +%files -n libmetee +%defattr(-,root,root) +%license COPYING +%{_libdir}/libmetee.so.* +%{_mandir}/man3/* + +%files -n libmetee-devel +%defattr(-,root,root) +%{_includedir}/metee.h +%{_libdir}/libmetee.so +%{_docdir}/metee/* + +%changelog +* Fri Nov 17 2023 Aubrey Li - 3.1.5-1 +- Initial spec file