Notification time stamped 2023-03-31 23:30:43 UTC
From 83a57eb9ea02ef9a9ca6ba42d54b0ce00abbe22d Mon Sep 17 00:00:00 2001 From: Davide Cavalca dcavalca@fedoraproject.org Date: Mar 08 2023 01:48:38 +0000 Subject: Initial import; Fixes: RHBZ#2174487
---
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e41e9d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/esmi_ib_library-f4ce8713f3ed5cc4d20a9238d2be7405e7bbd583.tar.gz diff --git a/esmi_ib_library.spec b/esmi_ib_library.spec new file mode 100644 index 0000000..bf6f4ce --- /dev/null +++ b/esmi_ib_library.spec @@ -0,0 +1,118 @@ +%global date 20220622 +%global commit f4ce8713f3ed5cc4d20a9238d2be7405e7bbd583 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) +%global major_version 1 +%global minor_version 5 +%global full_version %{major_version}.%{minor_version}.0 +%global soversion %{full_version}.0 + +# The documentation doesn't build at the moment, use the prebuilt one instead +%bcond_with doc + +Name: esmi_ib_library +Version: %{full_version}^%{date}git%{shortcommit} +Release: %autorelease +Summary: E-SMI: EPYC System management Interface In-band Library + +License: NCSA +URL: https://github.com/amd/esmi_ib_library +Source: %{url}/archive/%{commit}/%{name}-%{commit}.tar.gz + +# This is a hardware enablement package for AMD x86_64 platforms +ExclusiveArch: x86_64 + +BuildRequires: chrpath +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: sed +%if %{with doc} +BuildRequires: doxygen +BuildRequires: make +BuildRequires: texlive-latex +%endif + +Suggests: %{name}-doc = %{version}-%{release} + +%description +The EPYC System Management Interface In-band Library, or E-SMI library, is +part of the EPYC System Management Inband software stack. It is a C library +for Linux that provides a user space interface to monitor and control the CPU's +power, energy, performance and other system management features. + +%package devel +Summary: Development headers and libraries for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains development headers and libraries for %{name}. + +%package doc +Summary: Additional documentation for %{name} +BuildArch: noarch + +%description doc +This package contains additional documentation for %{name}. + +%package -n e_smi_tool +Summary: E-SMI: EPYC™ System management Interface tool + +%description -n e_smi_tool +This package contains E-SMI tool, a program based on the E-SMI In-band library +that provides options to Monitor and Control System Management functionality. + +%prep +%autosetup -n %{name}-%{commit} + +# Use FHS install paths and patch version detection +sed -i CMakeLists.txt \ + -e 's:${E_SMI}/bin:%{_bindir}:g' \ + -e 's:e_smi/include:%{_includedir}:g' \ + -e 's:${E_SMI}/lib/static:%{_libdir}:g' \ + -e 's:${E_SMI}/lib:%{_libdir}:g' \ + -e 's:${E_SMI}/doc:%{_pkgdocdir}:g' \ + -e 's:get_version_from_tag("1.0.0.0":get_version_from_tag("%{soversion}":' + +%if %{with doc} +# Remove prebuilt docs +rm ESMI_IB_Release_Notes.pdf ESMI_Manual.pdf +%endif + +%build +%cmake +%cmake_build +%if %{with doc} +make -C %{_vpath_builddir} doc +%endif + +%install +%cmake_install + +# Strip rpath +chrpath -d %{buildroot}/%{_bindir}/e_smi_tool + +%check +%ctest + +%files +%license License.txt +%dir %{_pkgdocdir} +%doc %{_pkgdocdir}/README.md +%doc %{_pkgdocdir}/RELEASENOTES.md +%{_libdir}/libe_smi64.so.%{major_version} +%{_libdir}/libe_smi64.so.%{major_version}.%{minor_version} + +%files devel +%{_includedir}/e_smi/ +%{_libdir}/libe_smi64.so + +%files doc +%license License.txt +%dir %{_pkgdocdir} +%doc %{_pkgdocdir}/ESMI_IB_Release_Notes.pdf +%doc %{_pkgdocdir}/ESMI_Manual.pdf + +%files -n e_smi_tool +%{_bindir}/e_smi_tool + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..0566553 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (esmi_ib_library-f4ce8713f3ed5cc4d20a9238d2be7405e7bbd583.tar.gz) = 3677e94034b1e6cbb15565bfffb6fd4efd951b5654faee9195402ee3556caa28dccc26fc3cb195f64da3870d9ca8c7a0daf087edd01f7585444617ad85dcb3ea
https://src.fedoraproject.org/rpms/esmi_ib_library/c/83a57eb9ea02ef9a9ca6ba4...
scm-commits@lists.fedoraproject.org