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