2024-01-06 04:03:54 +01:00
|
|
|
Name: libcxx
|
2024-10-17 21:51:21 +02:00
|
|
|
Version: 19.1.2
|
2024-01-06 04:03:54 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: An implementation of the C++ standard library, targeting C++11, C++14 and above
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://libcxx.llvm.org/
|
|
|
|
Source: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libcxx-%{version}.src.tar.xz
|
2024-01-06 04:03:54 +01:00
|
|
|
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libcxxabi-%{version}.src.tar.xz
|
2024-01-06 04:03:55 +01:00
|
|
|
Source2: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/cmake-%{version}.src.tar.xz
|
2024-01-06 04:03:57 +01:00
|
|
|
Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/runtimes-%{version}.src.tar.xz
|
|
|
|
Source4: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libunwind-%{version}.src.tar.xz
|
|
|
|
# From Fedora
|
|
|
|
Source5: libcxx-17.0.5-CmakeLists.txt
|
2024-10-13 01:12:12 +02:00
|
|
|
Patch0: libcxx-19.1.1-do-not-install-libcxx.imp.patch
|
2024-01-06 04:03:54 +01:00
|
|
|
License: MIT, BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-04-14 18:10:28 +02:00
|
|
|
BuildRequires: libatomic-devel
|
2024-01-06 04:03:54 +01:00
|
|
|
BuildRequires: libgcc
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: cmake
|
|
|
|
Provides: libc++
|
2024-01-06 04:03:55 +01:00
|
|
|
Obsoletes: libc++ < 13.0.0
|
2024-01-06 04:03:54 +01:00
|
|
|
Requires: libcxxabi = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 04:03:54 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
libc++ is an implementation of the C++ standard library, targeting C++11, C++14 and above.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 04:03:55 +01:00
|
|
|
Requires: libcxxabi-devel = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 04:03:54 +01:00
|
|
|
Provides: libc++-devel
|
2024-01-06 04:03:55 +01:00
|
|
|
Obsoletes: libc++-devel < 13.0.0
|
2024-01-06 04:03:54 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
2024-01-06 04:03:54 +01:00
|
|
|
%package -n libcxxabi
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Low level support for the LLVM C++ standard library
|
|
|
|
|
|
|
|
%description -n libcxxabi
|
|
|
|
Low level support for the LLVM C++ standard library.
|
|
|
|
|
2024-01-06 04:03:55 +01:00
|
|
|
%package -n libcxxabi-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for libcxxabi
|
|
|
|
Requires: libcxxabi = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libcxxabi-devel
|
|
|
|
This package contains libraries and header files for developing applications that use libcxxabi.
|
|
|
|
|
2024-01-06 04:03:54 +01:00
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
2024-01-06 04:03:57 +01:00
|
|
|
%setup -q -c -a1 -a2 -a3 -a4
|
2024-01-06 04:03:54 +01:00
|
|
|
#% setup -q -c -D -T
|
|
|
|
#:<< _EOF
|
2024-01-06 04:03:55 +01:00
|
|
|
mv libcxx-%{version}.src libcxx
|
|
|
|
mv libcxxabi-%{version}.src libcxxabi
|
|
|
|
mv cmake-%{version}.src cmake
|
2024-01-06 04:03:57 +01:00
|
|
|
mv runtimes-%{version}.src runtimes
|
|
|
|
mv libunwind-%{version}.src libunwind
|
|
|
|
|
2024-01-06 04:03:55 +01:00
|
|
|
cp %{SOURCE5} CMakeLists.txt
|
2024-01-06 04:03:54 +01:00
|
|
|
|
2024-10-13 01:12:12 +02:00
|
|
|
%patch 0 -p1 -b .do-not-install-libcxx.imp
|
|
|
|
|
2024-01-06 04:03:54 +01:00
|
|
|
%build
|
2024-01-06 04:03:55 +01:00
|
|
|
#:<< _EOF
|
|
|
|
mkdir -p build
|
|
|
|
cd build
|
|
|
|
cmake -G Ninja \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
|
|
|
|
%if 0%{?__isa_bits} == 64
|
|
|
|
-DLIBCXX_LIBDIR_SUFFIX:STRING=64 \
|
|
|
|
-DLIBCXXABI_LIBDIR_SUFFIX:STRING=64 \
|
2024-01-06 04:03:57 +01:00
|
|
|
-DLIBUNWIND_LIBDIR_SUFFIX:STRING=64 \
|
2024-01-06 04:03:54 +01:00
|
|
|
%endif
|
2024-04-14 18:10:28 +02:00
|
|
|
-DCMAKE_C_COMPILER=clang \
|
|
|
|
-DCMAKE_CXX_COMPILER=clang++ \
|
|
|
|
-DLIBCXXABI_USE_LLVM_UNWINDER=OFF \
|
|
|
|
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi" \
|
2024-01-06 04:03:55 +01:00
|
|
|
-DLIBCXX_INCLUDE_BENCHMARKS=OFF \
|
|
|
|
-DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON \
|
|
|
|
-DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=ON \
|
|
|
|
..
|
2024-01-06 04:03:57 +01:00
|
|
|
|
|
|
|
# -DBUILD_SHARED_LIBS=ON
|
|
|
|
|
2024-01-06 04:03:55 +01:00
|
|
|
ninja
|
2024-01-06 04:03:54 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 04:03:54 +01:00
|
|
|
cd build
|
|
|
|
DESTDIR=%{buildroot} ninja install-cxx install-cxxabi
|
2024-01-06 04:03:54 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libc++.so.*
|
2024-01-06 04:03:55 +01:00
|
|
|
%doc libcxx/LICENSE.TXT libcxx/CREDITS.TXT
|
2024-01-06 04:03:54 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/c++
|
|
|
|
%dir %{_includedir}/c++/v1
|
|
|
|
%{_includedir}/c++/v1/*
|
2024-01-06 04:03:55 +01:00
|
|
|
%exclude %{_includedir}/c++/v1/cxxabi.h
|
|
|
|
%exclude %{_includedir}/c++/v1/__cxxabi_config.h
|
2024-01-06 04:03:54 +01:00
|
|
|
%{_libdir}/libc++.a
|
2024-01-06 04:03:55 +01:00
|
|
|
%{_libdir}/libc++experimental.a
|
2024-01-06 04:03:54 +01:00
|
|
|
%{_libdir}/libc++.so
|
2024-10-13 01:12:12 +02:00
|
|
|
%{_libdir}/libc++.modules.json
|
|
|
|
%dir %{_datadir}/libc++/v1
|
|
|
|
%{_datadir}/libc++/v1/*
|
2024-01-06 04:03:54 +01:00
|
|
|
|
|
|
|
%files -n libcxxabi
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libc++abi.so.*
|
2024-01-06 04:03:55 +01:00
|
|
|
%doc libcxxabi/LICENSE.TXT libcxxabi/CREDITS.TXT
|
|
|
|
|
|
|
|
%files -n libcxxabi-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/c++/v1/cxxabi.h
|
|
|
|
%{_includedir}/c++/v1/__cxxabi_config.h
|
|
|
|
%{_libdir}/libc++abi.so
|
|
|
|
%{_libdir}/libc++abi.a
|
2024-01-06 04:03:54 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-10-17 21:51:21 +02:00
|
|
|
* Tue Oct 15 2024 Automatic Build System <autodist@openmamba.org> 19.1.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-10-13 01:12:12 +02:00
|
|
|
* Sat Oct 12 2024 Automatic Build System <autodist@openmamba.org> 19.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-06-27 18:46:23 +02:00
|
|
|
* Sat Jun 22 2024 Automatic Build System <autodist@openmamba.org> 18.1.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-06-08 14:54:59 +02:00
|
|
|
* Fri Jun 07 2024 Automatic Build System <autodist@openmamba.org> 18.1.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-05-22 21:28:10 +02:00
|
|
|
* Sun May 19 2024 Automatic Build System <autodist@openmamba.org> 18.1.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-05-08 18:44:31 +02:00
|
|
|
* Sat May 04 2024 Automatic Build System <autodist@openmamba.org> 18.1.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-04-20 11:52:10 +02:00
|
|
|
* Thu Apr 18 2024 Automatic Build System <autodist@openmamba.org> 18.1.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-04-14 18:10:28 +02:00
|
|
|
* Sat Apr 13 2024 Automatic Build System <autodist@openmamba.org> 18.1.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:03:58 +01:00
|
|
|
* Wed Nov 29 2023 Automatic Build System <autodist@mambasoft.it> 17.0.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:03:57 +01:00
|
|
|
* Fri Nov 17 2023 Automatic Build System <autodist@mambasoft.it> 17.0.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:03:56 +01:00
|
|
|
* Sat Jun 03 2023 Automatic Build System <autodist@mambasoft.it> 16.0.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:03:55 +01:00
|
|
|
* Mon May 22 2023 Automatic Build System <autodist@mambasoft.it> 16.0.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Apr 26 2021 Automatic Build System <autodist@mambasoft.it> 12.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:03:54 +01:00
|
|
|
* Thu Mar 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 11.1.0-1mamba
|
|
|
|
- update to 11.1.0
|
|
|
|
|
2024-01-06 04:03:54 +01:00
|
|
|
* Tue Oct 13 2020 Automatic Build System <autodist@mambasoft.it> 11.0.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:03:54 +01:00
|
|
|
* Sat Jul 25 2020 Automatic Build System <autodist@mambasoft.it> 10.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 04:03:54 +01:00
|
|
|
* Mon May 18 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 10.0.0-1mamba
|
|
|
|
- package created using the webbuild interface
|