Package static library as part of -devel pkg
This commit is contained in:
parent
42cf4a393a
commit
5310eda124
@ -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>
|
||||
|
||||
|
@ -87,6 +87,9 @@ This package contains the oneAPI Unified Runtime OpenCL adapter.
|
||||
|
||||
%build
|
||||
%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 \
|
||||
-DUR_USE_EXTERNAL_UMF=ON \
|
||||
-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
|
||||
|
||||
rm %{buildroot}%{_includedir}/.clang-format
|
||||
rm %{buildroot}%{_libdir}/libur_common.a
|
||||
|
||||
%ldconfig_scriptlets -n libur_loader0
|
||||
%ldconfig_scriptlets -n libur_adapter_native_cpu0
|
||||
@ -131,11 +133,13 @@ rm %{buildroot}%{_libdir}/libur_common.a
|
||||
%{_prefix}/lib/cmake/unified-runtime/
|
||||
%{_libdir}/libur_loader.so
|
||||
%{_libdir}/libur_adapter_native_cpu.so
|
||||
%{_libdir}/libur_common.a
|
||||
|
||||
%if %{with opencl_adapter}
|
||||
%{_libdir}/libur_adapter_opencl.so
|
||||
%endif
|
||||
|
||||
|
||||
%files -n libur_loader0
|
||||
%{_libdir}/libur_loader.so.0
|
||||
%{_libdir}/libur_loader.so.0.11.2
|
||||
|
Loading…
Reference in New Issue
Block a user