Add back the -static sub-package

This commit is contained in:
Tom Stellard 2021-08-10 06:27:18 +00:00
parent 3a5f56ca3c
commit 8d8a6261f5
1 changed files with 13 additions and 4 deletions

View File

@ -7,7 +7,7 @@
Name: mlir
Version: %{mlir_version}%{?rc_ver:~rc%{rc_ver}}
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Multi-Level Intermediate Representation Overview
License: ASL 2.0 with exceptions
@ -39,6 +39,13 @@ improve compilation for heterogeneous hardware, significantly reduce
the cost of building domain specific compilers, and aid in connecting
existing compilers together.
%package static
Summary: MLIR static files
Requires: %{name}%{?_isa} = %{version}-%{release}
%description static
MLIR static files.
%package devel
Summary: MLIR development files
@ -76,9 +83,6 @@ export LD_LIBRARY_PATH=%{_builddir}/%{mlir_srcdir}/%{name}/%{_build}/%{_lib}
%install
%cmake_install
# Remove static libraries:
rm -Rf %{buildroot}%{_libdir}/*.a
%check
# build process .exe tools normally use rpath or static linkage
%cmake_build --target check-mlir || true
@ -90,6 +94,8 @@ rm -Rf %{buildroot}%{_libdir}/*.a
%{_libdir}/libmlir_async_runtime.so.%{maj_ver}*
%{_libdir}/libMLIR*.so.%{maj_ver}*
%files static
%{_libdir}/libMLIR*.a
%files devel
%{_bindir}/mlir-tblgen
@ -102,6 +108,9 @@ rm -Rf %{buildroot}%{_libdir}/*.a
%{_libdir}/cmake/mlir
%changelog
* Tue Aug 10 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc1-2
- Add back the -static sub-package
* Mon Aug 09 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0~rc1-1
- 13.0.0-rc1 Release