Package static library as part of -devel pkg

This commit is contained in:
Eyad Issa 2025-01-06 14:43:04 +01:00
parent 42cf4a393a
commit 5310eda124
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jan 10 18:46:12 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
- Added the static library to the devel package
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 6 17:06:15 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com> Mon Jan 6 17:06:15 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>

View File

@ -87,6 +87,9 @@ This package contains the oneAPI Unified Runtime OpenCL adapter.
%build %build
%define __builder ninja %define __builder ninja
# the static library is needed by the produced cmake files
# otherwise, when using find_package, CMake throws an error
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
%cmake \ %cmake \
-DUR_USE_EXTERNAL_UMF=ON \ -DUR_USE_EXTERNAL_UMF=ON \
-DUR_BUILD_TESTS=OFF \ -DUR_BUILD_TESTS=OFF \
@ -105,7 +108,6 @@ This package contains the oneAPI Unified Runtime OpenCL adapter.
install -Dm 755 build/bin/urinfo %{buildroot}%{_bindir}/urinfo install -Dm 755 build/bin/urinfo %{buildroot}%{_bindir}/urinfo
rm %{buildroot}%{_includedir}/.clang-format rm %{buildroot}%{_includedir}/.clang-format
rm %{buildroot}%{_libdir}/libur_common.a
%ldconfig_scriptlets -n libur_loader0 %ldconfig_scriptlets -n libur_loader0
%ldconfig_scriptlets -n libur_adapter_native_cpu0 %ldconfig_scriptlets -n libur_adapter_native_cpu0
@ -131,11 +133,13 @@ rm %{buildroot}%{_libdir}/libur_common.a
%{_prefix}/lib/cmake/unified-runtime/ %{_prefix}/lib/cmake/unified-runtime/
%{_libdir}/libur_loader.so %{_libdir}/libur_loader.so
%{_libdir}/libur_adapter_native_cpu.so %{_libdir}/libur_adapter_native_cpu.so
%{_libdir}/libur_common.a
%if %{with opencl_adapter} %if %{with opencl_adapter}
%{_libdir}/libur_adapter_opencl.so %{_libdir}/libur_adapter_opencl.so
%endif %endif
%files -n libur_loader0 %files -n libur_loader0
%{_libdir}/libur_loader.so.0 %{_libdir}/libur_loader.so.0
%{_libdir}/libur_loader.so.0.11.2 %{_libdir}/libur_loader.so.0.11.2