delete the .so file of old version

(cherry picked from commit 39f6522aa3f6cdf7d2e41c4ae0ddeeab0badc814)
This commit is contained in:
Peilin Guo 2022-08-23 20:30:20 +08:00 committed by openeuler-sync-bot
parent 39f37c2646
commit 31c2126969

View File

@ -1,6 +1,6 @@
Name: llvm Name: llvm
Version: 12.0.1 Version: 12.0.1
Release: 2 Release: 3
Summary: The Low Level Virtual Machine Summary: The Low Level Virtual Machine
License: NCSA License: NCSA
URL: http://llvm.org URL: http://llvm.org
@ -8,7 +8,7 @@ Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{versio
BuildRequires: gcc gcc-c++ cmake ninja-build zlib-devel libffi-devel ncurses-devel libstdc++-static BuildRequires: gcc gcc-c++ cmake ninja-build zlib-devel libffi-devel ncurses-devel libstdc++-static
BuildRequires: python3-sphinx binutils-devel valgrind-devel libedit-devel python3-devel BuildRequires: python3-sphinx binutils-devel valgrind-devel libedit-devel python3-devel
BuildRequires: python3-recommonmark llvm-libs BuildRequires: python3-recommonmark
%description %description
LLVM is a compiler infrastructure designed for compile-time, link-time, LLVM is a compiler infrastructure designed for compile-time, link-time,
@ -153,10 +153,6 @@ mkdir -p %{buildroot}%{_libdir}/%{name}
cp -R _build/unittests %{buildroot}%{_libdir}/%{name}/ cp -R _build/unittests %{buildroot}%{_libdir}/%{name}/
find %{buildroot}%{_libdir}/%{name} -ignore_readdir_race -iname 'cmake*' -exec rm -Rf '{}' ';' || true find %{buildroot}%{_libdir}/%{name} -ignore_readdir_race -iname 'cmake*' -exec rm -Rf '{}' ';' || true
#TODO: clang rust mesa packages will be unresolvable without this work-around
cp -p %{_libdir}/libLLVM-10*.so %{buildroot}%{_libdir}
cp -p %{_libdir}/libLTO.so.10 %{buildroot}%{_libdir}
%check %check
cd _build cd _build
ninja check-all || : ninja check-all || :
@ -200,6 +196,12 @@ fi
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog
* Tue Aug 23 2022 guopeilin <guopeilin1@huawei.com> - 12.0.1-3
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: Delete the .so file of old version
* Tue Feb 8 2022 zhangweiguo <zhangweiguo2@huawei.com> - 12.0.1-2 * Tue Feb 8 2022 zhangweiguo <zhangweiguo2@huawei.com> - 12.0.1-2
- Type: enhancement - Type: enhancement
- ID: NA - ID: NA