diff --git a/libcxx-8.0.1.src.tar.xz b/libcxx-8.0.1.src.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..ca3d3062662e64fee89a8ee19d5b8fe68540584c Binary files /dev/null and b/libcxx-8.0.1.src.tar.xz differ diff --git a/libcxx.spec b/libcxx.spec new file mode 100644 index 0000000000000000000000000000000000000000..d315e278515c128070990d979dd1b07c9d3e22b3 --- /dev/null +++ b/libcxx.spec @@ -0,0 +1,50 @@ +%global debug_package %{nil} + +Name: libcxx +Version: 8.0.1 +Release: 1%{?dist} +Summary: LLVM "libcxx" runtime libraries +License: BSD +URL: http://llvm.org +Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libcxx-%{version}.src.tar.xz + + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: cmake +BuildRequires: python3 + +%description +The libcxx-devel package includes the libraries and header files for libcxx. + +%prep +%autosetup -n libcxx-%{version}.src + +%build +mkdir -p _build +cd _build +cmake \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_C_COMPILER_TARGET=%{_arch} \ + -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON \ +%if 0%{?__isa_bits} == 64 + -DLLVM_LIBDIR_SUFFIX=64 \ +%else + -DLLVM_LIBDIR_SUFFIX= \ +%endif + .. + +%make_build + +%install +cd _build +%make_install + +%files +%{_libdir}/libc++* +%{_prefix}/include/* + +%changelog +* Tue Nov 23 2021 Cheng Congxiu - 8.0.1-1 +- update to 8.0.1-1