set COMPILER_RT_INSTALL_PATH=%{_libdir}/clang/%{MAJver} [release 16.0.6-2mamba;Sat Aug 05 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 21:28:59 +01:00
parent 66b759e0be
commit d978322cf9

View File

@ -1,8 +1,9 @@
%define gccver %(gcc -dumpversion)
%define MAJver %(echo %version | cut -d. -f1)
%define majver %(echo %version | cut -d. -f1-2)
Name: compiler-rt
Version: 16.0.6
Release: 1mamba
Release: 2mamba
Summary: Runtime libraries compiler for clang
Group: Development/Languages
Vendor: openmamba
@ -27,6 +28,7 @@ Runtime libraries compiler for clang.
%prep
%setup -q -n compiler-rt-%{version}.src -a1
#-D -T
#:<< _EOF
cp -a cmake-%{version}.src/Modules/* cmake/Modules/
%build
@ -38,6 +40,7 @@ cd build
cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCOMPILER_RT_INSTALL_PATH=%{_libdir}/clang/%{MAJver} \
%ifarch arm
-DCOMPILER_RT_BUILD_BUILTINS=OFF
%endif
@ -51,9 +54,9 @@ cd build
export DESTDIR=%{buildroot}
ninja install
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/{lib,share}
mv %{buildroot}%{_prefix}/lib/linux %{buildroot}%{_libdir}/clang/%{version}/lib/
mv %{buildroot}%{_prefix}/{share/*.txt,%{_lib}/clang/%{version}/share/}
#mkdir -p %{buildroot}%{_libdir}/clang/%{MAJver}/{lib,share}
#mv %{buildroot}%{_prefix}/lib/linux %{buildroot}%{_libdir}/clang/%{MAJver}/lib/
#mv %{buildroot}%{_prefix}/{share/*.txt,%{_lib}/clang/%{MAJver}/share/}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -61,20 +64,21 @@ mv %{buildroot}%{_prefix}/{share/*.txt,%{_lib}/clang/%{version}/share/}
%files
%defattr(-,root,root)
%ifarch x86_64 aarch64
%{_bindir}/hwasan_symbolize
%dir %{_libdir}/clang/%{MAJver}/bin
%{_libdir}/clang/%{MAJver}/bin/*
%endif
%{_includedir}/fuzzer/*.h
%{_includedir}/orc/c_api.h
%{_includedir}/profile/InstrProfData.inc
%{_includedir}/sanitizer/*.h
%{_includedir}/xray/*.h
%dir %{_libdir}/clang/%{version}/lib/linux
%{_libdir}/clang/%{version}/lib/linux/*
%dir %{_libdir}/clang/%{version}/share
%{_libdir}/clang/%{version}/share/*.txt
%dir %{_libdir}/clang/%{MAJver}/include
%{_libdir}/clang/%{MAJver}/include/*
%dir %{_libdir}/clang/%{MAJver}/lib/linux
%{_libdir}/clang/%{MAJver}/lib/linux/*
%dir %{_libdir}/clang/%{MAJver}/share
%{_libdir}/clang/%{MAJver}/share/*.txt
%doc LICENSE.TXT
%changelog
* Sat Aug 05 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 16.0.6-2mamba
- set COMPILER_RT_INSTALL_PATH=%{_libdir}/clang/%{MAJver}
* Wed Jun 14 2023 Automatic Build System <autodist@mambasoft.it> 16.0.6-1mamba
- automatic version update by autodist