Ensure rpmlint passes on specfile

This commit is contained in:
serge-sans-paille 2018-12-04 13:23:16 +00:00
parent ad6209ddfb
commit e317298cdc
1 changed files with 12 additions and 8 deletions

View File

@ -7,7 +7,7 @@
Name: compiler-rt
Version: 7.0.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: LLVM "compiler-rt" runtime libraries
License: NCSA or MIT
@ -67,7 +67,8 @@ for file in %{aarch64_blacklists} asan_blacklist.txt msan_blacklist.txt dfsan_bl
done
# move sanitizer libs to better place
mv -v %{buildroot}%{_prefix}/lib/linux/libclang_rt* %{buildroot}%{_libdir}/clang/%{version}/lib
%global libclang_rt_installdir lib/linux
mv -v %{buildroot}%{_prefix}/%{libclang_rt_installdir}/libclang_rt* %{buildroot}%{_libdir}/clang/%{version}/lib
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib/linux/
pushd %{buildroot}%{_libdir}/clang/%{version}/lib
for i in *.a *.syms *.so; do
@ -83,6 +84,9 @@ cd _build
%{_libdir}/clang/%{version}
%changelog
* Tue Dec 04 2018 sguelton@redhat.com - 7.0.0-2
- Ensure rpmlint passes on specfile
* Mon Sep 24 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-1
- 7.0.0-1 Release